@font-face {
  font-family: ExpeditionPixel;
  src: url(/_fonts/pixelifysans-v3-CHylV-3HFUT7aC4iv1TxGDR9Jn0Ei0tSaJ0.woff2);
}
:root {
  --ink:#f1f3da;
  --muted:#a7bdd1;
  --gold:#f4d38a;
  --navy:#142b49;
  --blue:#244877;
  --edge:#acc6da;
  --green:#8fc9ad;
  --font:ExpeditionPixel,"Microsoft YaHei","PingFang SC",sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #12243b;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
body {
  background:
    repeating-linear-gradient(
      0deg,
      #152a45 0,
      #152a45 2px,
      #172e4a 2px,
      #172e4a 4px);
  user-select: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  border: 2px solid #92adc1;
  border-radius: 0;
  background: #27466b;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #193450, 2px 3px 0 #091a2e;
  transition: background .12s, transform .12s;
}
button:hover:enabled {
  background: #385e87;
  border-color: #f2dc9b;
}
button:active:enabled {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 2px #193450;
}
button:disabled {
  opacity: .42;
  cursor: default;
}
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f4d38a;
  outline-offset: 3px;
}
button.primary {
  background: #b4cbaa;
  border-color: #f0edc7;
  color: #183c3a;
  text-shadow: none;
  box-shadow: inset 0 0 0 2px #729b88, 2px 3px 0 #091a2e;
  font-weight: bold;
}
button.primary:hover:enabled {
  background: #d2dfb5;
}
.danger {
  background: #874856;
}
.tiny {
  font-size: 12px;
  padding: 5px 10px;
}
.large {
  padding: 14px 22px;
  margin-top: 12px;
}
p {
  line-height: 1.8;
  margin: 10px 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 12px;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
strong {
  font-weight: bold;
}
img,
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
button img {
  pointer-events: none;
}
.panel {
  border: 2px solid var(--edge);
  background:
    linear-gradient(
      180deg,
      #294e7d,
      #1d3b63);
  border-radius: 0;
  box-shadow:
    0 0 0 2px #0d2037,
    inset 0 0 0 2px #54739a,
    4px 5px 0 #0c1d32;
  padding: 22px;
}
.eyebrow {
  font: 12px/1.4 ExpeditionPixel, monospace;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.notice {
  color: #e0cfa5;
  font-size: 12px;
  padding: 12px;
  background: #132f51;
  border-left: 3px solid #b69e6b;
  line-height: 1.7;
}
.hp {
  height: 7px;
  background: #122e43;
  border: 1px solid #0c2435;
  overflow: hidden;
}
.hp i {
  height: 100%;
  display: block;
  background: #94c6a5;
  transition: width .2s;
}
.badge {
  border: 1px solid #739baf;
  color: #d9dcb2;
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
}
#game-ui {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
#app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
body.in-battle #app {
  z-index: 100;
  pointer-events: auto;
}
body.in-battle #game-ui {
  visibility: hidden;
}
body.in-battle .battle-screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
body.in-battle .battle-canvas {
  image-rendering: pixelated;
}
body.in-battle .hud-top,
body.in-battle .hud-bottom,
body.in-battle .hud-pause,
body.in-battle .results {
  border-radius: 0;
  font-family: var(--font);
}
body.in-battle .btn {
  border-radius: 0;
  font-family: var(--font);
}
.topbar {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 2px solid #536d86;
  background: #142a44;
  box-shadow: 0 3px 0 #0c1e34;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 2px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 3px;
  color: #c2cfcd;
}
.pixel-ball {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(
      #c77368 0,
      #c77368 42%,
      #243a46 42%,
      #243a46 57%,
      #dbddba 57%);
  border: 3px solid #233b49;
  box-shadow: 0 0 0 1px #9fb5b7;
  position: relative;
}
.pixel-ball:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 5px;
  top: 5px;
  background: #e3e4c6;
  border: 1px solid #263e4e;
}
.page-name {
  font-size: 13px;
  color: #a7bdcd;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}
.footer {
  height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  border-top: 1px solid #4a6380;
  color: #9cb6c8;
  font-size: 11px;
  letter-spacing: 1px;
}
.hub {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(480px, 1.6fr);
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  margin: auto;
  padding: 32px 36px;
}
.trainer-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}
.camp-art {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .26;
}
.trainer-panel:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      180deg,
      #183b6355,
      transparent 40%,
      #122e4ce6);
}
.trainer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 22px 0;
}
.trainer-content > .eyebrow {
  font-size: 10px;
  color: #c2d3c3;
  align-self: flex-start;
  letter-spacing: 1.5px;
}
.trainer-content h1 {
  font-size: 23px;
  margin: 6px 0;
}
.region {
  color: #b6cfcb;
  font-size: 12px;
  margin: 0;
}
.trainer-portrait {
  height: 80px;
  height: clamp(80px, 25vh, 240px);
  object-fit: contain;
  width: 90%;
  flex: 1;
  min-height: 60px;
  filter: drop-shadow(4px 5px 0 #102c49);
  padding: 10px;
  image-rendering: pixelated;
}
.energy {
  width: 100%;
  max-width: 260px;
  margin: 3px 0 8px;
}
.energy > span {
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
  color: #d3dec9;
}
.party-preview {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  max-height: 95px;
}
.preview-mon {
  text-align: center;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-mon .mon-sprite {
  transform: scale(.75);
  transform-origin: center bottom;
  margin-top: -15px;
  margin-bottom: -3px;
}
.preview-mon small {
  font-size: 10px;
}
.trainer-bottom {
  padding: 13px 0;
  margin-top: 16px;
  border-top: 1px solid #63819a;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #c9d6ca;
}
.hub-nav {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
}
.nav-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}
.nav-heading h2 {
  font-size: 29px;
  margin: 0;
}
.day-tag {
  font-family: ExpeditionPixel, monospace;
  font-size: 13px;
  color: #b7c6c6;
  border: 1px solid #5d7486;
  padding: 7px 10px;
  white-space: nowrap;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
}
.menu-card {
  text-align: left;
  position: relative;
  padding: 14px 15px;
}
.menu-card:hover:enabled {
  background: #315985;
}
.menu-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.menu-icon {
  color: #b6c8ce;
  font-size: 29px;
  width: 35px;
  text-align: center;
  text-shadow: 3px 2px 0 #0e2c46;
}
.menu-num {
  position: absolute;
  right: 14px;
  top: 9px;
  font-family: ExpeditionPixel, monospace;
  font-size: 12px;
  color: #7393ac;
}
.menu-label {
  padding-top: 10px;
}
.menu-label strong {
  display: block;
  font-size: 18px;
  white-space: nowrap;
}
.menu-label small {
  font-size: 11px;
  margin-top: 8px;
  white-space: nowrap;
}
.menu-arrow {
  margin-left: auto;
  color: #7796ab;
  font-size: 11px;
}
.menu-card.featured {
  background:
    linear-gradient(
      140deg,
      #436867,
      #2b4b59);
  border-color: #c9d5b3;
}
.featured .menu-icon,
.featured .menu-arrow {
  color: var(--gold);
}
.camp-tip {
  font-size: 12px;
  color: #a6b9bd;
  padding: 12px 0 0;
  margin: 0;
  line-height: 1.7;
}
.page {
  overflow: auto;
  flex: 1;
  padding: 24px 32px 32px;
  width: 100%;
  max-width: 1400px;
  margin: auto;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.page-top .eyebrow {
  margin: 0;
}
.back {
  font-size: 12px;
  padding: 7px 12px;
  background: #1d3859;
}
.lab-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.welcome {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 20px auto;
}
.person-art {
  width: 120px;
  max-height: 250px;
  object-fit: contain;
}
.starter-grid {
  display: flex;
  gap: 18px;
  margin-top: 25px;
}
.starter {
  flex: 1;
  text-align: center;
  min-width: 130px;
}
.starter > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.mon-card {
  padding: 10px;
  text-align: left;
}
.mon-card.selected {
  border-color: #e4d796;
  background: #345d72;
}
.collection-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.small-mon {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.small-mon > .mon-sprite {
  zoom: .65;
  flex-shrink: 0;
}
.small-mon > div {
  flex: 1;
  min-width: 55px;
}
.small-mon small {
  margin: 3px 0;
}
.hp-label {
  font-size: 10px;
  color: #8cbaaa;
  display: none;
}
.shop-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #577189;
}
.shop-row > div {
  flex: 1;
}
.shop-row small {
  margin-top: 6px;
}
.potion-icon {
  width: 20px;
  height: 27px;
  display: block;
  background: #b19dc7;
  border: 4px solid #725f91;
  box-shadow: 0 -4px 0 -1px #b8ccbc;
}
.center-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.joy {
  text-align: center;
}
.joy-scene {
  height: 125px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.joy-scene canvas {
  width: 320px;
  height: 160px;
  object-fit: contain;
}
.joy h1 {
  font-size: 23px;
}
.condition {
  display: flex;
  gap: 20px;
  justify-content: center;
  color: #c9d9cd;
  font-size: 12px;
  margin: 20px 0;
}
.recruit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.gacha-display {
  height: 125px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ticket-count {
  color: var(--gold);
  margin: 12px 0;
}
.adventure-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.stage-option {
  width: 100%;
  margin-top: 8px;
  text-align: left;
  padding: 12px 16px;
  background: #1e3d60;
  box-shadow: none;
}
.stage-option.selected {
  background: #395d72;
  border-color: #dbd59b;
}
.stage-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stage-row > span:nth-child(2) {
  flex: 1;
}
.stage-index {
  font-family: ExpeditionPixel, monospace;
  color: var(--gold);
  font-size: 23px;
}
.stage-row small {
  font-size: 11px;
  margin-top: 4px;
}
.briefing {
  position: sticky;
  top: 0;
  align-self: start;
}
.route-art {
  background:
    repeating-linear-gradient(
      0deg,
      #486959 0,
      #486959 3px,
      #436454 3px,
      #436454 6px);
  height: 125px;
  border: 2px solid #71968b;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 20px 0;
}
dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  font-size: 13px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.arena-panel {
  margin-top: 5px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.opponents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 24px 0;
}
.opponent {
  border: 2px solid #64829f;
  background: #163659;
  padding: 22px;
  text-align: center;
}
.opponent .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.opponent img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(5px 6px 0 #0e243c);
}
.opponent h2 {
  margin: 15px 0 3px;
}
.opponent p {
  color: var(--gold);
  font-size: 13px;
}
.opponent button {
  width: 100%;
  margin-top: 20px;
}
.opponent.won {
  border-color: #8eb8a3;
}
.tasks-panel {
  max-width: 1000px;
  margin: auto;
}
.task-list {
  margin-top: 28px;
}
.task {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 22px 10px;
  border-top: 1px solid #5f7d97;
}
.task > div {
  flex: 1;
}
.task h2 {
  font-size: 18px;
  margin: 0;
}
.task p {
  font-size: 12px;
  color: var(--gold);
}
.task .hp {
  max-width: 400px;
}
.task-seal {
  font-size: 28px;
  color: #d4d7af;
}
.task > strong {
  font-family: ExpeditionPixel, monospace;
  color: #c4d7c3;
  white-space: nowrap;
}
.report {
  text-align: center;
  max-width: 850px;
  margin: auto;
  padding: 30px;
}
.report-emblem {
  font-size: 56px;
  color: var(--gold);
  margin: 20px;
}
.failure .report-emblem {
  color: #e5a393;
}
.report-rewards {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 20px;
  color: #f3d69d;
}
.report-mons {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.report-mons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.report > button {
  margin: 20px 10px 0;
}
.lan-panel {
  max-width: 1050px;
  margin: auto;
}
.lan-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.lan-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.lan-codes label {
  font-size: 13px;
  color: #d7dabe;
}
.lan-codes textarea {
  width: 100%;
  display: block;
  resize: vertical;
  border: 2px solid #6c8a9e;
  background: #112d4c;
  color: #d4e3d4;
  padding: 12px;
  margin-top: 10px;
  font: 12px/1.5 monospace;
  user-select: text;
}
.lan-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.lan-bottom p {
  color: var(--green);
  font-size: 13px;
}
.mon-sprite {
  display: inline-block;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  animation: idle 1.2s steps(var(--frames)) infinite;
  flex-shrink: 0;
  vertical-align: middle;
}
@keyframes idle {
  from {
    background-position: var(--ox,0px) var(--oy,0px);
  }
  to {
    background-position: calc(var(--ox,0px) - var(--fw) * var(--frames)) var(--oy,0px);
  }
}
.mon-fallback {
  display: inline-block;
  padding: 20px;
  color: #b5c59a;
}
.boot {
  padding: 80px;
  text-align: center;
}
.fatal {
  margin: 40px;
  max-width: 800px;
}
.dialog-back {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  background: #081b30c9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog {
  max-width: 600px;
  width: 100%;
  max-height: 95vh;
  overflow: auto;
  animation: dialog-in .18s steps(4);
}
.dialog h2 {
  font-size: 22px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: flex-end;
}
.capture-content,
.catch-result {
  text-align: center;
}
.capture-content > p {
  text-align: left;
}
.heal-target {
  margin: 6px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #e2dfbd;
  color: #1b3c42;
  border: 3px solid #566c73;
  box-shadow: 0 0 0 2px #10283f;
  padding: 12px 20px;
  max-width: 85%;
  font-size: 13px;
  pointer-events: none;
}
.battle-transition {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  background:
    repeating-linear-gradient(
      0deg,
      #132a42 0,
      #132a42 8px,
      #284663 8px,
      #284663 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: encounter .3s steps(5);
}
.battle-transition h2 {
  color: #f0e6be;
}
.battle-transition p {
  color: #a3c4c1;
  font-size: 13px;
}
.encounter-mark {
  font: 70px ExpeditionPixel, monospace;
  color: #f0d38c;
  text-shadow: 4px 4px #945451;
  animation: blink .25s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: .3;
  }
}
@keyframes encounter {
  from {
    clip-path: inset(50% 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes dialog-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.exploration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #142b36;
}
.exploration > canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
}
.field-top {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  pointer-events: none;
}
.field-top > * {
  pointer-events: auto;
}
.field-location {
  padding: 10px 16px;
  background: #1b3c61ed;
}
.field-location small {
  font-family: ExpeditionPixel, monospace;
  letter-spacing: 2px;
  font-size: 10px;
  margin-bottom: 3px;
}
.field-objective {
  padding: 12px;
  font-size: 12px;
  background: #1b3c61dd;
}
.field-retreat {
  padding: 10px 14px;
  margin-left: auto;
  margin-right: 215px;
  font-size: 12px;
}
.field-team {
  position: absolute;
  left: 18px;
  top: 94px;
  padding: 10px 12px;
  background: #1a3b5ccd;
  min-width: 112px;
  pointer-events: none;
}
.field-mon {
  margin: 4px 0 9px;
  font-size: 11px;
}
.field-mon .hp {
  margin-top: 4px;
  height: 5px;
}
.field-loot {
  position: absolute;
  top: 94px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #193958dd;
  font-size: 11px;
  pointer-events: none;
}
.field-loot small {
  font-size: 10px;
}
.dpad {
  position: absolute;
  bottom: 32px;
  left: 20px;
  width: 156px;
  height: 135px;
}
.dir {
  position: absolute;
  width: 49px;
  height: 43px;
  padding: 0;
  background: #193c60d9;
  border-color: #b5ccbb;
  touch-action: none;
  font-size: 22px;
}
.dir-1 {
  left: 53px;
  top: 0;
}
.dir-2 {
  left: 0;
  top: 46px;
}
.dir-0 {
  left: 53px;
  top: 92px;
}
.dir-3 {
  left: 106px;
  top: 46px;
}
.field-actions {
  position: absolute;
  bottom: 38px;
  right: 22px;
  display: flex;
  gap: 12px;
}
.field-actions button {
  padding: 16px 18px;
  background: #244b6fdd;
  font-size: 13px;
}
.field-caption {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #d2dbbd;
  text-shadow: 1px 1px #162a3c;
  pointer-events: none;
}
body.in-battle .play-bar {
  border: 2px solid #a7c2d1;
  border-radius: 0;
  background: linear-gradient(#254b77ee, #193858f5);
  box-shadow: 0 0 0 2px #122a42, inset 0 0 0 2px #557a97;
}
body.in-battle .pb-move,
body.in-battle .pb-dodge,
body.in-battle .pb-slot,
body.in-battle .hud-btn {
  border-radius: 0 !important;
  font-family: var(--font);
  background: #284a70;
  border: 2px solid #9bb6c6;
  box-shadow: inset 0 0 0 2px #3c6183, 2px 2px 0 #132d46;
}
body.in-battle .pb-move .nm {
  font-family: var(--font);
  text-transform: none;
}
body.in-battle .pb-move .ty {
  border-radius: 0;
}
body.in-battle .pb-move .cd {
  border-radius: 0;
}
.exp-battle-result {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: #0b2037bd;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  pointer-events: auto;
}
.exp-battle-result .panel {
  text-align: center;
  max-width: 600px;
}
.exp-battle-result button {
  margin: 12px 8px 0;
  padding: 12px 20px;
}
.exp-battle-result p {
  font-size: 13px;
  color: #bacdd1;
}
@media (min-width:1500px) {
  .hub {
    padding-top: 45px;
    padding-bottom: 45px;
  }
  .trainer-portrait {
    max-height: 270px;
  }
  .menu-label strong {
    font-size: 21px;
  }
}
@media (max-height:650px) {
  .topbar {
    height: 60px;
    padding: 0 24px;
  }
  .hub {
    padding: 22px 26px;
    gap: 23px;
  }
  .trainer-content {
    padding: 15px 16px 0;
  }
  .trainer-content h1 {
    font-size: 20px;
  }
  .trainer-content > .eyebrow {
    font-size: 9px;
  }
  .trainer-bottom {
    padding: 8px 0;
    margin-top: 10px;
  }
  .nav-heading {
    margin-bottom: 16px;
  }
  .nav-heading h2 {
    font-size: 24px;
  }
  .menu-grid {
    gap: 13px;
  }
  .menu-label strong {
    font-size: 16px;
  }
  .menu-label small {
    font-size: 10px;
    margin-top: 5px;
  }
  .menu-card {
    padding: 10px 12px;
  }
  .menu-inner {
    gap: 9px;
  }
  .menu-icon {
    font-size: 25px;
    width: 28px;
  }
  .footer {
    height: 28px;
  }
  .party-preview {
    max-height: 68px;
  }
  .preview-mon .mon-sprite {
    zoom: .8;
  }
  .page {
    padding: 18px 25px;
  }
  .panel {
    padding: 18px;
  }
  .page-top {
    margin-bottom: 18px;
  }
  .trainer-panel {
    padding: 0;
  }
  .menu-card.panel {
    padding: 10px 12px;
  }
  .opponent img {
    height: 105px;
  }
  .opponent {
    padding: 15px;
  }
  .opponents {
    margin: 17px 0;
    gap: 16px;
  }
  .opponent h2 {
    font-size: 18px;
  }
  .opponent button {
    margin-top: 12px;
  }
  .joy-scene {
    height: 95px;
  }
  .joy-scene canvas {
    width: 240px;
    height: 120px;
  }
  .condition {
    margin: 12px 0;
  }
  .gacha-display {
    height: 95px;
  }
  .route-art {
    height: 95px;
    margin: 14px 0;
  }
  .stage-option {
    padding: 9px 12px;
  }
  .task {
    padding: 17px 6px;
  }
  .briefing p {
    font-size: 12px;
  }
  .briefing dl {
    gap: 10px;
    font-size: 12px;
  }
  .large {
    padding: 11px 16px;
  }
  .report {
    padding: 25px;
  }
}
@media (max-height:470px) {
  html,
  body {
    font-size: 12px;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand .pixel-ball {
    width: 19px;
    height: 19px;
  }
  .wallet {
    font-size: 12px;
    gap: 13px;
  }
  .hub {
    padding: 14px 19px;
    gap: 18px;
    grid-template-columns: minmax(200px, .8fr) minmax(380px, 1.6fr);
  }
  .trainer-content {
    padding: 10px 13px 0;
  }
  .trainer-content h1 {
    font-size: 17px;
    margin: 3px 0;
  }
  .trainer-content > .eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
  }
  .region {
    font-size: 10px;
  }
  .trainer-portrait {
    padding: 4px;
    height: 90px;
    max-height: 130px;
  }
  .energy {
    margin: 2px 0 4px;
  }
  .energy > span {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .energy .hp {
    height: 5px;
  }
  .party-preview {
    max-height: 46px;
    min-height: 40px;
  }
  .preview-mon {
    width: 55px;
  }
  .preview-mon .mon-sprite {
    zoom: .58;
  }
  .preview-mon small {
    font-size: 8px;
  }
  .trainer-bottom {
    font-size: 10px;
    padding: 6px 0;
    margin-top: 6px;
  }
  .nav-heading {
    margin-bottom: 11px;
  }
  .nav-heading h2 {
    font-size: 20px;
  }
  .nav-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
  }
  .hub-nav {
    padding-top: 2px;
  }
  .day-tag {
    font-size: 10px;
    padding: 5px;
  }
  .menu-grid {
    gap: 10px;
  }
  .menu-label {
    padding-top: 5px;
  }
  .menu-label strong {
    font-size: 14px;
  }
  .menu-label small {
    font-size: 9px;
    margin-top: 5px;
  }
  .menu-num {
    top: 5px;
    right: 8px;
    font-size: 9px;
  }
  .menu-card.panel {
    padding: 8px;
  }
  .menu-inner {
    gap: 7px;
  }
  .menu-icon {
    font-size: 21px;
    width: 24px;
  }
  .menu-arrow {
    font-size: 8px;
  }
  .camp-tip {
    font-size: 10px;
    padding-top: 9px;
  }
  .footer {
    height: 22px;
    font-size: 9px;
    padding: 0 19px;
  }
  .page {
    padding: 12px 18px 20px;
  }
  .page-top {
    margin-bottom: 14px;
  }
  .page-top .eyebrow {
    font-size: 9px;
  }
  .panel {
    padding: 16px;
  }
  .lab-layout,
  .center-layout,
  .adventure-layout {
    gap: 16px;
  }
  h1 {
    font-size: 21px;
  }
  h2 {
    font-size: 18px;
  }
  .welcome {
    margin: 6px auto;
    gap: 20px;
  }
  .starter {
    min-width: 110px;
    padding: 8px;
  }
  .starter-grid {
    margin-top: 15px;
    gap: 12px;
  }
  .person-art {
    width: 85px;
  }
  .opponent img {
    height: 80px;
  }
  .opponent p {
    font-size: 11px;
  }
  .opponent small {
    font-size: 10px;
  }
  .opponent h2 {
    margin-top: 8px;
  }
  .opponents {
    gap: 12px;
    margin: 14px 0;
  }
  .opponent {
    padding: 12px;
  }
  .opponent button {
    margin-top: 12px;
    padding: 8px;
  }
  .section-heading h1 {
    margin-bottom: 5px;
  }
  .section-heading .eyebrow {
    margin-bottom: 6px;
  }
  .section-heading p {
    margin: 5px 0;
  }
  .notice {
    padding: 9px;
    font-size: 11px;
  }
  .task {
    padding: 15px 0;
    gap: 17px;
  }
  .task h2 {
    font-size: 16px;
  }
  .tasks-panel h1 {
    margin-bottom: 6px;
  }
  .task-list {
    margin-top: 18px;
  }
  .report-emblem {
    margin: 8px;
    font-size: 37px;
  }
  .report-rewards {
    padding: 12px;
  }
  .report h1 {
    font-size: 20px;
  }
  .report .report-mons .mon-sprite {
    zoom: .7;
  }
  .lan-actions {
    margin: 15px 0;
  }
  .field-top {
    top: 10px;
    left: 12px;
    right: 12px;
    gap: 10px;
  }
  .field-location {
    padding: 8px 12px;
  }
  .field-location small {
    font-size: 8px;
  }
  .field-objective {
    padding: 9px;
    font-size: 10px;
  }
  .field-retreat {
    margin-right: 205px;
    padding: 8px;
    font-size: 10px;
  }
  .field-team {
    top: 74px;
    left: 12px;
    min-width: 100px;
    padding: 8px;
  }
  .field-mon {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .field-loot {
    top: 88px;
    right: 12px;
    max-width: 190px;
    font-size: 10px;
    padding: 8px;
  }
  .field-loot small {
    font-size: 9px;
  }
  .dpad {
    zoom: .8;
    bottom: 30px;
    left: 15px;
  }
  .field-actions {
    bottom: 28px;
    right: 16px;
  }
  .field-actions button {
    padding: 12px;
    font-size: 12px;
  }
  .field-caption {
    font-size: 9px;
  }
  .dialog {
    max-width: 560px;
    padding: 18px;
  }
  .dialog h2 {
    font-size: 19px;
  }
  .dialog .mon-sprite {
    zoom: .8;
  }
  .dialog-actions {
    margin-top: 15px;
  }
  .dialog p {
    margin: 8px 0;
  }
}
@media (max-width:700px) and (orientation:landscape) {
  .hub {
    grid-template-columns: 190px minmax(330px, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .menu-label strong {
    font-size: 12px;
  }
  .menu-label small {
    font-size: 8px;
  }
  .menu-icon {
    font-size: 18px;
    width: 20px;
  }
  .menu-inner {
    gap: 5px;
  }
  .menu-grid {
    gap: 9px;
  }
  .nav-heading h2 {
    font-size: 17px;
  }
  .day-tag {
    font-size: 9px;
  }
  .brand strong {
    font-size: 14px;
  }
  .page-name {
    display: none;
  }
  .camp-tip {
    font-size: 9px;
  }
  .wallet {
    gap: 10px;
  }
  .trainer-content > .eyebrow {
    font-size: 7px;
  }
  .footer {
    font-size: 8px;
  }
  .briefing .route-art .mon-sprite {
    zoom: .75;
  }
  .starter {
    min-width: 90px;
  }
  .welcome {
    gap: 15px;
  }
  .person-art {
    width: 65px;
  }
  .starter-grid {
    gap: 8px;
  }
  .field-objective {
    display: none;
  }
}
@media (orientation:portrait) {
  .topbar {
    padding: 0 14px;
    height: 62px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  .page-name {
    display: none;
  }
  .wallet {
    gap: 10px;
    font-size: 11px;
  }
  .hub {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 18px;
    gap: 20px;
  }
  .trainer-panel {
    min-height: 270px;
    flex-shrink: 0;
  }
  .trainer-content {
    height: 270px;
    align-items: flex-start;
    padding: 20px;
  }
  .trainer-content h1 {
    margin-top: 12px;
  }
  .trainer-portrait {
    position: absolute;
    right: 20px;
    top: 35px;
    width: 40%;
    height: 170px;
  }
  .trainer-content > .energy {
    width: 45%;
    margin-top: 20px;
  }
  .party-preview {
    position: absolute;
    right: 10px;
    bottom: 10px;
    transform: scale(.75);
    transform-origin: right bottom;
  }
  .trainer-bottom {
    width: 45%;
    margin-top: auto;
  }
  .hub-nav {
    min-height: 350px;
    flex-shrink: 0;
  }
  .nav-heading h2 {
    font-size: 22px;
  }
  .menu-card {
    min-height: 86px;
  }
  .menu-label strong {
    font-size: 14px;
  }
  .menu-icon {
    font-size: 22px;
    width: 25px;
  }
  .menu-inner {
    gap: 8px;
  }
  .menu-label small {
    font-size: 9px;
  }
  .menu-arrow {
    display: none;
  }
  .footer {
    padding: 0 14px;
    font-size: 9px;
  }
  .page {
    padding: 16px;
  }
  .lab-layout,
  .center-layout,
  .adventure-layout {
    grid-template-columns: 1fr;
  }
  .briefing {
    position: static;
  }
  .page-top .eyebrow {
    display: none;
  }
  .welcome {
    flex-direction: column;
  }
  .starter-grid {
    gap: 8px;
  }
  .starter {
    min-width: 85px;
    padding: 8px;
  }
  .opponents {
    grid-template-columns: 1fr;
  }
  .opponent img {
    height: 110px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .task {
    gap: 12px;
    flex-wrap: wrap;
  }
  .task > div {
    min-width: 170px;
  }
  .task button {
    margin-left: auto;
  }
  .lan-codes {
    grid-template-columns: 1fr;
  }
  .lan-bottom {
    flex-wrap: wrap;
  }
  .report-rewards {
    flex-wrap: wrap;
  }
  .report-mons {
    flex-wrap: wrap;
  }
  .field-retreat {
    margin-right: 0;
  }
  .field-objective {
    display: none;
  }
  .field-loot {
    top: 105px;
    max-width: 160px;
  }
  .field-team {
    top: 100px;
  }
  .exploration > canvas {
    object-fit: contain;
    background: #1d3141;
  }
  .dialog-actions {
    justify-content: center;
  }
}
img[src*="/items/mega/"],
img[src*="/ui/mega/"] {
  image-rendering: auto !important;
}
@font-face {
  font-family: SurvivorPixel;
  src: url(/_expedition/assets/pokesurvivor/fonts/PixelifyPS-400.ttf) format("truetype");
  font-weight: 400 550;
  font-display: swap;
}
@font-face {
  font-family: SurvivorPixel;
  src: url(/_expedition/assets/pokesurvivor/fonts/PixelifyPS-700.ttf) format("truetype");
  font-weight: 551 900;
  font-display: swap;
}
:root {
  --ink:#fff;
  --muted:#b9cbf0;
  --gold:#ffd23f;
  --navy:#0b1838;
  --blue:#2c519f;
  --edge:#f4f8ff;
  --green:#5fe08a;
  --font:SurvivorPixel,"Segoe UI","Microsoft YaHei",sans-serif;
}
html,
body {
  background: #050914;
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: none;
}
body {
  background: #050914;
  text-shadow: 2px 2px 0 #0a1430;
}
#survivor-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
}
body[data-screen=explore] #survivor-backdrop,
body.in-battle #survivor-backdrop {
  visibility: hidden;
}
#game-ui {
  background: transparent;
}
.panel {
  background:
    linear-gradient(
      180deg,
      #2c519f,
      #1a3170);
  border: 3px solid #f4f8ff;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px #0b1838,
    inset 0 0 0 2px #5b83d6,
    0 14px 32px #0006;
  padding: 24px;
  text-shadow: 2px 2px 0 #0a1430;
}
button {
  border: 3px solid #f4f8ff;
  border-radius: 9px;
  background:
    linear-gradient(
      180deg,
      #3d67c0,
      #26468f);
  box-shadow: 0 0 0 2px #0b1838, 0 4px 0 #0b1838;
  color: white;
  text-shadow: 2px 2px 0 #0a1430;
  font-weight: 700;
  font-family: var(--font);
  padding: 10px 20px;
}
button:hover:enabled {
  background:
    linear-gradient(
      180deg,
      #5079ce,
      #325ba8);
  border-color: #fff;
  filter: brightness(1.08);
}
button:active:enabled {
  box-shadow: 0 0 0 2px #0b1838, 0 2px 0 #0b1838;
  transform: translateY(2px);
}
button.primary {
  background:
    linear-gradient(
      180deg,
      #ffe37a,
      #f0a31e);
  border-color: #fff7d6;
  color: #3a2300;
  text-shadow: 1px 1px 0 #ffffff66;
  box-shadow: 0 0 0 2px #0b1838, 0 4px 0 #0b1838;
}
button.primary:hover:enabled {
  background:
    linear-gradient(
      180deg,
      #ffec9a,
      #ffb632);
}
button:disabled {
  opacity: .55;
  filter: grayscale(.6);
  box-shadow: none;
}
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffd23f;
  outline-offset: 4px;
}
button.danger {
  background: linear-gradient(#b94767, #7b294d);
  border-color: #ffb0b8;
}
.ui-pixel-icon {
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  vertical-align: middle;
  filter: none;
}
h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 #0a1430;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 24px;
}
small,
.muted {
  color: #b9cbf0;
}
.eyebrow {
  font-family: SurvivorPixel, monospace;
  letter-spacing: 1px;
  color: #c6d5ff;
  font-size: 12px;
}
p {
  line-height: 1.6;
}
.notice {
  border: 1px solid #5b83d6;
  border-radius: 8px;
  background: #122655b8;
  color: #c7d9ff;
  font-size: 13px;
  border-left: 1px solid #5b83d6;
}
.hp {
  background: #0d1838;
  border: 1px solid #111b3a;
  border-radius: 8px;
  height: 9px;
}
.hp i {
  background: #5fe08a;
  border-radius: 8px;
}
.badge {
  border-radius: 7px;
  background: #0b183885;
  border: 1px solid #7e9bd7;
  color: #ffd23f;
}
.selected .badge {
  color: #fff0a8;
}
.topbar {
  height: 86px;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 14px 28px 12px;
  gap: 16px;
  border: 0;
  box-shadow: none;
  background: none;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.resource-pills,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.resource-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 2px solid #f4f8ff;
  border-radius: 30px;
  background: #0a1430df;
  box-shadow: 0 0 0 3px #0b1838;
  padding: 10px 18px;
  font-size: 22px;
  white-space: nowrap;
  min-height: 52px;
}
.resource-pill b {
  font-family:
    SurvivorPixel,
    "Segoe UI",
    sans-serif;
  letter-spacing: 1px;
}
.user-pill {
  font-size: 19px;
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #5fe08a;
  margin-left: 10px;
}
.save-button {
  padding: 8px 13px !important;
}
.save-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}
.save-inner span {
  font-size: 15px;
}
.page-name {
  font-size: 15px;
  color: #c6d5ff;
  font-weight: 700;
}
.topbar .brand,
.topbar .wallet {
  display: none;
}
body[data-screen=home] .page-name {
  display: none;
}
.hub {
  width: 100%;
  max-width: 1860px;
  padding: 18px 36px 30px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 36px;
  flex: 1;
  min-height: 0;
  align-items: center;
}
.home-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0 12px;
  text-align: center;
  gap: 18px;
}
.home-logo {
  margin-bottom: 4px;
  width: 100%;
}
.logo-title {
  font-family: SurvivorPixel, monospace;
  font-size: 40px;
  font-size: clamp(40px, 5.25vw, 86px);
  line-height: 1.05;
  font-weight: 700;
  color: #ffd23f;
  text-shadow: 3px 3px 0 #a55f00, 6px 6px 0 #0a1430;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo-subtitle {
  font-size: 25px;
  color: #fff;
  letter-spacing: 5px;
  margin-top: 16px;
}
.logo-tagline {
  font-size: 14px;
  color: #e1e9ff;
  letter-spacing: 1px;
  margin: 12px 0 0;
}
.trainer-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: visible;
  min-height: 0;
  width: 100%;
}
.trainer-panel:after {
  display: none;
}
.hero-stage {
  width: 75%;
  width: min(75%, 360px);
  height: 290px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      ellipse at 50% 88%,
      #78aaff35,
      transparent 60%),
    linear-gradient(
      180deg,
      #14244ee0,
      #080e22eb);
  border: 3px solid #aeb8d1;
  border-radius: 14px;
  box-shadow:
    0 0 0 3px #0b1838,
    inset 0 0 0 2px #ffffff22,
    0 10px 30px #0007;
  overflow: hidden;
}
.hero-shadow {
  position: absolute;
  bottom: 21px;
  left: 22%;
  right: 22%;
  height: 26px;
  background: #070d26aa;
  border-radius: 50%;
}
.hero-stage .trainer-portrait {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: none;
  width: 68%;
  height: 92%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 #080e22);
  padding: 14px 0 20px;
  z-index: 1;
}
.hero-companion {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 95px;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.hero-name {
  font-size: 28px;
  margin: 16px 0 7px;
  text-shadow: 3px 3px #0a1430;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-badges span {
  padding: 4px 11px;
  background: #9ba2b3;
  border: 2px solid #0b1838;
  border-radius: 9px;
  color: #142448;
  text-shadow: none;
  font-size: 13px;
  font-weight: 700;
}
.hero-badges span + span {
  background: #1b3165db;
  color: #b9cbf0;
  border-color: #879fc5;
  text-shadow: 1px 1px #0a1430;
}
.trainer-panel .energy {
  width: 230px;
  max-width: 70%;
  margin: 11px 0 0;
}
.trainer-panel .energy > span {
  font-size: 12px;
  color: #f4f8ff;
  margin-bottom: 5px;
}
.trainer-panel .hp {
  height: 7px;
}
.home-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  max-height: 100%;
}
.hub-nav {
  padding: 25px 26px;
  display: block;
  min-height: 0;
  flex: none;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 11px 12px;
  min-height: 0;
}
button.menu-card {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
  border-radius: 7px;
  min-width: 0;
  padding: 13px 8px 13px 14px;
  position: relative;
  filter: none;
  text-shadow: 2px 2px #0a1430;
}
button.menu-card:hover:enabled,
button.menu-card:focus-visible {
  background: #ffffff14;
  border: 0;
  box-shadow: none;
  filter: none;
  outline: none;
}
button.menu-card:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 12px;
  height: 20px;
  transform: translate(-6px, -50%);
  background: var(--ico-cursor) no-repeat center/contain;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity .1s, transform .1s;
}
button.menu-card:hover:before,
button.menu-card:focus-visible:before {
  opacity: 1;
  transform: translate(0, -50%);
}
.menu-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.menu-inner > .ui-pixel-icon {
  width: 32px;
  height: 32px;
}
.menu-label {
  padding: 0;
  min-width: 0;
}
.menu-label strong {
  font-size: 17px;
  font-size: clamp(17px, 1.55vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  white-space: normal;
}
.menu-label small {
  font-size: 11px;
  font-size: clamp(11px, .9vw, 17px);
  line-height: 1.5;
  margin-top: 5px;
  color: #b9cbf0;
  font-weight: 400;
  white-space: normal;
}
button.menu-card.featured {
  grid-column: 1/-1;
  order: -1;
  background: none;
  border: 0;
  padding-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #6889c166;
  border-radius: 0;
  margin-bottom: 2px;
}
.featured .menu-label strong {
  font-size: 24px;
  font-size: clamp(24px, 2.3vw, 41px);
  color: #ffd23f;
}
.featured .menu-inner > .ui-pixel-icon {
  width: 38px;
  height: 38px;
}
.featured .menu-label small {
  font-size: 12px;
  font-size: clamp(12px, .95vw, 18px);
}
.hub-status {
  padding: 18px 25px;
}
.hub-status p {
  margin: 0 0 6px;
  line-height: 1.5;
  font-size: 17px;
  color: #b9cbf0;
}
.hub-status strong {
  color: #fff;
  font-weight: 700;
}
.hub-status p.camp-tip {
  margin: 9px 0 0;
  padding: 0;
  border-top: 1px solid #5b83d66b;
  padding-top: 9px;
  font-size: 13px;
  color: #d2ddf9;
}
.footer {
  height: 27px;
  padding: 0 24px;
  color: #aebdd8;
  background: none;
  border: 0;
  font-size: 11px;
  letter-spacing: 0;
  justify-content: space-between;
  text-shadow: 2px 2px #0a1430;
}
.credits-button {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 400;
  color: #ccd6ed;
  padding: 0;
  text-decoration: underline;
}
.page {
  max-width: 1380px;
  padding: 20px 30px 35px;
  scrollbar-color: #829de0 #14244e;
}
.page-top {
  margin-bottom: 23px;
  padding: 0 0 4px;
}
.page-top .eyebrow {
  font-size: 13px;
  color: #c4d4fc;
  background: #0b183899;
  border-radius: 16px;
  padding: 6px 13px;
  letter-spacing: 0;
}
.back {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(#3d67c0, #26468f);
}
.welcome {
  max-width: 1050px;
  padding: 30px;
  gap: 35px;
}
.starter {
  background: #0d1c45aa;
  border: 2px solid #7d9bdd;
  border-radius: 11px;
  box-shadow: none;
  padding: 16px;
}
.starter:hover:enabled {
  border-color: #ffd23f;
}
.starter-grid {
  gap: 18px;
}
.starter strong {
  font-size: 18px;
}
.starter small {
  font-size: 13px;
}
.collection {
  gap: 13px;
}
.mon-card {
  background: #1027569c;
  border: 2px solid #7495cd;
  border-radius: 10px;
  box-shadow: none;
}
.mon-card.selected {
  background: #ffd23f24;
  border-color: #ffd23f;
}
.small-mon strong {
  font-size: 15px;
}
.small-mon small {
  font-size: 12px;
}
.shop-row {
  border-color: #5b83d6;
}
.shop-row strong {
  font-size: 17px;
}
.shop-row small {
  color: #b9cbf0;
  font-size: 13px;
}
.shop-row button {
  font-size: 15px;
}
.pixel-ball {
  background: var(--survivor-ball) center/contain no-repeat;
  border: 0;
  box-shadow: none;
  width: 26px;
  height: 26px;
}
.pixel-ball:after {
  display: none;
}
.potion-icon {
  border-radius: 5px;
}
.condition {
  color: #d5e2ff;
}
.recruit .ticket-count {
  color: #ffd23f;
}
.gacha-display {
  background:
    radial-gradient(
      ellipse,
      #637bc838,
      transparent 70%);
  width: 100%;
  justify-content: center;
  gap: 20px;
}
.joy-scene {
  background:
    radial-gradient(
      ellipse,
      #566fbb44,
      transparent 70%);
  border-radius: 12px;
}
.route-art {
  background: linear-gradient(#101d45bb, #182d5cc7);
  border: 2px solid #7495cd;
  border-radius: 11px;
}
.stage-option {
  border: 2px solid #597dbc;
  border-radius: 8px;
  background: #142e64;
  box-shadow: none;
}
.stage-option.selected {
  background: #4266a7;
  border-color: #ffd23f;
}
.stage-index {
  color: #ffd23f;
  font-family: SurvivorPixel, monospace;
}
.briefing dd {
  color: #fff;
}
.opponent {
  border: 2px solid #7294d7;
  border-radius: 12px;
  background: #11244dbb;
}
.opponent.won {
  border-color: #5fe08a;
}
.opponent p {
  color: #ffd23f;
}
.task {
  border-color: #5b83d6;
}
.task-seal {
  color: #ffd23f;
}
.task > strong {
  font-family: SurvivorPixel, monospace;
}
.report-rewards {
  color: #ffd23f;
}
.lan-codes textarea {
  border-radius: 8px;
  background: #0f1f4a;
  border: 2px solid #5b83d6;
  color: #fff;
}
.lan-codes label {
  color: #b9cbf0;
}
.lan-bottom p {
  color: #9aefbf;
}
.dialog-back {
  background: #050a19b8;
}
.dialog {
  border-radius: 13px;
  max-width: 650px;
  padding: 25px;
  animation: survivor-pop .2s ease-out;
}
.dialog h2 {
  font-size: 25px;
}
.dialog p {
  font-size: 15px;
}
.toast {
  background: linear-gradient(#2c519f, #1a3170);
  border: 3px solid #f4f8ff;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #0b1838, inset 0 0 0 2px #5b83d6;
  color: #fff;
  text-shadow: 2px 2px #0a1430;
  font-size: 15px;
}
.battle-transition {
  background:
    linear-gradient(
      180deg,
      #2c519f,
      #1a3170);
}
.battle-transition h2 {
  color: #ffd23f;
}
.battle-transition p {
  color: #b9cbf0;
}
.encounter-mark {
  font-family: SurvivorPixel, monospace;
  color: #ffd23f;
}
.field-location,
.field-objective,
.field-team,
.field-loot {
  background: linear-gradient(#2c519fea, #1a3170ed);
  border-radius: 10px;
}
.field-location small {
  font-family: SurvivorPixel, monospace;
}
.field-actions button,
.dir {
  background: linear-gradient(#3d67c0dd, #26468fee);
  border: 2px solid #f4f8ff;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #0b1838;
}
.field-caption {
  color: #e0e8ff;
}
.field-retreat {
  border-radius: 8px;
}
.field-mon .hp i {
  background: #5fe08a;
}
body.in-battle .hud .play-bar {
  border: 3px solid #f4f8ff;
  border-radius: 12px;
  background: linear-gradient(#2c519ff0, #1a3170f5);
  box-shadow: 0 0 0 3px #0b1838, inset 0 0 0 2px #5b83d6;
}
body.in-battle .hud .play-bar .pb-move,
body.in-battle .hud .play-bar .pb-dodge,
body.in-battle .hud .pb-slot,
body.in-battle .hud .hud-btn {
  border-radius: 8px !important;
  background: linear-gradient(#3d67c0, #26468f);
  border: 2px solid #f4f8ff;
  box-shadow: 0 0 0 2px #0b1838, 0 3px 0 #0b1838;
  font-family: var(--font);
}
body.in-battle .hud .play-bar .pb-move:before,
body.in-battle .hud .play-bar .pb-move:after {
  display: none;
}
body.in-battle .hud .play-bar .pb-move .nm,
body.in-battle .hud .pb-dodge,
body.in-battle .hud .pb-hint,
body.in-battle .hud .pb-slot {
  font-family: var(--font);
  text-shadow: 2px 2px #0a1430;
}
body.in-battle .hud .play-bar .pb-move .ty {
  border-radius: 4px;
}
body.in-battle .hud .play-bar .pb-move .cd {
  border-radius: 7px;
}
.exp-battle-result {
  background: #050a19b8;
}
.exp-battle-result .panel {
  border-radius: 12px;
}
.exp-battle-result button {
  border-radius: 9px;
}
@keyframes survivor-pop {
  from {
    transform: scale(.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width:1600px) {
  .hub {
    gap: 60px;
    padding: 30px 52px 50px;
  }
  .hero-stage {
    height: 330px;
    width: 380px;
  }
  .home-left {
    gap: 27px;
  }
  .home-right {
    gap: 26px;
  }
  .hub-nav {
    padding: 32px;
  }
  .menu-grid {
    gap: 14px 20px;
  }
  button.menu-card {
    padding: 15px 12px 15px 17px;
  }
  .menu-inner {
    gap: 22px;
  }
  .hub-status {
    padding: 22px 30px;
  }
  .hub-status p {
    font-size: 20px;
  }
  .logo-subtitle {
    font-size: 29px;
  }
  .hero-name {
    font-size: 32px;
  }
  .resource-pill {
    font-size: 25px;
    padding: 11px 20px;
  }
  .topbar {
    height: 100px;
    padding: 18px 38px;
  }
  .hero-stage .trainer-portrait {
    padding-bottom: 28px;
  }
}
@media (max-height:700px) {
  .topbar {
    height: 68px;
    padding: 10px 20px;
  }
  .resource-pill {
    min-height: 40px;
    font-size: 17px;
    padding: 7px 13px;
    gap: 8px;
  }
  .resource-pill .ui-pixel-icon {
    width: 22px;
    height: 22px;
  }
  .user-pill {
    font-size: 15px;
  }
  .save-inner span {
    font-size: 13px;
  }
  .save-inner .ui-pixel-icon {
    width: 24px;
    height: 24px;
  }
  .hub {
    padding: 8px 25px 18px;
    gap: 28px;
  }
  .home-left {
    gap: 12px;
    padding: 0;
  }
  .logo-title {
    font-size: 34px;
    font-size: clamp(34px, 5vw, 67px);
  }
  .logo-subtitle {
    font-size: 21px;
    margin-top: 11px;
  }
  .logo-tagline {
    font-size: 12px;
    margin-top: 8px;
  }
  .hero-stage {
    height: 200px;
    width: 255px;
  }
  .hero-name {
    font-size: 23px;
    margin: 12px 0 5px;
  }
  .hero-badges span {
    font-size: 11px;
  }
  .trainer-panel .energy {
    margin-top: 7px;
  }
  .trainer-panel .energy > span {
    font-size: 10px;
  }
  .trainer-panel .hp {
    height: 6px;
  }
  .home-right {
    gap: 16px;
  }
  .hub-nav {
    padding: 19px 20px;
  }
  .menu-grid {
    gap: 5px 10px;
  }
  button.menu-card {
    padding: 9px 7px 9px 11px;
  }
  .menu-label strong {
    font-size: 20px;
  }
  .menu-label small {
    font-size: 12px;
    margin-top: 4px;
  }
  .menu-inner {
    gap: 12px;
  }
  .menu-inner > .ui-pixel-icon {
    width: 27px;
    height: 27px;
  }
  .featured .menu-label strong {
    font-size: 28px;
  }
  .featured .menu-label small {
    font-size: 13px;
  }
  .featured .menu-inner > .ui-pixel-icon {
    width: 32px;
    height: 32px;
  }
  button.menu-card.featured {
    padding-bottom: 13px;
  }
  .hub-status {
    padding: 13px 20px;
  }
  .hub-status p {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .hub-status p.camp-tip {
    font-size: 11px;
    margin-top: 6px;
    padding-top: 6px;
  }
  .footer {
    height: 24px;
    font-size: 10px;
  }
  .credits-button {
    font-size: 10px;
  }
  .page {
    padding-top: 12px;
  }
  .panel:not(.hub-nav):not(.hub-status):not(.dialog) {
    padding: 20px;
  }
  .hero-stage .trainer-portrait {
    padding: 10px 0 15px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  html,
  body {
    font-size: 13px;
  }
  .topbar {
    height: 56px;
    padding: 7px 15px;
  }
  .resource-pills,
  .top-actions {
    gap: 9px;
  }
  .resource-pill {
    font-size: 15px;
    min-height: 34px;
    padding: 5px 11px;
    gap: 7px;
    border-radius: 24px;
  }
  .resource-pill .ui-pixel-icon {
    width: 20px;
    height: 20px;
  }
  .user-pill {
    font-size: 13px;
  }
  .online-dot {
    width: 8px;
    height: 8px;
    margin-left: 3px;
  }
  .save-button {
    padding: 4px 8px !important;
    border-width: 2px;
  }
  .save-inner .ui-pixel-icon {
    width: 22px;
    height: 22px;
  }
  .save-inner span {
    display: none;
  }
  .page-name {
    font-size: 12px;
  }
  .hub {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    padding: 4px 18px 10px;
    gap: 20px;
  }
  .home-left {
    gap: 8px;
  }
  .home-logo {
    margin: 0;
  }
  .logo-title {
    font-size: 30px;
    font-size: clamp(30px, 4.9vw, 49px);
    text-shadow: 2px 2px #a55f00, 4px 4px #0a1430;
    letter-spacing: 0;
  }
  .logo-subtitle {
    font-size: 17px;
    letter-spacing: 3px;
    margin-top: 7px;
  }
  .logo-tagline {
    font-size: 10px;
    margin-top: 5px;
  }
  .hero-stage {
    width: 188px;
    height: 130px;
    border-radius: 12px;
  }
  .hero-stage .trainer-portrait {
    width: 63%;
    height: 100%;
    padding: 7px 0 9px;
  }
  .hero-shadow {
    height: 13px;
    bottom: 9px;
  }
  .hero-companion {
    right: -9px;
    bottom: 4px;
    transform: scale(.67);
    transform-origin: bottom right;
  }
  .hero-name {
    font-size: 18px;
    margin: 7px 0 3px;
  }
  .hero-badges span {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 6px;
  }
  .hero-badges {
    gap: 5px;
  }
  .trainer-panel .energy {
    width: 155px;
    margin-top: 4px;
  }
  .trainer-panel .energy > span {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .trainer-panel .hp {
    height: 5px;
  }
  .home-right {
    gap: 12px;
  }
  .hub-nav {
    padding: 12px 13px;
  }
  .menu-grid {
    gap: 1px 5px;
  }
  button.menu-card {
    padding: 7px 5px 7px 9px;
    border-radius: 6px;
  }
  .menu-inner {
    gap: 9px;
  }
  .menu-inner > .ui-pixel-icon {
    width: 24px;
    height: 24px;
  }
  .menu-label strong {
    font-size: 16px;
    line-height: 1.3;
  }
  .menu-label small {
    font-size: 10px;
    line-height: 1.4;
    margin-top: 3px;
  }
  .featured .menu-label strong {
    font-size: 23px;
  }
  .featured .menu-label small {
    font-size: 11px;
  }
  .featured .menu-inner > .ui-pixel-icon {
    width: 28px;
    height: 28px;
  }
  button.menu-card.featured {
    padding-top: 3px;
    padding-bottom: 9px;
    margin-bottom: 3px;
  }
  .hub-status {
    padding: 9px 15px;
  }
  .hub-status p {
    font-size: 12px;
    margin: 0 0 2px;
  }
  .hub-status p.camp-tip {
    font-size: 10px;
    padding-top: 4px;
    margin-top: 3px;
  }
  .footer {
    height: 20px;
    font-size: 8px;
    padding: 0 15px;
  }
  .credits-button {
    font-size: 9px;
  }
  .page {
    padding: 9px 16px 20px;
  }
  .page-top {
    margin-bottom: 16px;
  }
  .back {
    font-size: 12px;
    padding: 6px 12px;
    border-width: 2px;
  }
  .page-top .eyebrow {
    font-size: 10px;
  }
  .panel:not(.hub-nav):not(.hub-status):not(.dialog) {
    padding: 16px;
  }
  .welcome {
    gap: 18px;
  }
  .starter {
    padding: 10px;
    min-width: 90px;
  }
  .starter strong {
    font-size: 15px;
  }
  .starter small {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .dialog {
    padding: 20px;
  }
  .dialog h2 {
    font-size: 21px;
  }
  .dialog p {
    font-size: 13px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .toast {
    font-size: 12px;
  }
  .field-top .panel {
    padding: 8px 11px !important;
  }
  .field-team.panel,
  .field-loot.panel {
    padding: 8px !important;
  }
}
@media (max-width:720px) and (orientation:landscape) {
  .hub {
    padding: 2px 12px 8px;
    gap: 13px;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
  .home-left {
    gap: 6px;
  }
  .logo-title {
    font-size: 30px;
  }
  .logo-subtitle {
    font-size: 15px;
  }
  .logo-tagline {
    display: none;
  }
  .hero-stage {
    width: 164px;
    height: 128px;
  }
  .hero-name {
    font-size: 17px;
  }
  .hub-nav {
    padding: 10px 9px;
  }
  .menu-inner {
    gap: 6px;
  }
  .menu-label strong {
    font-size: 13px;
  }
  .menu-label small {
    font-size: 9px;
  }
  .menu-inner > .ui-pixel-icon {
    width: 20px;
    height: 20px;
  }
  .featured .menu-label strong {
    font-size: 21px;
  }
  .featured .menu-label small {
    font-size: 10px;
  }
  .featured .menu-inner > .ui-pixel-icon {
    width: 26px;
    height: 26px;
  }
  .hub-status p {
    font-size: 11px;
  }
  .hub-status p.camp-tip {
    font-size: 9px;
  }
  .resource-pill {
    font-size: 13px;
    padding: 5px 9px;
  }
  .user-pill {
    max-width: 205px;
    font-size: 11px;
  }
  .resource-pills {
    gap: 8px;
  }
  .resource-pill .ui-pixel-icon {
    width: 18px;
    height: 18px;
  }
  .online-dot {
    display: none;
  }
  .save-inner .ui-pixel-icon {
    width: 20px;
    height: 20px;
  }
  .topbar {
    height: 53px;
  }
  .home-right {
    gap: 10px;
  }
  button.menu-card {
    padding: 7px 4px 7px 7px;
  }
}
@media (orientation:portrait) {
  html,
  body {
    font-size: 14px;
  }
  .topbar {
    height: 68px;
    padding: 10px 12px;
    gap: 10px;
  }
  .resource-pill {
    font-size: 14px;
    min-height: 35px;
    padding: 6px 11px;
    gap: 7px;
  }
  .resource-pill .ui-pixel-icon {
    width: 20px;
    height: 20px;
  }
  .resource-pills,
  .top-actions {
    gap: 9px;
  }
  .user-pill {
    display: none;
  }
  .save-inner span {
    display: none;
  }
  .save-inner .ui-pixel-icon {
    width: 24px;
    height: 24px;
  }
  .page-name {
    display: none;
  }
  .save-button {
    padding: 5px 9px !important;
    border-width: 2px;
  }
  .hub {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 15px 16px 24px;
    gap: 24px;
    align-items: stretch;
  }
  .home-left {
    padding: 0;
    gap: 15px;
    flex-shrink: 0;
  }
  .home-logo {
    margin: 0;
  }
  .logo-title {
    font-size: 33px;
    font-size: clamp(33px, 9.2vw, 53px);
  }
  .logo-subtitle {
    font-size: 20px;
    margin-top: 10px;
    letter-spacing: 3px;
  }
  .logo-tagline {
    font-size: 11px;
    margin-top: 8px;
  }
  .trainer-panel {
    min-height: 0;
    flex: none;
  }
  .hero-stage {
    height: 180px;
    width: 230px;
  }
  .hero-stage .trainer-portrait {
    width: 65%;
    height: 100%;
    padding: 10px 0 15px;
  }
  .hero-companion {
    transform: scale(.8);
    transform-origin: bottom right;
  }
  .hero-name {
    font-size: 22px;
    margin: 11px 0 6px;
  }
  .hero-badges span {
    font-size: 11px;
  }
  .trainer-panel .energy {
    margin-top: 8px;
    width: 190px;
  }
  .home-right {
    gap: 19px;
    max-height: none;
    flex-shrink: 0;
  }
  .hub-nav {
    min-height: 0;
    padding: 18px 15px;
  }
  .menu-grid {
    gap: 7px 8px;
  }
  .menu-card {
    min-height: 0 !important;
  }
  .menu-inner {
    gap: 10px;
  }
  .menu-inner > .ui-pixel-icon {
    width: 25px;
    height: 25px;
  }
  .menu-label strong {
    font-size: 16px;
  }
  .menu-label small {
    font-size: 10px;
    margin-top: 4px;
  }
  .featured .menu-label strong {
    font-size: 25px;
  }
  .featured .menu-label small {
    font-size: 12px;
  }
  .featured .menu-inner > .ui-pixel-icon {
    width: 30px;
    height: 30px;
  }
  button.menu-card {
    padding: 10px 5px 10px 8px;
  }
  button.menu-card.featured {
    padding-bottom: 15px;
  }
  .hub-status {
    padding: 15px 19px;
  }
  .hub-status p {
    font-size: 14px;
  }
  .hub-status p.camp-tip {
    font-size: 11px;
  }
  .footer {
    height: 30px;
    padding: 0 12px;
    font-size: 8px;
    gap: 10px;
  }
  .credits-button {
    font-size: 9px;
    white-space: nowrap;
  }
  .page {
    padding: 14px 16px 28px;
  }
  .back {
    font-size: 13px;
    padding: 8px 13px;
  }
  .panel:not(.hub-nav):not(.hub-status):not(.dialog) {
    padding: 19px;
  }
  .dialog p {
    font-size: 13px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .dialog h2 {
    font-size: 21px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .hub-nav {
    padding: 10px 12px;
  }
  .menu-grid {
    gap: 1px 5px;
  }
  button.menu-card {
    padding: 4px 5px 4px 9px;
  }
  .menu-label strong {
    line-height: 1.2;
  }
  .menu-label small {
    line-height: 1.2;
    margin-top: 2px;
  }
  .featured .menu-label strong {
    line-height: 1.2;
  }
  .featured .menu-label small {
    line-height: 1.2;
    margin-top: 2px;
  }
  button.menu-card.featured {
    padding-top: 4px;
    padding-bottom: 7px;
  }
  .hub-status {
    padding: 8px 14px;
  }
  .hub-status p {
    line-height: 1.35;
  }
  .hub-status p.camp-tip {
    line-height: 1.3;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .hub-status p.camp-tip {
    display: none;
  }
  .home-right {
    gap: 10px;
  }
  .home-left {
    gap: 6px;
  }
  .hero-stage {
    height: 118px;
  }
  .trainer-panel .energy {
    margin-top: 3px;
  }
  .hero-name {
    margin-top: 5px;
  }
}
@media (orientation:portrait) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .menu-label strong {
    font-size: 18px;
    white-space: nowrap;
  }
  .menu-label small {
    font-size: 12px;
    white-space: normal;
  }
  .menu-inner {
    gap: 14px;
  }
  .menu-inner > .ui-pixel-icon {
    width: 28px;
    height: 28px;
  }
  button.menu-card {
    padding: 11px 8px 11px 12px;
  }
}
.exploration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0b1428;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.exploration > canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #0b1428;
}
.field-top {
  position: absolute;
  left: 12px;
  top: 10px;
  right: auto;
  display: flex;
  gap: 8px;
  align-items: stretch;
  pointer-events: none;
  z-index: 3;
}
.field-top .panel {
  padding: 6px 11px !important;
  border-radius: 10px;
}
.field-location small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #bcd2ff;
}
.field-location strong {
  font-size: 14px;
}
.field-objective {
  display: flex;
  align-items: center;
  font-size: 11px;
}
.field-team {
  position: absolute;
  left: 12px;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px !important;
  min-width: 0;
  background: linear-gradient(#2c519fd6, #1a3170d6);
  border-radius: 10px;
  pointer-events: none;
  z-index: 3;
}
.field-mon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
}
.field-mon strong {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}
.field-mon .hp {
  width: 58px;
  height: 4px;
  margin-top: 2px;
}
.field-side {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 3;
}
.field-map {
  padding: 4px !important;
  border-radius: 9px;
  line-height: 0;
}
.field-map canvas {
  display: block;
  max-width: 150px;
  max-height: 110px;
  image-rendering: pixelated;
  border-radius: 5px;
}
.field-loot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 9px !important;
  font-size: 10px;
  border-radius: 9px;
  pointer-events: none;
  position: static !important;
}
.field-loot strong {
  font-size: 10px;
}
.loot-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: SurvivorPixel, monospace;
}
.loot-row img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  margin-left: 4px;
}
.loot-row img:first-child {
  margin-left: 0;
}
.field-retreat {
  margin: 0 !important;
  padding: 6px 14px !important;
  font-size: 11px;
}
.stick-zone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 72%;
  z-index: 2;
  touch-action: none;
}
.stick-base {
  position: absolute;
  left: 96px;
  top: calc(100% - 96px);
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #ffffff14 0,
      #ffffff14 55%,
      #ffffff26 56%,
      #ffffff26 100%);
  border: 3px solid #ffffff55;
  box-shadow: 0 0 0 2px #0b183866;
  opacity: .55;
  transition: opacity .15s;
  pointer-events: none;
}
.stick-base.on {
  opacity: 1;
}
.stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      #fff,
      #bcd2ff 60%,
      #7d9ee6);
  border: 3px solid #fff;
  box-shadow: 0 3px 0 #0b1838, 0 0 12px #0008;
}
.field-actions {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  z-index: 3;
}
.field-actions > button {
  width: 66px;
  height: 66px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(#3d67c0ee, #26468ff0) !important;
  border: 3px solid #f4f8ff !important;
  box-shadow: 0 4px 0 #0b1838, 0 0 0 2px #0b1838 !important;
}
.field-actions > button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b1838 !important;
}
.field-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.field-btn img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.field-btn b {
  font-size: 10px;
}
.field-caption {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #e0e8ff;
  text-shadow: 1px 1px #000;
  pointer-events: none;
  z-index: 3;
}
.item-icon {
  image-rendering: pixelated;
  vertical-align: middle;
}
.item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-row .item-icon {
  flex: none;
}
.joy-scene {
  height: auto !important;
  padding: 4px 0;
}
.joy-scene canvas {
  display: block;
  height: 96px !important;
  height: clamp(96px, 30vh, 288px) !important;
  width: auto !important;
  max-width: 100%;
  aspect-ratio: 224/144;
  --ar: 224/144;
  object-fit: contain;
  margin: 0 auto;
  image-rendering: pixelated;
  border-radius: 8px;
  border: 2px solid #f4f8ff;
  box-shadow: 0 0 0 2px #0b1838;
}
@media (max-height:420px) {
  .field-top .panel {
    padding: 4px 9px !important;
  }
  .field-location strong {
    font-size: 12px;
  }
  .field-team {
    top: 50px;
  }
  .field-map canvas {
    max-width: 120px;
    max-height: 84px;
  }
  .field-actions > button {
    width: 56px;
    height: 56px;
  }
  .field-caption {
    display: none;
  }
}
@media (orientation:portrait) {
  .field-objective {
    display: none;
  }
  .stick-zone {
    width: 100%;
    height: 45%;
  }
}
.gba.field-gba {
  position: fixed;
  left: 50%;
  bottom: var(--safe-bottom,0px);
  transform: translateX(-50%);
  width: calc(var(--u)*240);
  height: calc(var(--u)*48);
  max-width: 100vw;
  background: transparent;
  overflow: visible;
  z-index: 60;
}
.stick-base.fixed.on {
  opacity: .8;
}
.stick-base.on.idle {
  opacity: .45;
}
.pe-dpad {
  position: absolute;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}
.pe-dpad[hidden] {
  display: none;
}
.pe-dpad svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #30385066);
}
.pe-dpad .edge {
  fill: #303850;
}
.pe-dpad .side {
  fill: #687890;
}
.pe-dpad .face {
  fill: #c0d0e0;
}
.pe-dpad .hl {
  fill: #f8f8f0;
}
.pe-dpad .sh {
  fill: #8898b0;
}
.pe-dpad .ar {
  fill: #404858;
}
.pe-dpad .pit {
  fill: #8898b0;
}
.pe-dpad .pit-in {
  fill: #a8b8c8;
}
.pe-dpad .diag .face {
  fill: #f8f8f0;
}
.pe-dpad g {
  transition: transform .05s;
}
.pe-dpad .arm.on {
  transform: translateY(1px);
}
.pe-dpad .arm.on .face {
  fill: #f0d898;
}
.pe-dpad .arm.on .hl {
  fill: #f8f0c8;
}
.pe-dpad .arm.on .sh {
  fill: #c8a868;
}
.pe-dpad .arm.on .ar {
  fill: #b84840;
}
.pe-dpad .diag.on .face {
  fill: #e8a030;
}
.pb-stick.pe-dpad-mode > *:not(.pe-dpad) {
  visibility: hidden;
}
.pb-stick.pe-dpad-mode {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pb-stick .pe-dpad {
  position: absolute;
  top: -4%;
  right: -4%;
  bottom: -4%;
  left: -4%;
  width: auto;
  height: auto;
}
body[data-screen=explore] .field-hud-left, body[data-screen=explore] .field-side, body[data-screen=explore] .field-caption, body[data-screen=road] .field-hud-left, body[data-screen=road] .field-side, body[data-screen=road] .field-caption, .in-battle .pb-team, .in-battle .wild-dock {
  opacity: var(--hud-alpha,1);
  transition: opacity .15s;
}
body[data-screen=explore] .field-hud-left:hover, body[data-screen=explore] .field-side:hover, body[data-screen=explore] .field-caption:hover, body[data-screen=road] .field-hud-left:hover, body[data-screen=road] .field-side:hover, body[data-screen=road] .field-caption:hover, .in-battle .pb-team:hover, .in-battle .wild-dock:hover {
  opacity: 1;
}
body[data-screen=explore] .stick-base, body[data-screen=explore] .field-dpad, body[data-screen=explore] .run-button, body[data-screen=road] .stick-base, body[data-screen=road] .field-dpad, body[data-screen=road] .run-button, .in-battle .pb-moves, .in-battle .pb-dodge, .in-battle .pb-stick, .in-battle .auto-battle, .in-battle .auto-swap {
  opacity: var(--hud-alpha,1);
  transition: opacity .15s;
}
.side-hud,
.side-hud * {
  font-family: var(--font);
}
.side-hud button {
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.side-hud .run-button img {
  width: 60%;
  height: auto;
}
.side-hud {
  position: absolute;
  right: calc(58px + var(--safe-right,0px));
  bottom: calc(58px + var(--safe-bottom,0px));
  width: 0;
  height: 0;
  z-index: 7;
}
.side-hud .run-button {
  position: absolute !important;
  left: -124.4px !important;
  top: -70.3px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 64px !important;
  height: 64px !important;
}
.side-hud .recall-button {
  position: absolute !important;
  left: -67.3px !important;
  top: -121.4px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 58px !important;
  height: 58px !important;
}
@media (max-height:470px) {
  .side-hud {
    position: absolute;
    right: calc(50px + var(--safe-right,0px));
    bottom: calc(50px + var(--safe-bottom,0px));
    width: 0;
    height: 0;
    z-index: 7;
  }
  .side-hud .run-button {
    position: absolute !important;
    left: -107.5px !important;
    top: -60.9px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 56px !important;
    height: 56px !important;
  }
  .side-hud .recall-button {
    position: absolute !important;
    left: -57.9px !important;
    top: -104.5px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 50px !important;
    height: 50px !important;
  }
}
.exploration.side-play .field-team {
  position: fixed !important;
  left: 50%;
  top: auto !important;
  bottom: calc(8px + var(--safe-bottom,0px));
  transform: translateX(-50%);
  margin: 0 !important;
  grid-template-columns: repeat(6, 42px) !important;
  grid-auto-rows: 40px;
  z-index: 6;
}
.exploration.side-play .field-team .party-thumb {
  pointer-events: auto;
  cursor: pointer;
}
.exploration.side-play .field-quick {
  flex-direction: row !important;
}
.side-lockmode {
  position: fixed;
  left: calc(18px + var(--safe-left,0px));
  bottom: calc(150px + var(--safe-bottom,0px));
  z-index: 7;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 11px !important;
  padding: 3px 8px !important;
  min-height: 0 !important;
  background: #687898ed !important;
  color: #fff !important;
  border: 2px solid #f8d898 !important;
  box-shadow: inset 2px 2px #c0d0e0, 0 3px 0 #303850 !important;
  text-shadow: 1px 1px 0 #303850;
  pointer-events: auto;
}
@media (max-height:470px) {
  .exploration.side-play .field-team {
    grid-template-columns: repeat(6, 38px) !important;
    grid-auto-rows: 36px;
  }
  .side-lockmode {
    bottom: calc(132px + var(--safe-bottom,0px));
  }
}
body.field-battle #app {
  pointer-events: none !important;
}
body.field-battle #app .battle-screen {
  background: transparent !important;
  pointer-events: none !important;
}
body.field-battle #app .battle-canvas {
  pointer-events: none !important;
}
body.field-battle #app button, body.field-battle #app .pb-team, body.field-battle #app .pb-slot, body.field-battle #app .dialog, body.field-battle #app .exp-battle-result {
  pointer-events: auto;
}
body.field-battle #app .pb-stick, body.field-battle #app .pe-stick-zone, body.field-battle #app .pe-dpad {
  display: none !important;
}
body.field-battle .exploration .field-team {
  display: none !important;
}
body.in-battle.field-battle #game-ui {
  display: flex !important;
  visibility: visible !important;
}
body.field-battle #game-ui,
body.field-battle #app {
  position: absolute !important;
  z-index: auto !important;
}
body.field-battle #app .battle-screen {
  z-index: auto !important;
}
body.field-battle #app .battle-canvas {
  z-index: 1;
}
body.field-battle #app .battle-screen > :not(.battle-canvas) {
  z-index: 3;
}
body[data-screen=explore] .exploration.side-play .field-side .field-actions {
  flex-direction: row-reverse !important;
  align-items: flex-start !important;
}
.recall-button {
  position: absolute;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #283858 !important;
  font-family: var(--font) !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #d8e8ff !important;
  filter: drop-shadow(0 4px 0 #30385080);
}
.recall-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: url(/_expedition/assets/ui/dodge-button.png) center/100% 100% no-repeat;
  image-rendering: pixelated;
  filter: hue-rotate(195deg) saturate(.9);
}
.recall-button:active {
  transform: translateY(3px) !important;
  filter: drop-shadow(0 1px 0 #30385080);
}
.recall-button:active::before {
  background-image: url(/_expedition/assets/ui/dodge-button-down.png);
}
.side-hud .recall-button {
  font-size: 16px !important;
  isolation: isolate;
}
@media (max-height:470px) {
  .side-hud .recall-button {
    font-size: 14px !important;
  }
}
.fw-cards {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
}
.fw-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 232px;
  min-height: 50px;
  padding: 4px 7px 4px 4px;
  box-sizing: border-box;
  --edge:#2c4a8c;
  --lite:#b8cdf4;
  background: #f8f8e8;
  border: 2px solid #fff;
  border-right-color: var(--lite);
  border-bottom-color: var(--lite);
  border-radius: 0;
  color: #303848;
  font-family: var(--font);
  font-size: 12px;
  image-rendering: pixelated;
  box-shadow:
    0 -3px 0 var(--edge),
    0 3px 0 var(--edge),
    -3px 0 0 var(--edge),
    3px 0 0 var(--edge),
    0 6px 0 #0b183866;
}
.fw-card.fw-me {
  top: calc(9px + var(--safe-top,0px));
  left: calc(11px + var(--safe-left,0px));
}
.fw-card.fw-foe {
  top: calc(9px + var(--safe-top,0px));
  left: 50%;
  transform: translateX(-50%);
}
.fw-timer {
  position: absolute;
  top: calc(69px + var(--safe-top,0px));
  left: calc(8px + var(--safe-left,0px));
  max-width: 236px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f8f8e8ed;
  color: #404858;
  border: 2px solid #687890;
}
.fw-line {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fw-line .fw-hp {
  flex: 1;
}
.fw-line small {
  font-size: 9px;
  white-space: nowrap;
}
.fw-who {
  font-size: 9px;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 0;
  background: #b83848;
  color: #fff;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-who.shielded {
  background: #2c5ab8;
  color: #fff;
}
.fw-hp.person i {
  --hi:#ff9aa4;
  --lo:#e84858;
}
.fw-hp.person i.mid {
  --hi:#ffc878;
  --lo:#e08828;
}
.fw-hp.person i.low {
  --hi:#ff6868;
  --lo:#c82030;
}
body.fw-pure .field-hud-left .field-top {
  display: none !important;
}
.fw-card.fw-foe {
  --edge:#8c2c3c;
  --lite:#f0c0b8;
}
.fw-card.empty {
  visibility: hidden;
}
.fw-card .fw-pic {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      #d8e8c8 0,
      #d8e8c8 4px,
      #c8dcb8 4px,
      #c8dcb8 8px);
  border: 2px solid #404858;
  border-radius: 0;
}
.fw-card .fw-pic canvas,
.fw-card .fw-pic img {
  max-width: 38px;
  max-height: 38px;
  image-rendering: pixelated;
}
.fw-card .fw-nopic {
  font-weight: 900;
  color: #b83848;
}
.fw-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fw-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.fw-name b {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-name small {
  font-size: 10px;
  color: #687890;
}
.fw-name em {
  font-style: normal;
  font-size: 9px;
  padding: 0 3px;
  border-radius: 0;
}
.fw-tag {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  padding: 0 4px;
  border-radius: 0;
  background: #ffd040;
  color: #3a2a00;
  box-shadow: inset -1px -1px 0 #c89018;
  flex: none;
}
.fw-hp {
  box-sizing: border-box;
  height: 9px;
  background: #586068;
  border: 2px solid #303848;
  border-radius: 0;
  overflow: hidden;
}
.fw-hp i {
  --hi:#a0f0a0;
  --lo:#48c058;
  display: block;
  height: 100%;
  background: linear-gradient(var(--hi) 0 40%, var(--lo) 40%);
  transition: width .2s steps(6);
}
.fw-hp i.mid {
  --hi:#ffe888;
  --lo:#e0a818;
}
.fw-hp i.low {
  --hi:#ff9078;
  --lo:#d83828;
}
.fw-hp.none {
  height: auto;
  background: none;
}
.fw-hp.none small {
  font-size: 9px;
  color: #b83848;
}
.fw-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
}
.fw-hearts {
  color: #ff6070;
  letter-spacing: -1px;
}
.fw-balls {
  display: flex;
  gap: 2px;
}
.fw-balls i {
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(
      #e84038 0,
      #e84038 50%,
      #f8f8f8 50%);
  border: 1px solid #303848;
  clip-path: polygon(1px 0, 7px 0, 7px 1px, 8px 1px, 8px 7px, 7px 7px, 7px 8px, 1px 8px, 1px 7px, 0 7px, 0 1px, 1px 1px);
}
.fw-balls i.out {
  background: #889098;
}
body.field-battle .exploration .field-hud-left {
  display: flex !important;
  top: calc(60px + var(--safe-top,0px));
}
body.field-battle .exploration .field-hud-left .field-location {
  display: none;
}
body.field-battle .side-lockmode {
  display: none !important;
}
canvas.world-top {
  position: fixed;
  pointer-events: none !important;
  image-rendering: pixelated;
}
.exploration.side-play .run-button {
  display: none !important;
}
body.field-battle.in-battle .hud.mode-play .pb-dodge.pb-dodge {
  width: 88px !important;
  height: 88px !important;
  right: calc(72px + var(--safe-right,0px)) !important;
  bottom: calc(6px + var(--safe-bottom,0px)) !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  font-size: 19px !important;
}
body.field-battle .exploration .side-hud .recall-button {
  position: fixed !important;
  right: calc(12px + var(--safe-right,0px)) !important;
  bottom: calc(78px + var(--safe-bottom,0px)) !important;
  left: auto !important;
  top: auto !important;
  width: 76px !important;
  height: 76px !important;
  font-size: 17px !important;
  z-index: 8;
}
@media (max-height:400px) {
  body.field-battle.in-battle .hud.mode-play .pb-dodge.pb-dodge {
    width: 72px !important;
    height: 72px !important;
    right: calc(60px + var(--safe-right,0px)) !important;
    bottom: calc(6px + var(--safe-bottom,0px)) !important;
    font-size: 16px !important;
  }
  body.field-battle .exploration .side-hud .recall-button {
    right: calc(10px + var(--safe-right,0px)) !important;
    bottom: calc(64px + var(--safe-bottom,0px)) !important;
    width: 64px !important;
    height: 64px !important;
    font-size: 14px !important;
  }
}
.fw-says {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 120;
}
.fw-say {
  position: fixed;
  transform: translate(-50%, -100%);
  padding: 3px 8px;
  background: #fffdf4;
  color: #1c2030;
  border: 2px solid #1c2030;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 0 #1c203055;
}
.fw-say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1c2030;
  border-bottom: 0;
}
.field-map-big {
  cursor: pointer;
}
.field-map-big canvas {
  width: 150px;
  height: 110px;
  max-width: none;
  max-height: none;
}
@media (max-height:500px) {
  .field-map-big canvas {
    width: 120px;
    height: 84px;
  }
}
.recall-button.as-run {
  background: #e8a040 !important;
}
.pe-boot.fw-loading {
  z-index: 1000;
}
.gear-panel {
  margin: 8px 0;
  padding: 8px;
  border: 2px solid #687890;
  background: #eef2f8;
}
.gear-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.gear-head small {
  font-size: 11px;
  color: #586878;
}
.gear-slots {
  display: flex;
  gap: 6px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.gear-btn {
  padding: 4px 6px !important;
  min-width: 64px;
}
.gear-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gear-slot small {
  font-size: 10px;
}
.gear-empty {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px dashed #9aa8bc;
  font-style: normal;
  font-size: 11px;
  color: #9aa8bc;
}
body.fw-booting .exploration > :not(#world),
body.fw-booting #app,
body.fw-booting .fw-ballbtn,
body.fw-booting .net-corner {
  visibility: hidden !important;
}
body.fw-booting .fw-balldock {
  visibility: hidden !important;
}
.gear-summary-btn {
  display: block !important;
  width: 100%;
  margin: 8px 0 !important;
  padding: 6px 10px !important;
  text-align: left;
}
.gear-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gear-summary em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  color: #2c519f;
}
.gear-mini {
  display: flex;
  gap: 3px;
}
.gear-mini .gear-empty {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.gear-page {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  height: calc(100vh - 78px);
  height: calc(100dvh - 78px);
  max-height: 560px;
}
.gear-page > .panel {
  overflow: hidden;
}
.gear-page .panel {
  padding: 8px 10px;
  min-width: 0;
}
.gear-page h2 {
  margin: 0;
  font-size: 16px;
}
.gear-doll {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.gear-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.gear-col h3 {
  margin: 0;
  font-size: 12px;
  color: #687080;
  letter-spacing: 2px;
}
.gear-col-g h3 {
  text-align: left;
}
.gear-doll-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gear-doll-slot {
  width: 52px;
  height: 52px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  flex: none;
}
.gear-doll-slot.empty {
  opacity: .75;
}
.gear-doll-slot.selected,
.gear-cell.selected,
.gear-ware.selected {
  outline: 3px solid #ffd34a;
  outline-offset: -1px;
}
.gear-doll-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 96px;
  line-height: 1.2;
}
.gear-doll-text small {
  font-size: 10px;
  color: #687080;
}
.gear-doll-text b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gear-doll-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--c,#4a5468);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gear-doll-text em.off {
  color: #a0a8b8;
}
.gear-cell {
  width: 42px;
  height: 52px;
  padding: 2px 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: none;
  border-style: dashed !important;
}
.gear-cell:not(.empty) {
  border-style: solid !important;
}
.gear-cell i {
  font-style: normal;
  font-size: 11px;
  color: #8890a0;
}
.gear-cell small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.5px;
}
.gear-cell.empty small {
  color: #a0a8b8;
}
.gear-doll-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.gear-portrait {
  max-width: 100%;
  height: 220px;
  height: min(220px, 46vh);
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.gear-doll-note {
  font-size: 10px;
  color: #687080;
}
.gear-set {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 2px dashed #b8c4d8;
  border-radius: 6px;
  line-height: 1.2;
}
.gear-set b {
  display: block;
  font-size: 11px;
}
.gear-set small {
  font-size: 10px;
  color: #687080;
}
.gear-set.on {
  border: 2px solid #e0a020;
  background: #fff6d8;
}
.gear-doll-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
}
.gear-doll-stats span {
  display: flex;
  gap: 3px;
  align-items: baseline;
}
.gear-doll-stats small {
  font-size: 10px;
  color: #687080;
}
.gear-doll-stats b {
  font-size: 12px;
}
.gear-side-tabs {
  display: flex;
  gap: 6px;
}
.gear-side-tab {
  flex: 1;
  padding: 4px 0 !important;
  font-size: 14px !important;
}
.gear-side-tab.on {
  outline: 3px solid #2c519f;
  outline-offset: -3px;
  background: #dfe8ff !important;
}
.gear-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 10px;
}
.gear-bar {
  display: grid;
  grid-template-columns: 26px 24px 1fr 24px;
  align-items: center;
  gap: 3px;
}
.gear-bar small {
  font-size: 11px;
  color: #687080;
}
.gear-bar b {
  font-size: 12px;
  text-align: right;
}
.gear-bar-track {
  height: 7px;
  border: 1px solid #9aa4b8;
  background: #e4e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.gear-bar-track i {
  display: block;
  height: 100%;
  background: #5a86d8;
}
.gear-bar em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #2f8a4a;
}
.gear-sum {
  margin: 0;
  font-size: 11px;
  color: #4a5468;
}
.gear-skills-h {
  margin: 2px 0 0;
  font-size: 12px;
  color: #687080;
}
.gear-skills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.gear-skills > * {
  flex: none;
}
.gear-skill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px !important;
  text-align: left;
  width: 100%;
  min-height: 0 !important;
  height: 36px;
}
.gear-skill img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.gear-skill span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.gear-skill b {
  font-size: 12px;
}
.gear-skill small {
  font-size: 10px;
  color: #687080;
}
.gear-skill em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.gear-skill.nopp em {
  color: #c03a30;
}
.gear-skill.off {
  opacity: .6;
  border: 2px dashed #b8c4d8;
  border-radius: 6px;
}
.gear-skill.on {
  outline: 3px solid #ffd34a;
  outline-offset: -2px;
}
.gear-skill-key {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #4a5468;
  border-radius: 3px;
  padding: 1px 3px;
  min-width: 16px;
  text-align: center;
}
.gear-skill-detail {
  padding: 4px 8px;
  font-size: 11px;
  color: #30384a;
  border: 2px solid #e0c060;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fffbe8;
}
.gear-skill-detail p {
  margin: 2px 0;
}
.gear-ware-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}
.gear-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.gear-tabs {
  display: flex;
  gap: 4px;
}
.gear-tabs .on {
  outline: 2px solid #2c519f;
  outline-offset: -2px;
}
.gear-ware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 46px);
  gap: 4px;
  overflow: auto;
  max-height: 150px;
  padding: 2px;
}
.gear-ware {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  display: grid;
  place-items: center;
}
.gear-ware small {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 10px;
  font-weight: 700;
}
.gear-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border: 2px solid #b8c4d8;
  border-radius: 8px;
  background: #f8faff;
}
.gear-info small {
  font-size: 11px;
  color: #4a5468;
}
.gear-info > button,
.gear-info-acts {
  align-self: flex-start;
}
.gear-info-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gear-hint {
  font-size: 12px;
  margin: 0;
}
.gear-empty.big {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.gear-diff {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gear-diff i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.gear-diff .up {
  color: #2f8a4a;
}
.gear-diff .down {
  color: #c03a30;
}
.fw-gear-slot {
  position: relative;
}
.fw-gear-pp {
  position: absolute;
  right: 0;
  bottom: -1px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 0 2px #000;
  line-height: 1;
}
.fw-gear-pp.off {
  color: #ff8a8a;
}
@media (orientation:portrait) {
  .gear-page {
    grid-template-columns: 1fr;
  }
}
.fw-boss {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 5px;
  background: #b070ff;
  color: #fff;
  border: 1px solid #0b1838;
}
.fw-boss.big {
  background: #ff4a4a;
}
#fw-pins {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}
.fw-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: -36px 0 0 -40px;
  width: 80px;
  animation: fwPinBob 1.2s ease-in-out infinite;
}
.fw-pin canvas {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 0 #08142a);
}
.fw-pin-text {
  max-width: 120px;
  padding: 1px 6px;
  border: 2px solid #08142a;
  border-radius: 7px;
  background: #fffbe8f0;
  color: #08142a;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-pin-arrow {
  display: none;
}
.fw-pin.edge {
  margin: -24px 0 0 -40px;
  animation: none;
}
.fw-pin.edge .fw-pin-arrow {
  display: block;
  position: absolute;
  left: 50%;
  top: 6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 12px solid #ff4a5a;
  transform-origin: 0 6px;
  translate: 0 0;
  filter: drop-shadow(0 0 1px #08142a);
}
@keyframes fwPinBob {
  50% {
    translate: 0 -3px;
  }
}
body.fw-booting #fw-pins {
  visibility: hidden;
}
.fw-dwheel {
  position: fixed;
  z-index: 120;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  border: 3px solid #ffffffb0;
  background:
    radial-gradient(
      circle,
      #ff8a6a30,
      #ff8a6a10 70%);
  pointer-events: none;
}
.fw-dwheel-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: #ffd34a;
  border: 3px solid #0b1838;
  box-shadow: 0 2px 0 #0b1838;
}
.fw-dwheel.aim {
  border-color: #ffd34a;
}
.field-pointer .ptr-dist {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 0 5px;
  border: 2px solid #08142a;
  border-radius: 6px;
  background: #fffbe8f0;
  color: #08142a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font);
}
.pack-team {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.pack-team > small {
  font-size: 11px;
  color: #687080;
}
.pack-team-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.pack-team-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 56px;
  padding: 2px;
  border: 2px solid #b8c4d8;
  border-radius: 6px;
  background: #f8faff;
  touch-action: none;
}
.pack-team-slot.empty {
  background: #e8ecf4;
  border-style: dashed;
}
.pack-team-slot.down {
  background: #3a2028;
  border-color: #c03a30;
  cursor: grab;
}
.pack-team-slot.down .fw-pic {
  filter: grayscale(1) brightness(.7);
}
.pack-team-slot.down small {
  color: #ff9080;
}
.pack-team-slot small {
  font-size: 10px;
}
.pack-team-slot button {
  padding: 0 4px !important;
  font-size: 10px !important;
  min-height: 0 !important;
}
.pack-team-ghost {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .85;
}
.ball-select.fw-balldock {
  position: fixed;
  z-index: 61;
  right: auto;
  bottom: calc(8px + var(--safe-bottom,0px));
  pointer-events: auto;
}
.fw-chest-btn {
  position: fixed;
  z-index: 62;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom,0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  background: #2a1a0e;
  color: #ffe9a8;
  border: 2px solid #e0b040;
  box-shadow: 0 0 0 2px #2a1a0e, 0 3px 0 2px #00000066;
  font: 13px SurvivorPixel, monospace;
  border-radius: 0;
  cursor: pointer;
  animation: fwChestBob 1.2s ease-in-out infinite;
}
.fw-chest-btn[hidden] {
  display: none;
}
.fw-chest-btn.empty {
  opacity: .7;
  animation: none;
  border-color: #8a6a40;
}
.fw-chest-btn:active {
  transform: translateX(-50%) translateY(2px);
}
.fw-chest-ic {
  width: 18px;
  height: 14px;
  background:
    linear-gradient(
      #c27a38 0,
      #c27a38 35%,
      #4a2a14 35%,
      #4a2a14 45%,
      #8a5428 45%);
  box-shadow: inset 4px 0 0 -2px #e0b040, inset -4px 0 0 -2px #e0b040;
  image-rendering: pixelated;
}
@keyframes fwChestBob {
  50% {
    bottom: calc(99px + var(--safe-bottom,0px));
  }
}
.pack-side.chest-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pack-side.chest-side .inv-grid.inv-chest .inv-cell {
  background: #3a2412;
  border-color: #5a3a1c;
}
.chest-actions {
  display: flex;
  justify-content: center;
}
.fw-thp {
  position: fixed;
  z-index: 61;
  height: 6px;
  background: #3a1d24;
  box-shadow: 0 0 0 1px #14101f;
  pointer-events: none;
}
.fw-thp[hidden] {
  display: none;
}
.fw-thp i {
  display: block;
  height: 100%;
  background: #ff6878;
  transition: width .15s;
}
.fw-thp i.mid {
  background: #f0a040;
}
.fw-thp i.low {
  background: #e83848;
}
.fw-thp small {
  position: absolute;
  right: 0;
  bottom: 7px;
  font: 9px SurvivorPixel, monospace;
  color: #ffe0e4;
  text-shadow: 1px 1px 0 #14101f;
}
.fw-ballring {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  border: 3px dashed #ffd34a;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd34a99, inset 0 0 6px #ffd34a66;
  animation: fwRing .8s linear infinite;
}
.fw-ballring[hidden] {
  display: none;
}
@keyframes fwRing {
  50% {
    border-color: #fff3b0;
    transform: scale(1.08);
  }
}
.fw-gear {
  position: fixed;
  z-index: 60;
  left: calc(8px + var(--safe-left,0px));
  top: calc(98px + var(--safe-top,0px));
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: auto;
}
.fw-gear-tab {
  font: 10px SurvivorPixel, monospace;
  padding: 2px 5px;
  background: #f8f8e8ed;
  color: #404858;
  border: 2px solid #687890;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}
.fw-gear-slot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(14, 22, 48, .86);
  border: 2px solid #2c4a8c;
  border-radius: 0;
  cursor: pointer;
  image-rendering: pixelated;
}
.fw-gear-slot.empty {
  opacity: .55;
}
.fw-gear-slot .gear-empty {
  font: 10px SurvivorPixel, monospace;
  color: #9fb0d8;
  font-style: normal;
}
.fw-gear-slot img {
  image-rendering: pixelated;
}
.fm-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  max-height: min(62vh, 300px);
  overflow: auto;
}
.fm-box h4 {
  margin: 4px 0 0;
  font-size: 12px;
}
.fm-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.fm-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
}
.fm-slot,
.fm-move {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: #f8f8e8;
  border: 2px solid #687890;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}
.fm-slot.on {
  border-color: #e0a020;
  background: #fff3c8;
  box-shadow: 0 0 0 2px #e0a02055;
}
.fm-slot.empty {
  opacity: .65;
  grid-template-columns: 1fr;
}
.fm-slot small,
.fm-move small {
  opacity: .7;
  font-size: 10px;
  white-space: nowrap;
}
.fm-slot img,
.fm-move img {
  image-rendering: pixelated;
}
.fmap-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  background: rgba(6, 10, 22, .6);
  display: grid;
  place-items: center;
  padding: calc(6px + var(--safe-top,0px)) calc(8px + var(--safe-right,0px)) calc(6px + var(--safe-bottom,0px)) calc(8px + var(--safe-left,0px));
  touch-action: none;
}
.fmap-box {
  --side: 560px;
  display: flex;
  gap: 8px;
  padding: 6px;
  max-width: 100%;
  background: #f8f8e8;
  border: 3px solid #404858;
  box-shadow:
    0 0 0 3px #f8f8e8,
    0 0 0 6px #404858,
    0 8px 0 4px #00000055;
  color: #303848;
  font-family:
    SurvivorPixel,
    var(--font),
    monospace;
  image-rendering: pixelated;
}
.fmap-view {
  position: relative;
  flex: none;
  width: var(--side);
  height: var(--side);
  border: 3px solid #404858;
  background: #0b1838;
  overflow: hidden;
}
.fmap-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  image-rendering: pixelated;
  cursor: grab;
}
.fmap-sel {
  margin: 0;
  padding: 2px 6px;
  background: #f8f8e8;
  border: 2px solid #404858;
  font-size: 11px;
  line-height: 1.35;
  color: #303848;
}
.fmap-tools {
  flex: none;
  width: 200px;
  max-height: var(--side);
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
}
.fmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.fmap-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  color: #303848 !important;
}
.fmap-back {
  flex: none;
  padding: 3px 10px !important;
  font-size: 12px !important;
}
.fmap-status {
  margin: 0;
  font-size: 10px;
  color: #506078;
}
.fmap-zooms {
  display: flex;
  gap: 4px;
}
.fmap-zoom {
  flex: 1;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #303848;
  border-radius: 0;
  background:
    linear-gradient(
      #6f93d8 0,
      #6f93d8 45%,
      #5878b8 45%);
  color: #f8f8e8;
  cursor: pointer;
  box-shadow:
    inset 0 -3px 0 #3d5a96,
    inset 2px 2px 0 #9db8ec,
    0 2px 0 #303848;
}
.fmap-zoom svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(1px 1px 0 #26385e);
}
.fmap-zoom:hover {
  background:
    linear-gradient(
      #80a2e2 0,
      #80a2e2 45%,
      #6787c6 45%);
}
.fmap-zoom:active {
  transform: translateY(2px);
  box-shadow: inset 0 -1px 0 #3d5a96, inset 2px 2px 0 #9db8ec;
}
.fmap-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.fmap-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 3px;
  border: 2px solid #8890a0;
  border-radius: 0;
  background: #e8e8d8;
  color: #8890a0;
  font: 10px SurvivorPixel, monospace;
  cursor: pointer;
  text-align: left;
}
.fmap-chip.on {
  border-color: #404858;
  background: #fff;
  color: #303848;
}
.fmap-chip canvas {
  width: 16px;
  height: 16px;
  flex: none;
  image-rendering: pixelated;
}
.fmap-note {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
  color: #506078;
}
.fmap-paused {
  color: #c07010;
  font-weight: 700;
}
@media (max-height:430px) {
  .fmap-tools {
    width: 176px;
  }
}
body.field-battle #app .pb-team {
  opacity: .62;
  transition: opacity .15s;
}
body.field-battle #app .pb-team:hover,
body.field-battle #app .pb-team:active {
  opacity: 1;
}
.fw-slot-ghost {
  position: fixed !important;
  z-index: 2000;
  width: 40px !important;
  height: 40px !important;
  pointer-events: none;
  opacity: .85;
  transform: scale(1.1);
}
.fmap-mons {
  margin: 0;
  padding: 2px 5px 3px;
  background: #f8f8e8;
  border: 2px solid #404858;
  font-size: 10px;
  line-height: 1.25;
  color: #303848;
}
.fmap-mons[hidden] {
  display: none;
}
.fmap-mons .fm-h {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 1px;
}
.fmap-mons .fm-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1px 2px;
  min-height: 12px;
}
.fmap-mons .fm-t {
  min-width: 30px;
  margin-right: 2px;
  white-space: nowrap;
  color: #505868;
}
.fmap-mons .dex-icon {
  width: 24px;
  height: 24px;
  align-items: center;
}
.fmap-mons .dex-icon .dex-ball {
  width: 8px;
  height: 8px;
}
.fmap-mons .dex-icon.gone {
  opacity: .28;
}
.fmap-mons .dex-icon.rare::after {
  font-size: 9px;
  right: -1px;
  top: -3px;
}
.hero-card .hero-figure {
  cursor: pointer;
}
.gear-page.gl {
  position: relative;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, .9fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #303848;
  background-color: #dde7ef;
  background-image:
    linear-gradient(
      90deg,
      #ffffff80 2px,
      transparent 2px),
    linear-gradient(
      0deg,
      #ffffff80 2px,
      transparent 2px);
  background-size: 16px 16px;
  box-shadow:
    0 -4px 0 #404858,
    0 4px 0 #404858,
    -4px 0 0 #404858,
    4px 0 0 #404858,
    inset 0 0 0 2px #b8c4d8;
  margin: 4px;
}
.gl .gl-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 1.2fr) minmax(170px, 1.15fr);
  gap: 10px;
  padding: 10px 12px;
  min-height: 0;
  overflow: hidden;
}
.gl .gl-head {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #2c519f;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: none;
}
.gl .gl-head::after {
  content: "";
  flex: 1;
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      #b8c4d8 0 4px,
      transparent 4px 8px);
}
.gl .gl-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  justify-content: center;
  z-index: 1;
}
.gl .gl-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 9px;
  margin: 3px;
  min-height: 54px;
  cursor: pointer;
  background: #f8f8e8;
  box-shadow:
    0 -3px 0 #404858,
    0 3px 0 #404858,
    -3px 0 0 #404858,
    3px 0 0 #404858,
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #c8d0d8,
    5px 5px 0 #40485840;
}
.gl .gl-card:hover {
  background: #fffff4;
}
.gl .gl-card.selected {
  background: #fff2b8;
  box-shadow:
    0 -3px 0 #e0a020,
    0 3px 0 #e0a020,
    -3px 0 0 #e0a020,
    3px 0 0 #e0a020,
    inset 2px 2px 0 #fffbe0,
    inset -2px -2px 0 #e8d080,
    5px 5px 0 #40485840;
}
.gl .gl-card.empty {
  background: #eef0e8;
}
.gl .gl-card.empty .gl-text b {
  color: #98a0a8;
}
.gl .gl-tag {
  position: absolute;
  left: 5px;
  top: 2px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #fff;
  background: #404858;
  padding: 0 3px;
  line-height: 12px;
}
.gl .gl-card.selected .gl-tag {
  background: #e0a020;
}
.gl .gl-art {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  background: #e8eef4;
  box-shadow: inset 2px 2px 0 #c8d0d8;
}
.gl .gl-art i {
  font-style: normal;
  font-size: 16px;
  color: #a8b0b8;
}
.gl .gl-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  margin-top: 8px;
}
.gl .gl-text b {
  font-size: 12px;
  color: #303848;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl .gl-text em {
  font-style: normal;
  font-size: 10px;
  color: #4a5468;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl .gl-text em.off {
  color: #c03a30;
}
.gl .gl-text small {
  font-size: 9px;
  color: #687080;
}
.gl .gl-main {
  min-height: 72px;
  background: #f8f8e8;
}
.gl .gl-main .gl-art {
  width: 62px;
  height: 56px;
}
.gl .gl-main .gl-text b {
  font-size: 14px;
}
.gl .gl-text {
  flex: 1;
}
.gl .gl-sock {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 8px 2px 0 0;
}
.gl .gl-sock small {
  font-size: 9px;
  line-height: 1;
  color: #303848;
}
.gl .gl-sock small.off {
  color: #c03a30;
}
.gl .gl-ammo {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
  background: #e8eef4 !important;
  box-shadow: 0 0 0 2px #404858, 2px 2px 0 2px #404858 !important;
}
.gl .gl-ammo img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.gl .gl-ammo.empty {
  background:
    repeating-linear-gradient(
      45deg,
      #f0f4f8 0,
      #f0f4f8 3px,
      #dde4ec 3px,
      #dde4ec 6px) !important;
  box-shadow: 0 0 0 2px #7a8494, 2px 2px 0 2px #404858 !important;
}
.gl .gl-ammo i {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: #7a8494;
  line-height: 1;
}
.gl .gl-ammo.selected {
  box-shadow: 0 0 0 2px #e0a020, 2px 2px 0 2px #404858 !important;
}
.gl.drag-crystal .gl-ammo {
  animation: glSock .6s steps(2) infinite;
}
@keyframes glSock {
  50% {
    box-shadow: 0 0 0 2px #e0a020, 2px 2px 0 2px #404858;
  }
}
.gl .gl-ammo.gl-drop {
  background: #fff2b8 !important;
  box-shadow: 0 0 0 3px #e0a020, 2px 2px 0 3px #404858 !important;
  animation: none;
}
.gl .gl-card.gl-drop {
  background: #fff2b8;
}
.gl-ghost {
  position: fixed;
  z-index: 9999;
  width: 40px;
  height: 40px;
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 #404858);
  opacity: .9;
}
.gl .gear-ware {
  touch-action: none;
}
.gl .gl-energy {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 4px;
  background: #d0d8e0;
}
.gl .gl-energy i {
  display: block;
  height: 100%;
  -webkit-mask:
    repeating-linear-gradient(
      90deg,
      #000 0 6px,
      transparent 6px 8px);
  mask:
    repeating-linear-gradient(
      90deg,
      #000 0 6px,
      transparent 6px 8px);
}
.gl .gl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 0;
}
.gl .gl-hero-glow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 36px;
  height: 18px;
  background: #9cc4e0;
  opacity: .6;
  clip-path: polygon(18% 0, 82% 0, 82% 17%, 92% 17%, 92% 34%, 100% 34%, 100% 66%, 92% 66%, 92% 83%, 82% 83%, 82% 100%, 18% 100%, 18% 83%, 8% 83%, 8% 66%, 0 66%, 0 34%, 8% 34%, 8% 17%, 18% 17%);
}
.gl .gl-hero-glow::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 16%;
  bottom: 4px;
  left: 16%;
  background: #ffffff;
  opacity: .5;
}
.gl .gl-portrait {
  position: relative;
  height: calc(100% - 44px);
  max-height: 310px;
  max-width: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  margin-bottom: -4px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 #40485855);
}
.gl .gl-plate {
  position: relative;
  margin-top: 4px;
  padding: 2px 10px;
  text-align: center;
  background: #f8f8e8;
  box-shadow: 0 0 0 2px #404858;
  line-height: 1.25;
}
.gl .gl-plate b {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  color: #303848;
}
.gl .gl-plate span {
  font-size: 11px;
  color: #c06a10;
}
.gl .gl-plate i {
  font-style: normal;
  color: #687080;
}
.gl .gl-set {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  margin: 3px;
  background: #f8f8e8;
  box-shadow: 0 0 0 2px #b8c4d8;
  line-height: 1.25;
}
.gl .gl-set b {
  display: block;
  font-size: 11px;
}
.gl .gl-set small {
  font-size: 10px;
  color: #687080;
}
.gl .gl-set.on {
  background: #fff2b8;
  box-shadow: 0 0 0 2px #e0a020;
}
.gl .gl-set.on b {
  color: #a86a00;
}
.gl .gl-set-mon.mon-box {
  width: 36px;
  height: 36px;
}
.gl .gear-ware-panel {
  margin: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  color: #303848;
}
.gl .gear-pockets {
  flex: none;
}
.gl .gear-pockets button {
  padding: 4px 8px !important;
  min-height: 0 !important;
}
.gl .gear-shop-list {
  grid-template-columns: 1fr;
  gap: 4px;
  min-height: 0;
}
.gl .gear-row-item {
  padding: 4px 8px;
  gap: 8px;
  cursor: grab;
  touch-action: none;
}
.gl .gear-row-item.picked {
  outline: 3px solid #f8d030;
  outline-offset: -2px;
}
.gl .gear-row-item .shop-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl .gear-only {
  margin: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gl .gear-info {
  flex: none;
}
.gear-page.gl {
  height: calc(100vh - 96px);
  height: calc(100dvh - 96px);
}
.gl .gl-stage {
  padding: 6px 10px;
  gap: 8px;
}
.gl .gl-col {
  gap: 5px;
  justify-content: flex-start;
}
.gl .gl-head {
  font-size: 11px;
  margin: 0;
}
.gl .gl-card {
  min-height: 46px;
  padding: 4px 6px 7px;
  margin: 3px 3px 2px;
}
.gl .gl-art {
  width: 38px;
  height: 38px;
  margin-top: 9px;
}
.gl .gl-main {
  min-height: 58px;
}
.gl .gl-main .gl-art {
  width: 52px;
  height: 46px;
}
.gl .gl-text {
  margin-top: 9px;
}
.gl .gl-sock {
  margin-top: 9px;
}
.gl .gl-ammo {
  width: 28px;
  height: 28px;
}
.gl .gl-ammo img {
  width: 20px;
  height: 20px;
}
.gl .gl-set {
  margin-top: 2px;
}
.gl .gl-hero-glow {
  bottom: 38px;
}
.gl .gear-pockets {
  flex-wrap: nowrap;
  gap: 4px;
}
.gl .gear-pockets button {
  padding: 3px 6px !important;
  font-size: 12px !important;
  white-space: nowrap;
  flex: 1;
}
.gl .gear-ware-panel {
  padding: 6px 8px !important;
}
.gl .gear-hint {
  font-size: 11px;
}
.gl .gl-ammo {
  width: 28px !important;
  height: 28px !important;
}
.gl .gl-ammo img {
  width: 22px !important;
  height: 22px !important;
}
.gl .gear-stash {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 2px;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 10px;
  position: relative;
}
.gl .gear-stash .stash-group.focus h4 {
  color: #e07000;
}
.gl .gear-stash .stash-group.focus .stash-items {
  outline: 2px dashed #e0a020;
  outline-offset: 2px;
}
@media (orientation:portrait) {
  .gl .gl-stage {
    grid-template-columns: 1fr 1fr;
  }
  .gl .gl-hero {
    grid-column: 1/-1;
    height: 220px;
  }
}
.gl .gear-ware-panel {
  align-self: stretch;
  height: auto !important;
  max-height: none !important;
  margin: 6px 6px 6px 0 !important;
}
.gl .gear-info {
  padding: 4px 6px;
  gap: 2px;
}
.gl .gear-info b {
  font-size: 12px;
}
.gl .gear-info small {
  font-size: 11px;
  line-height: 1.3;
}
.gl .gear-info button {
  padding: 1px 10px !important;
  min-height: 0 !important;
  height: 24px;
  font-size: 12px !important;
  line-height: 1;
}
.gl .gear-info-acts {
  gap: 4px;
}
.gl .gear-info {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
}
.gl .gear-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gl .gear-info-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}
.gl .gear-info-acts button {
  margin: 0 !important;
}
.gl .gl-art,
.gl .gl-main .gl-art {
  width: 40px !important;
  height: 40px !important;
}
.gl .gl-art img {
  width: 36px;
  height: 36px;
}
.gl .gear-stash .stash-item img {
  width: 34px;
  height: 34px;
}
.gl .gl-card,
.gl .gl-ammo {
  touch-action: none;
}
.gl.drag-out .gear-ware-panel {
  outline: 3px dashed #e0a020;
  outline-offset: -6px;
}
.gl .gear-ware-panel.gl-drop {
  background: #fff6d0 !important;
}
.gl .gl-stage {
  grid-template-columns: minmax(140px, .9fr) minmax(170px, 1.7fr) minmax(170px, 1.05fr);
}
.gl .gl-hero {
  overflow: visible;
}
.gl .gl-portrait {
  height: calc(100% - 30px) !important;
  max-height: none !important;
  width: auto !important;
  max-width: none !important;
  margin-bottom: -14px;
}
.gl .gl-hero-glow {
  left: 4%;
  right: 4%;
  bottom: 30px;
  height: 22px;
}
.gl .gl-plate {
  z-index: 1;
}
.gl .gl-ability {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff2b8 !important;
  color: #303848;
  box-shadow: 0 0 0 2px #e0a020, 3px 3px 0 2px #40485855 !important;
  white-space: nowrap;
}
.gl .gl-ability small {
  font-size: 10px;
  color: #fff;
  background: #e0a020;
  padding: 0 3px;
  line-height: 14px;
}
.gl .gl-ability b {
  font-size: 13px;
}
.gl .gl-ability::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: #e0a020;
}
.gl .gear-ab-sum b {
  color: #a86a00;
}
.gl .gl-dur {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 4px;
  background: #d0d8e0;
}
.gl .gl-dur i {
  display: block;
  height: 100%;
}
.gl .gl-dur small {
  position: absolute;
  right: 0;
  bottom: 4px;
  font-size: 9px;
  color: #687080;
  line-height: 1;
}
.gl .gl-card.broken {
  background: #e4e4e4 !important;
}
.gl .gl-card.broken .gl-art img {
  filter: grayscale(1) brightness(.85);
}
.gl .gl-card.broken .gl-text b {
  color: #808890;
}
.gl .stash-wear {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background: #e0a020;
  box-shadow: 0 0 0 1px #fff;
}
.gl .gl-portrait {
  height: 240px !important;
  height: min(calc(100% - 64px), 240px) !important;
  max-width: 100% !important;
  margin-bottom: -8px;
}
.gl .gl-stage {
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.35fr) minmax(170px, 1.05fr);
}
.gl .gl-hero-glow {
  left: 10%;
  right: 10%;
}
.gl .gear-stash .stash-item {
  touch-action: none;
}
.gl .ty-badge {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 14px !important;
  height: 14px !important;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 #fff);
}
.gl .gl-ammo {
  position: relative;
}
.gl .gl-ammo .ty-badge {
  left: -5px;
  bottom: -5px;
  width: 13px !important;
  height: 13px !important;
}
.gl .gl-energy {
  display: flex;
  gap: 2px;
  background: none !important;
  height: 6px;
  right: 44px !important;
}
.gl .gl-energy i {
  flex: 1 1 0;
  min-width: 0;
  height: 6px;
  background: #a8b0b8;
  box-shadow: inset 0 0 0 1px #7a8494;
  -webkit-mask: none !important;
  mask: none !important;
}
.gl .gl-energy i.on {
  box-shadow: inset 0 -1px 0 #0003;
}
.hero-card .hero-guard {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  --g: 30px;
}
@supports (width: min(1px, 2px)) {
  .hero-card .hero-guard {
    --g: min(30px,calc((var(--portrait-size,200px) - 50px) / 3.3));
  }
}
.hero-guard-slot {
  position: relative;
  width: var(--g);
  height: var(--g);
  display: grid;
  place-items: center;
}
.hero-gear-bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4px;
  height: 3px;
  background: #404858aa;
  box-shadow: 0 0 0 1px #f0f8f8aa;
}
.hero-gear-bar i {
  display: block;
  height: 100%;
  background: #3ea85a;
}
.hero-guard-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.hero-guard-slot i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #f0f8f8;
  opacity: .7;
}
.hero-guard-slot.broken img {
  filter: grayscale(1);
}
.hero-card .mail-btn {
  left: auto;
  right: 3px;
  top: 3px;
}
.hero-card .mail-dot {
  right: -2px;
  top: -2px;
}
.hero-card .mail-icon {
  width: calc(var(--portrait-size,200px) * .26);
  height: auto;
  aspect-ratio: 44/28;
  --ar: 44/28;
}
@supports (width: min(1px, 2px)) {
  .hero-card .mail-icon {
    width: clamp(30px, calc(var(--portrait-size,200px) * .26), 44px);
  }
}
.pack-main.run-alt {
  flex: 0 0 auto;
  min-height: 0;
  height: calc(100vh - 100px);
  height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.run-alt .gear-page {
  height: 100% !important;
  max-height: none;
  margin: 0;
}
.run-alt .runbag-in {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.gl .gl-lock {
  flex: none;
  margin: 0 0 6px;
  padding: 5px 10px;
  background: #fff2b8;
  border: 2px solid #e0a020;
  color: #7a4a10;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.bring-summary .bring-mon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.bring-summary .bring-none {
  color: #7a8494;
}
.bring-sprite {
  flex: none;
  zoom: .6;
}
.bring-btn .bring-sprite {
  zoom: .45;
  margin: -20px 0;
}
.field-brief .briefing > .gear-summary-btn {
  flex: none;
}
.bring-summary {
  flex-wrap: nowrap !important;
}
.bring-summary .bring-none {
  font-size: 12px;
}
.bring-pick .bring-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  max-height: 260px;
  max-height: min(46vh, 260px);
  overflow: auto;
  margin-top: 6px;
}
.bring-row-btn {
  min-height: 0 !important;
  padding: 4px 8px !important;
}
.bring-row-btn.on {
  box-shadow: 0 0 0 3px #e0a020 !important;
}
.bring-row {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.bring-row small {
  margin-left: auto;
  color: #5a6474;
}
.lead-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lead-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: #f4f0e4;
  border: 2px solid #3a3a48;
  box-shadow: 2px 2px 0 #000;
  font: inherit;
  cursor: pointer;
}
.lead-opt.on {
  background: #fff6c8;
  border-color: #c89020;
}
.lead-opt small {
  color: #666;
  font-size: 12px;
}
.rent-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 6px 8px;
  background: #f8f6ee;
  border: 2px solid var(--c);
  box-shadow: 2px 2px 0 #000;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.rent-card.on {
  background: #fff6c8;
  outline: 2px solid #c89020;
}
.rent-tier {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1px 6px;
  background: var(--c);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  text-shadow: 1px 1px 0 #0006;
}
.rent-sprite {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  object-fit: contain;
}
.rent-meta {
  color: #555;
  font-size: 11px;
  text-align: center;
}
.rent-moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  margin-top: 3px;
}
.rent-moves span {
  padding: 1px 2px;
  background: #e8e4d4;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rent-tag {
  margin-left: 6px;
  padding: 0 5px;
  background: var(--c);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}
.field-pc {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
}
.field-pc .rpc-layout {
  grid-template-columns: minmax(220px, 1.05fr) minmax(260px, 1.3fr) !important;
}
.craft-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  max-height: min(62vh, 520px);
  overflow: auto;
}
.craft-page h3 {
  margin: 2px 0 4px;
  font-size: 14px;
}
.craft-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  margin-bottom: 3px;
  background: #f4f0e4;
  border: 2px solid #3a3a48;
}
.craft-row.ok {
  background: #eef8e4;
}
.craft-row img {
  image-rendering: pixelated;
}
.craft-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.craft-need,
.craft-mats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.craft-mat {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  background: #fff;
  border: 1px solid #888;
  font-size: 12px;
}
.craft-mat.short {
  color: #c83030;
  border-color: #c83030;
}
body.in-battle .hud.mode-play .play-bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: block !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  pointer-events: none;
}
body.in-battle .hud.mode-play .play-bar > * {
  pointer-events: auto;
}
body.in-battle .hud.mode-play .pb-team {
  position: absolute;
  left: 50%;
  bottom: calc(8px + var(--safe-bottom,0px));
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin: 0;
  padding: 5px 9px;
  border-radius: 30px;
  background: linear-gradient(#2c519fd9, #1a3170e6);
  border: 2px solid #f4f8ff;
  box-shadow: 0 0 0 2px #0b1838;
}
body.in-battle .hud.mode-play .pb-slot {
  width: 46px;
  padding: 2px !important;
  border-radius: 50% !important;
  background: #162a5c !important;
  border: 2px solid #9fb6e8 !important;
  box-shadow: none !important;
}
body.in-battle .hud.mode-play .pb-slot > span {
  display: none;
}
body.in-battle .hud.mode-play .pb-slot.active {
  border-color: #ffd23a !important;
  box-shadow: 0 0 0 2px #ffd23a, 0 0 12px #ffd23a88 !important;
  transform: translateY(-3px);
}
body.in-battle .hud.mode-play .pb-slot .pic {
  width: 36px;
  height: 36px;
}
body.in-battle .hud.mode-play .pb-slot .mini {
  width: 28px;
  margin: 2px auto 0;
}
body.in-battle .hud.mode-play .pb-hint {
  display: none !important;
}
body.in-battle .hud.mode-play .pb-moves {
  position: absolute !important;
  left: auto !important;
  top: auto !important;
  right: calc(62px + var(--safe-right,0px)) !important;
  bottom: calc(62px + var(--safe-bottom,0px)) !important;
  width: 0 !important;
  height: 0 !important;
  display: block !important;
  max-width: none;
  gap: 0;
  margin: 0;
  transform: none !important;
}
body.in-battle .hud.mode-play .pb-move {
  --r:150px;
  position: absolute !important;
  width: 72px;
  height: 72px;
  min-height: 0 !important;
  margin: -36px 0 0 -36px;
  padding: 4px !important;
  border-radius: 50% !important;
  left: calc(var(--r) * var(--cx));
  top: calc(var(--r) * var(--cy));
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, .35),
      rgba(255, 255, 255, 0) 60%),
    linear-gradient(#22346eee, #101d48f2) !important;
  border: 3px solid var(--tc,#f4f8ff) !important;
  box-shadow: 0 0 0 2px #0b1838, 0 4px 0 #0b1838 !important;
}
body.in-battle .hud.mode-play .pb-move:nth-child(1) {
  --cx:-1;
  --cy:0;
}
body.in-battle .hud.mode-play .pb-move:nth-child(2) {
  --cx:-.866;
  --cy:-.5;
}
body.in-battle .hud.mode-play .pb-move:nth-child(3) {
  --cx:-.5;
  --cy:-.866;
}
body.in-battle .hud.mode-play .pb-move:nth-child(4) {
  --cx:0;
  --cy:-1;
}
body.in-battle .hud.mode-play .pb-move:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 2px #0b1838, 0 1px 0 #0b1838 !important;
}
body.in-battle .hud.mode-play .pb-move .k,
body.in-battle .hud.mode-play .pb-move .ty,
body.in-battle .hud.mode-play .pb-move .cat,
body.in-battle .hud.mode-play .pb-move .bp {
  display: none !important;
}
body.in-battle .hud.mode-play .pb-emblem {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  flex: none;
  filter: drop-shadow(0 2px 0 #0008);
}
body.in-battle .hud.mode-play .pb-move .nm {
  width: 100%;
  font-size: 10px !important;
  line-height: 1.05;
  white-space: normal;
  word-break: break-word;
  color: #fff;
  text-shadow:
    1px 1px 0 #0a1430,
    -1px -1px 0 #0a1430,
    1px -1px 0 #0a1430,
    -1px 1px 0 #0a1430;
}
body.in-battle .hud.mode-play .pb-move .meta {
  display: block !important;
  width: auto;
}
body.in-battle .hud.mode-play .pb-move .pp {
  font-size: 8px;
  opacity: .9;
  text-shadow: 1px 1px 0 #0a1430;
}
body.in-battle .hud.mode-play .pb-move .cd {
  border-radius: 0 !important;
}
body.in-battle .hud.mode-play .pb-move .cdt {
  font-size: 20px !important;
}
body.in-battle .hud.mode-play .pb-move[data-type=normal] {
  --tc:#d8d2c6;
}
body.in-battle .hud.mode-play .pb-move[data-type=fire] {
  --tc:#ff7b3d;
}
body.in-battle .hud.mode-play .pb-move[data-type=water] {
  --tc:#4b9bff;
}
body.in-battle .hud.mode-play .pb-move[data-type=grass] {
  --tc:#5fcb6a;
}
body.in-battle .hud.mode-play .pb-move[data-type=electric] {
  --tc:#ffd33d;
}
body.in-battle .hud.mode-play .pb-move[data-type=ice] {
  --tc:#7fe0e0;
}
body.in-battle .hud.mode-play .pb-move[data-type=fighting] {
  --tc:#e0533d;
}
body.in-battle .hud.mode-play .pb-move[data-type=poison] {
  --tc:#b45ec4;
}
body.in-battle .hud.mode-play .pb-move[data-type=ground] {
  --tc:#d6b25c;
}
body.in-battle .hud.mode-play .pb-move[data-type=flying] {
  --tc:#9bb8ff;
}
body.in-battle .hud.mode-play .pb-move[data-type=psychic] {
  --tc:#ff5f9e;
}
body.in-battle .hud.mode-play .pb-move[data-type=bug] {
  --tc:#a3c43d;
}
body.in-battle .hud.mode-play .pb-move[data-type=rock] {
  --tc:#bfa96b;
}
body.in-battle .hud.mode-play .pb-move[data-type=ghost] {
  --tc:#7a6bc4;
}
body.in-battle .hud.mode-play .pb-move[data-type=dragon] {
  --tc:#6b58ff;
}
body.in-battle .hud.mode-play .pb-move[data-type=dark] {
  --tc:#8a7a70;
}
body.in-battle .hud.mode-play .pb-move[data-type=steel] {
  --tc:#a8b8c4;
}
body.in-battle .hud.mode-play .pb-move[data-type=fairy] {
  --tc:#ff9ed8;
}
body.in-battle .hud.mode-play .pb-dodge {
  position: absolute !important;
  left: auto !important;
  top: auto !important;
  right: calc(14px + var(--safe-right,0px)) !important;
  bottom: calc(14px + var(--safe-bottom,0px)) !important;
  width: 96px;
  height: 96px;
  margin: 0;
  transform: none;
  border-radius: 50% !important;
  background: linear-gradient(#ffe46a, #f2b705) !important;
  color: #0d1430;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 2px #0b1838, 0 5px 0 #8a5c00 !important;
  font-size: 14px;
  text-shadow: none !important;
}
body.in-battle .hud.mode-play .pb-dodge .k {
  display: none;
}
body.in-battle .hud.mode-play .pb-dodge span {
  color: #0d1430;
  text-shadow: none !important;
}
body.in-battle .hud.mode-play .pb-dodge .fill {
  height: 100%;
  opacity: .25;
  background: #fff;
}
body.in-battle .hud.mode-play .pb-dodge:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 2px #0b1838, 0 2px 0 #8a5c00 !important;
}
body.in-battle .hud.mode-play .pb-stick {
  left: calc(22px + var(--safe-left,0px)) !important;
  bottom: 28px !important;
  top: auto !important;
}
@media (max-height:400px) {
  body.in-battle .hud.mode-play .pb-moves {
    right: calc(56px + var(--safe-right,0px)) !important;
    bottom: calc(56px + var(--safe-bottom,0px)) !important;
  }
  body.in-battle .hud.mode-play .pb-move {
    --r:128px;
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
  }
  body.in-battle .hud.mode-play .pb-emblem {
    width: 24px;
    height: 24px;
  }
  body.in-battle .hud.mode-play .pb-move .nm {
    font-size: 9px !important;
  }
  body.in-battle .hud.mode-play .pb-dodge {
    width: 84px;
    height: 84px;
  }
  body.in-battle .hud.mode-play .pb-slot {
    width: 40px;
  }
  body.in-battle .hud.mode-play .pb-slot .pic {
    width: 30px;
    height: 30px;
  }
}
@media (max-width:820px) {
  body.in-battle .hud.mode-play .pb-team {
    gap: 3px;
    padding: 4px 7px;
  }
  body.in-battle .hud.mode-play .pb-slot {
    width: 38px;
  }
  body.in-battle .hud.mode-play .pb-slot .pic {
    width: 28px;
    height: 28px;
  }
  body.in-battle .hud.mode-play .pb-slot .mini {
    width: 24px;
  }
}
body.in-battle .auto-battle {
  position: absolute;
  z-index: 40;
  right: calc(12px + var(--safe-right,0px));
  top: calc(64px + var(--safe-top,0px));
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  min-height: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f8f8f0;
  background: #304060e6;
  border: 2px solid #f8f8f0;
  border-radius: 4px;
  box-shadow: 0 3px 0 #18203a;
  cursor: pointer;
  touch-action: manipulation;
}
body.in-battle .auto-battle i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: -2px;
  color: #a8c0e8;
}
body.in-battle .auto-battle.on {
  background: #e8a030;
  color: #402000;
  border-color: #fff8d8;
}
body.in-battle .auto-battle.on i {
  color: #402000;
  animation: auto-pulse 1s steps(2) infinite;
}
@keyframes auto-pulse {
  50% {
    opacity: .4;
  }
}
body.in-battle .auto-battle-on .pb-moves,
body.in-battle .auto-battle-on .pb-stick,
body.in-battle .auto-battle-on .pb-dodge {
  opacity: .45;
  pointer-events: none;
}
@media (max-height:470px) {
  body.in-battle .auto-battle {
    top: calc(52px + var(--safe-top,0px));
    padding: 3px 9px;
    font-size: 12px;
  }
}
body.in-battle .pb-dodge,
body.in-battle .pb-team .pb-slot {
  position: relative;
  overflow: hidden;
}
body.in-battle .pe-cd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: rgba(10, 14, 34, .62);
  pointer-events: none;
  z-index: 2;
}
body.in-battle .pe-cdt {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}
body.in-battle .pb-dodge .pe-cd {
  border-radius: inherit;
}
body.in-battle .pb-dodge.pe-cooling {
  filter: saturate(.6);
}
body.in-battle .pb-team .pb-slot .pe-cdt {
  font-size: 14px;
}
body.in-battle .pb-dodge.pe-cooling > span:not(.pe-cdt) {
  opacity: 0;
}
body.in-battle .pb-dodge .pe-cdt {
  font-size: 24px;
}
body.in-battle .pb-team .pb-slot > .pe-cdt {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  font-size: 15px !important;
  color: #fff !important;
  opacity: 1 !important;
  z-index: 3;
}
body.in-battle .pb-dodge > .pe-cdt {
  color: #fff !important;
  opacity: 1 !important;
}
body.in-battle .faint-pick {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 45;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 18px;
  background: #18203ae6;
  border: 3px solid #f8f8f0;
  border-radius: 6px;
  box-shadow: 0 4px 0 #0b1020;
  color: #fff;
  pointer-events: none;
  text-align: center;
}
body.in-battle .faint-pick b {
  font-size: 15px;
}
body.in-battle .faint-pick span {
  font-size: 30px;
  font-weight: 700;
  color: #ffd84a;
  line-height: 1.1;
}
body.in-battle .faint-pick small {
  font-size: 11px;
  color: #c8d4ec;
}
body.in-battle .faint-picking .pb-team .pb-slot:not(.out):not(.active) {
  box-shadow: 0 0 0 3px #ffd84a !important;
  animation: faint-glow .6s steps(2) infinite;
}
@keyframes faint-glow {
  50% {
    box-shadow: 0 0 0 3px #fff6c0 !important;
  }
}
body.in-battle .hud-controls .auto-battle {
  position: static !important;
  right: auto;
  top: auto;
  width: auto !important;
  min-width: 0;
  padding: 0 10px !important;
  gap: 4px;
  font-size: 12px;
  border-width: 2px;
}
body.in-battle .hud-controls .auto-battle i {
  font-size: 10px;
}
body.in-battle .hud-controls .auto-battle.on {
  background: #e8a030 !important;
  color: #402000 !important;
}
body.in-battle .hud-controls {
  display: flex !important;
  gap: 6px;
  align-items: stretch;
}
body.in-battle .pb-hint,
body.in-battle .play-bar .k {
  display: none !important;
}
body.in-battle[data-keys] .hud.mode-play .pb-move .k:not(:empty),
body.in-battle[data-keys] .hud.mode-play .pb-dodge .k:not(:empty) {
  display: block !important;
  position: absolute;
  left: -6px;
  top: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 5px;
  background: #0d1430;
  color: #fff !important;
  border: 2px solid #fff;
  font: bold 10px/14px sans-serif;
  text-align: center;
  text-shadow: none !important;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  opacity: 1;
}
body.in-battle[data-keys] .hud.mode-play .pb-dodge .k:not(:empty) {
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
}
body.in-battle .wild-dock.battle-bag {
  top: calc(64px + var(--safe-top,0px));
}
@media (max-height:470px) {
  body.in-battle .wild-dock.battle-bag {
    top: calc(56px + var(--safe-top,0px));
  }
}
body.in-battle .trainer-shout {
  position: absolute;
  z-index: 34;
  transform: translate(-20%, -100%);
  max-width: 200px;
  padding: 4px 9px;
  background: #fff;
  border: 2px solid #303850;
  border-radius: 8px;
  box-shadow: 0 2px 0 #30385066;
  color: #303850;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: shout-in .15s ease-out, shout-out .3s ease-in 1.2s forwards;
}
body.in-battle .trainer-shout::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: -8px;
  border: 6px solid transparent;
  border-top: 7px solid #303850;
  border-bottom: 0;
}
@keyframes shout-in {
  from {
    transform: translate(-20%, -90%) scale(.7);
    opacity: 0;
  }
}
@keyframes shout-out {
  to {
    opacity: 0;
    transform: translate(-20%, -120%);
  }
}
body.in-battle .hud.mode-play .pb-dodge.pb-dodge {
  width: 90px !important;
  height: 90px !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 50% !important;
  background: url(/_expedition/assets/ui/dodge-button.png) center/100% 100% no-repeat !important;
  image-rendering: pixelated;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 0 #30385080);
  color: #503838 !important;
  font-family: var(--font) !important;
  font-size: 19px !important;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #ffd8c8 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row !important;
  white-space: nowrap !important;
  padding: 0 !important;
  line-height: 1 !important;
}
body.in-battle .hud.mode-play .pb-dodge.pb-dodge > span {
  color: #503838 !important;
  font-family: var(--font) !important;
  text-shadow: 1px 1px 0 #ffd8c8 !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  width: auto !important;
}
body.in-battle .hud.mode-play .pb-dodge.pb-dodge:active {
  transform: translateY(3px) !important;
  filter: drop-shadow(0 1px 0 #30385080);
  background-image: url(/_expedition/assets/ui/dodge-button-down.png) !important;
}
body.in-battle .hud.mode-play .pb-dodge.pb-dodge .pe-cd {
  border-radius: 50% !important;
}
@media (max-height:470px) {
  body.in-battle .hud.mode-play .pb-dodge.pb-dodge {
    width: 78px !important;
    height: 78px !important;
    font-size: 17px !important;
  }
}
body.in-battle .hud.mode-play .pb-dodge.pb-dodge .fill {
  display: none !important;
}
body.in-battle .hud .pb-team .pb-slot.out {
  background: #101018 !important;
  border-color: #585868 !important;
  position: relative;
  cursor: not-allowed;
}
body.in-battle .hud .pb-team .pb-slot.out .pic {
  opacity: .18;
  filter: grayscale(1);
}
body.in-battle .hud .pb-team .pb-slot.out::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 18%;
  bottom: 18%;
  left: 18%;
  pointer-events: none;
  image-rendering: pixelated;
  background:
    linear-gradient(
      45deg,
      transparent calc(50% - 3px),
      #e83838 calc(50% - 3px),
      #e83838 calc(50% + 3px),
      transparent calc(50% + 3px)),
    linear-gradient(
      -45deg,
      transparent calc(50% - 3px),
      #e83838 calc(50% - 3px),
      #e83838 calc(50% + 3px),
      transparent calc(50% + 3px));
}
body.in-battle .hud .pb-team .pb-slot.pb-empty {
  background: transparent !important;
  border: 2px dashed #9fb6e880 !important;
  box-shadow: none !important;
  pointer-events: none;
}
body.in-battle .hud .pb-team .pb-slot.pb-empty .pic {
  visibility: hidden;
}
body.in-battle .hud .pb-team .pb-slot.out.out {
  opacity: 1 !important;
  filter: none !important;
  background: #101018 !important;
}
body.in-battle .hp-lock {
  position: absolute;
  z-index: 40;
  left: calc(12px + var(--safe-left,0px));
  top: calc(12px + var(--safe-top,0px));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  color: #fff;
  background: #2a3a5c;
  border: 2px solid #9cb4dc;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}
body.in-battle .hp-lock i {
  font-style: normal;
  color: #ff8a8a;
}
body.in-battle .hp-lock.on {
  background: #d84848;
  border-color: #ffe0e0;
}
body.in-battle .hp-lock.on i {
  color: #fff;
}
body.in-battle .auto-battle.auto-corner {
  position: absolute !important;
  left: calc(12px + var(--safe-left,0px));
  right: auto;
  top: calc(12px + var(--safe-top,0px));
  z-index: 40;
  box-sizing: border-box;
  min-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.in-battle.battle-intro .auto-battle.auto-corner,
body.in-battle.battle-intro .auto-swap {
  visibility: hidden;
}
body.in-battle .auto-swap {
  position: absolute;
  z-index: 40;
  left: calc(12px + var(--safe-left,0px));
  top: calc(60px + var(--safe-top,0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 0 10px !important;
  font-size: 12px;
  font-weight: 700;
  color: #f8f8f0;
  background: #304060e6;
  border: 2px solid #f8f8f0;
  border-radius: 4px;
  box-shadow: 0 3px 0 #18203a;
  cursor: pointer;
  touch-action: manipulation;
}
body.in-battle .auto-swap .swap-svg {
  flex: none;
}
body.in-battle .auto-swap em {
  font-style: normal;
  color: #a8c0e8;
}
body.in-battle .auto-swap.on {
  background: #e8a030;
  color: #402000;
  border-color: #fff8d8;
}
body.in-battle .auto-swap.on em {
  color: #402000;
}
body.in-battle .auto-swap:disabled {
  opacity: .45;
  cursor: default;
}
body.in-battle .hud.mode-play .pe-stick-zone {
  position: absolute;
  left: 0;
  top: 18%;
  width: 42%;
  bottom: 0;
  touch-action: none;
  z-index: 0;
  pointer-events: auto;
}
body.in-battle .hud.mode-play .pb-stick.pe-floating:not(.pe-held) {
  opacity: .55;
}
body.in-battle .auto-battle-on .pe-stick-zone {
  pointer-events: none;
}
body.in-battle.battle-intro .pe-stick-zone,
body.in-battle.battle-over .pe-stick-zone {
  display: none;
}
body.in-battle .hud.mode-play .pe-stick-zone.off {
  pointer-events: none;
}
body.in-battle .pb-move.pe-choice-locked {
  filter: grayscale(1) brightness(.7);
  opacity: .6;
}
body.in-battle .pb-team .pb-slot.pick-held {
  outline: 4px solid #f8d040 !important;
  outline-offset: 0;
  animation: pickHeld .5s steps(2) infinite;
  z-index: 5;
}
@keyframes pickHeld {
  from {
    box-shadow: 0 0 0 4px #fff8d8;
  }
  to {
    box-shadow: 0 0 0 4px #c89010;
  }
}
.pick-zone {
  --pz:#f8f8e8;
  position: absolute;
  z-index: 30;
  pointer-events: none;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/100% 4px no-repeat,
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) bottom left/100% 4px no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/4px 100% no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top right/4px 100% no-repeat,
    rgba(120, 200, 255, .14);
}
.pick-zone > b {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: #283048;
  color: #f8f8e8;
  font-size: 13px;
  white-space: nowrap;
  border: 2px solid #f8f8e8;
  box-shadow: 0 2px 0 #10182c;
}
.pick-zone.idle {
  --pz:rgba(248,248,232,.55);
  background-color: transparent;
}
.pick-zone.idle {
  background:
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/100% 4px no-repeat,
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) bottom left/100% 4px no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/4px 100% no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top right/4px 100% no-repeat,
    rgba(120, 200, 255, .06);
}
.pick-zone.bad {
  --pz:#e85848;
}
.pick-zone.bad {
  background:
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/100% 4px no-repeat,
    repeating-linear-gradient(
      90deg,
      var(--pz) 0 8px,
      transparent 8px 16px) bottom left/100% 4px no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top left/4px 100% no-repeat,
    repeating-linear-gradient(
      180deg,
      var(--pz) 0 8px,
      transparent 8px 16px) top right/4px 100% no-repeat,
    rgba(232, 88, 72, .08);
}
.pick-drop {
  position: absolute;
  z-index: 31;
  pointer-events: none;
  width: 0;
  height: 0;
}
.pick-drop > .ring {
  position: absolute;
  left: -30px;
  top: -14px;
  overflow: visible;
  animation: pickDrop .5s steps(2) infinite;
}
.pick-drop > .ring .edge {
  fill: #f8d040;
  filter: drop-shadow(2px 2px 0 rgba(32, 24, 8, .6));
}
.pick-drop > .ring .x {
  fill: #fff;
  display: none;
}
@keyframes pickDrop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2px);
  }
}
.pick-drop > b {
  display: none;
  position: absolute;
  left: 0;
  top: -40px;
  transform: translateX(-50%);
  padding: 3px 8px;
  background: #a83a30;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 #5a1810;
}
.pick-drop.bad > b {
  display: block;
}
.pick-drop.bad > .ring {
  animation: none;
}
.pick-drop.bad > .ring .edge {
  fill: #e85848;
}
.pick-drop.bad > .ring .x {
  display: inline;
}
.pick-ghost {
  position: absolute;
  z-index: 32;
  pointer-events: none;
  transform: translate(-50%, -80%);
  opacity: .9;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
}
.pick-ghost > .pic {
  display: block;
}
.pick-ghost.sprite {
  transform: translate(-50%, -92%) scale(var(--pick-zoom,1));
  transform-origin: 50% 92%;
  opacity: .95;
}
.pick-ghost .mon-sprite {
  display: block;
  zoom: 1;
  transform: none;
  margin: 0;
}
.pick-ghost.bad {
  filter: grayscale(1) drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
  opacity: .6;
}
.pick-arc {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 31;
  pointer-events: none;
  overflow: visible;
}
.pick-arc .dot {
  fill: #f8d040;
}
.pick-arc .sh {
  fill: rgba(32, 24, 8, .5);
}
body.in-battle .pick-holding .faint-pick {
  left: 75%;
  top: 26%;
  padding: 6px 14px;
  opacity: .92;
}
body.in-battle .pick-holding .faint-pick b {
  font-size: 13px;
}
body.in-battle .pick-holding .faint-pick span {
  font-size: 22px;
}
.pick-zone.hint {
  --pz:rgba(248,248,232,.8);
  background-color: rgba(120, 200, 255, .1);
  animation: pz-hint 1s linear infinite;
}
@keyframes pz-hint {
  0%, 49% {
    opacity: .5;
  }
  50%, 100% {
    opacity: 1;
  }
}
.pick-zone.hint > b {
  display: none;
}
body.in-battle .battle-mega {
  position: absolute;
  z-index: 30;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 !important;
  min-height: 0 !important;
  background: #f8f8f0 !important;
  border: 3px solid #485878 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 0 #1a2448 !important;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  color: #283048;
  font-family:
    SurvivorPixel,
    "Microsoft YaHei",
    sans-serif;
  border-image: none !important;
}
body.in-battle .battle-mega[hidden] {
  display: none;
}
body.in-battle .battle-mega .mega-head {
  display: block;
  background: #dde3f0;
  border-bottom: 2px solid #485878;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}
body.in-battle .battle-mega .mega-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
body.in-battle .battle-mega img {
  width: 34px;
  height: 34px;
  transition: transform .15s;
}
body.in-battle .battle-mega img[hidden] {
  display: none;
}
body.in-battle .battle-mega:disabled {
  cursor: default;
}
body.in-battle .battle-mega:disabled .mega-body {
  opacity: .45;
  filter: saturate(.3);
}
body.in-battle .battle-mega.ready .mega-head {
  color: #fff;
  text-shadow: 0 1px 0 #3a1860;
  background:
    linear-gradient(
      90deg,
      #f05a5a,
      #f0b040,
      #60c060,
      #40a0f0,
      #a060e0,
      #f05a5a);
  background-size: 200% 100%;
  animation: mega-flow 3s linear infinite;
}
body.in-battle .battle-mega.ready img {
  animation: mega-glow 1.6s ease-in-out infinite;
}
body.in-battle .battle-mega:active:not(:disabled) img {
  transform: scale(.88);
}
@keyframes mega-flow {
  to {
    background-position: 200% 0;
  }
}
@keyframes mega-glow {
  50% {
    filter: drop-shadow(0 0 5px #e8b8ff);
  }
}
@media (max-height:430px) {
  body.in-battle .battle-mega {
    width: 66px;
  }
  body.in-battle .battle-mega .mega-body {
    height: 46px;
  }
  body.in-battle .battle-mega img {
    width: 28px;
    height: 28px;
  }
}
body.in-battle .battle-mega.layout-fake {
  right: calc(34px + var(--safe-right,0px));
  bottom: calc(114px + var(--safe-bottom,0px));
}
body.in-battle .battle-mega.spent .mega-head {
  background: #c8ccd4;
  color: #687080;
}
body.in-battle .battle-mega.spent .mega-body {
  opacity: .4;
  filter: grayscale(1);
}
body.in-battle .hud.mode-play .pb-move.pe-sel {
  outline: 3px solid #ffe46a;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #0b1838, 0 0 12px #ffe46a !important;
}
body.in-battle.pad-wheel-on .hud.mode-play .pb-moves::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--wheel-r,150px) + 48px));
  top: calc(-1 * (var(--wheel-r,150px) + 48px));
  width: calc(2 * (var(--wheel-r,150px) + 48px));
  height: calc(2 * (var(--wheel-r,150px) + 48px));
  border-radius: 50%;
  box-sizing: border-box;
  border: 10px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 2px rgba(11, 24, 56, .55), 0 0 0 2px rgba(11, 24, 56, .55);
  clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
  pointer-events: none;
}
body.in-battle.pad-wheel-on .hud.mode-play .pb-move {
  opacity: .6;
  transition: opacity .08s, transform .08s;
}
body.in-battle.pad-wheel-on .hud.mode-play .pb-move.pad-pick {
  opacity: 1;
  transform: scale(1.14);
  box-shadow:
    0 0 0 3px #ffd54a,
    0 0 16px 4px rgba(255, 213, 74, .8),
    0 4px 0 #0b1838 !important;
  z-index: 2;
}
@media (max-height:470px) {
  body.in-battle .hud.mode-play {
    --wheel-r:128px;
  }
}
body.in-battle[data-keys] .hud.mode-play .pb-move {
  overflow: visible !important;
}
body.in-battle[data-keys] .hud.mode-play .pb-move .k:not(:empty) {
  left: 50% !important;
  top: -10px !important;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}
body.in-battle .hud.mode-play .pb-stick {
  margin-bottom: var(--safe-bottom,0px);
}
.exp-battle-result .panel > button.danger {
  margin-top: 14px !important;
  min-height: 0 !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  align-self: center;
}
.pe-aim-ring {
  position: fixed;
  z-index: 2147483600;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .55);
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, .06) 55%,
      rgba(255, 255, 255, .16));
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(11, 24, 56, .35);
}
.pe-aim-ring.off {
  border-color: rgba(255, 120, 120, .6);
}
.pe-aim-knob {
  position: fixed;
  z-index: 2147483601;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 214, 74, .9);
  border: 3px solid rgba(11, 24, 56, .6);
  pointer-events: none;
}
.pe-aim-cancel {
  position: fixed;
  z-index: 2147483601;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 24, 56, .55);
  border: 2px solid rgba(255, 255, 255, .6);
  pointer-events: none;
}
.pe-aim-cancel.on {
  background: rgba(201, 60, 55, .85);
  border-color: #fff;
  transform: scale(1.12);
}
.pb-move.pe-aiming {
  filter: brightness(1.25);
  transform: scale(1.06);
}
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.panel-title strong {
  font-size: 15px;
}
.panel-title small {
  font-size: 10px;
  color: #bcd2ff;
}
.hero-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
}
.party-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px !important;
  min-height: 0 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(
      180deg,
      #14244ee0,
      #080e22eb) !important;
  border: 3px solid #aeb8d1 !important;
  box-shadow: 0 0 0 3px #0b1838 !important;
}
.party-thumb {
  position: relative;
  flex: 1;
  width: 42px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #2c519f88;
  overflow: hidden;
}
.party-thumb.lead {
  background: #3f9a5c99;
  box-shadow: inset 0 0 0 1px #9df0b4;
}
.party-thumb.empty {
  background: #ffffff0d;
  box-shadow: inset 0 0 0 1px #ffffff22;
}
.thumb-hp {
  position: absolute;
  left: 3px;
  bottom: 2px;
  height: 2px;
  max-width: calc(100% - 6px);
  background: #5fe08a;
  border-radius: 1px;
}
.home-menu {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.home-menu .menu-card.featured {
  grid-column: 1 / -1;
}
.party-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 6px;
  flex: 1;
  min-height: 0;
}
.party-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  text-align: left;
  background: linear-gradient(#3c78d8, #2453a8) !important;
  border: 2px solid #cfe0ff !important;
  box-shadow: 0 0 0 2px #0b1838, 0 3px 0 #0b1838 !important;
  color: #fff;
  overflow: hidden;
}
.party-slot.lead {
  background: linear-gradient(#4fb06a, #2b7a43) !important;
}
.party-slot.selected {
  border-color: #ffd23a !important;
  box-shadow: 0 0 0 2px #ffd23a, 0 3px 0 #0b1838 !important;
}
.party-slot.empty {
  background: #14234dcc !important;
  border-style: dashed !important;
  border-color: #5b78b8 !important;
  box-shadow: none !important;
  justify-content: center;
  color: #7d95c8;
  font-size: 11px;
}
.slot-ball {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--survivor-ball) center/contain no-repeat;
  image-rendering: pixelated;
  opacity: .9;
}
.slot-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.slot-info strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-info small {
  font-size: 10px;
  color: #e6eeff;
}
.slot-info .hp {
  height: 5px;
  margin-top: 2px;
}
.slot-item {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
.scene-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.scene-art {
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(#2c519f, #1a3170);
  border: 2px solid #f4f8ff;
  box-shadow: 0 0 0 2px #0b1838;
  line-height: 0;
}
.scene-art canvas {
  height: 150px;
  height: clamp(150px, 58vh, 420px);
  width: auto;
  aspect-ratio: 1;
  --ar: 1;
  image-rendering: pixelated;
  border-radius: 6px;
}
.lab-main {
  padding: 14px !important;
}
.lab-main h2 {
  margin: 4px 0 8px;
}
.pc-layout {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(220px, 1.05fr) minmax(260px, 1.3fr);
  gap: 10px;
  align-items: stretch;
  height: calc(var(--app-vh, 100vh) - 150px);
  min-height: 0;
}
.pc-party {
  padding: 8px !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pc-party .party-panel {
  grid-template-columns: 1fr;
}
.pc-party .party-slot {
  min-height: 0;
}
.pc-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
  border-radius: 12px;
  border: 3px solid #f4f8ff;
  box-shadow: 0 0 0 3px #0b1838;
  background:
    repeating-linear-gradient(
      45deg,
      #7cc48a 0,
      #7cc48a 10px,
      #6bb67a 10px,
      #6bb67a 20px);
}
.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 9px;
  background: #f8f4e0;
  color: #3a4a2a;
  border: 2px solid #3a6a3a;
}
.box-head strong {
  font-size: 14px;
  color: #2f4f2f;
}
.box-nav {
  padding: 2px 10px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.box-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 3px;
  min-height: 0;
}
.box-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-height: 0 !important;
  border-radius: 6px !important;
  background: #ffffff2e !important;
  border: 1px solid #ffffff55 !important;
  box-shadow: none !important;
  overflow: hidden;
}
.box-cell.empty {
  background: #ffffff14;
  border: 1px dashed #ffffff33;
  border-radius: 6px;
}
.box-cell.selected {
  background: #fff6 !important;
  border: 2px solid #ffd23a !important;
}
.box-held {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd23a;
  box-shadow: 0 0 0 1px #000;
}
.box-foot {
  margin: 5px 0 0;
  font-size: 10px;
  color: #f4fff2;
  text-shadow: 1px 1px #2a4a2a;
  text-align: center;
}
.pc-screen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(#0f2a3a, #0b1f2c);
  color: #d8fff0;
  border: 4px solid #c8ccd4;
  box-shadow:
    0 0 0 3px #0b1838,
    inset 0 0 0 2px #24485c,
    inset 0 0 24px #23ffb222;
  font-size: 11px;
}
.pc-empty {
  margin: auto;
  color: #7fb8a4;
}
.pc-screen-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pc-portrait {
  flex: none;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background:
    radial-gradient(
      circle,
      #2f6b7a,
      #123040);
  border: 2px solid #4fd1b0;
}
.pc-screen h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.pc-sub {
  margin: 1px 0;
  color: #9fe8cf;
}
.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 3px 0;
}
.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px 1px 2px;
  border-radius: 99px;
  font-size: 10px;
  color: #fff;
  background: #0006;
  border: 1px solid #fff5;
}
.type-tag img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.pc-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}
.pc-screen h3 {
  margin: 2px 0 4px;
  font-size: 11px;
  color: #ffd23a;
  letter-spacing: 1px;
}
.stat-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr 22px;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}
.stat-row b {
  text-align: right;
  color: #fff;
}
.stat-row small {
  color: #ffd23a;
  font-size: 9px;
}
.stat-bar {
  height: 5px;
  border-radius: 3px;
  background: #ffffff1f;
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #4fd1b0,
      #c8ff7a);
}
.pc-moves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pc-move {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 5px;
  align-items: center;
  padding: 3px 5px;
  border-radius: 7px;
  background: #ffffff12;
}
.pc-move img {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.mv-name {
  font-weight: 700;
  color: #fff;
}
.pc-move small {
  font-size: 9px;
  color: #9fe8cf;
}
.pc-ability {
  margin: 2px 0;
  color: #9fd6c4;
  font-size: 10px;
  line-height: 1.35;
}
.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.pc-actions button {
  padding: 5px 10px !important;
  font-size: 11px;
  min-height: 0 !important;
}
.shop-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px !important;
  height: calc(var(--app-vh, 100vh) - 150px);
  min-height: 0;
}
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.shop-head h2 {
  margin: 0;
}
.shop-head .coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}
.pocket-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pocket-tabs button {
  padding: 5px 12px !important;
  font-size: 12px;
  min-height: 0 !important;
}
.pocket-tabs button.selected {
  background: linear-gradient(#ffe46a, #f2b705) !important;
  color: #0d1430 !important;
}
.shop-list {
  flex: 1;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 2px;
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff14;
  border: 1px solid #ffffff2a;
}
.shop-item.locked {
  opacity: .45;
  filter: grayscale(.7);
}
.shop-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.shop-text strong {
  font-size: 14px;
}
.shop-text small {
  font-size: 10px;
  color: #c9d8ff;
  line-height: 1.3;
}
.shop-text .owned {
  font-size: 10px;
  color: #ffd23a;
}
.shop-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.shop-buy .price {
  font-size: 12px;
  color: #ffe9a0;
}
.shop-buy button {
  padding: 4px 12px !important;
  font-size: 11px;
  min-height: 0 !important;
}
.empty-pocket {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
}
.item-pick,
.target-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 52vh;
  overflow: auto;
}
.item-pick .item-btn,
.target-list .item-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.item-pick small {
  display: block;
  font-size: 10px;
  opacity: .8;
}
.carry-title {
  margin: 8px 0 4px;
  font-size: 14px;
}
.carry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
  max-height: 34vh;
  overflow: auto;
}
.carry-group h4 {
  margin: 2px 0;
  font-size: 11px;
  color: #ffd23a;
}
.carry-row {
  display: grid;
  grid-template-columns: 24px 1fr 26px 24px 26px 30px;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin: 2px 0;
}
.carry-row b {
  text-align: center;
}
.carry-row small {
  color: #9fb6e8;
  font-size: 10px;
}
.mini-btn {
  padding: 0 !important;
  min-height: 22px !important;
  height: 22px;
  width: 26px;
  font-size: 14px;
  line-height: 1;
}
.run-bag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 56vh;
  overflow: auto;
}
.run-bag .bag-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: #ffffff12;
}
.bag-text {
  display: flex;
  flex-direction: column;
}
.bag-text small {
  font-size: 10px;
  opacity: .8;
}
@media (max-height:470px) {
  .hub.home2 {
    padding: 8px 12px;
    gap: 10px;
  }
  .home2 .logo-title {
    font-size: 22px;
  }
  .home-menu .menu-label small {
    display: none;
  }
  .home-menu .menu-card {
    padding: 5px 8px !important;
  }
  .pc-layout,
  .shop-panel {
    height: calc(var(--app-vh, 100vh) - 118px);
  }
}
@media (orientation:portrait) {
  .hub.home2,
  .pc-layout,
  .scene-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}
@media (max-height:700px) and (orientation:landscape) {
  .page {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }
  .page-top {
    margin-bottom: 6px !important;
  }
  .page-top .back {
    padding: 4px 12px !important;
    font-size: 12px;
    min-height: 0 !important;
  }
  .page-top .eyebrow {
    font-size: 10px;
  }
  .pc-layout,
  .shop-panel {
    height: calc(var(--app-vh, 100vh) - 118px);
  }
}
@media (max-height:700px) and (orientation:landscape) {
  .hub .home-right {
    gap: 8px;
  }
  .home-menu {
    gap: 4px 10px !important;
    padding: 8px 14px !important;
  }
  .home-menu .menu-card {
    padding: 4px 8px !important;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 22px;
  }
  .home-menu .menu-label strong {
    font-size: 16px;
  }
  .home-menu .menu-label small {
    font-size: 10px;
  }
  .hub-status {
    padding: 6px 14px !important;
  }
  .hub-status p {
    margin: 2px 0;
    font-size: 12px;
  }
}
.gacha-rates {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0;
}
.gacha-rates span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gacha-rates img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.ticket-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gacha-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 6px 0;
}
.gacha-buttons button {
  padding: 8px 14px !important;
}
.ten-ticket {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e2c4ff;
}
.pull-fx {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      circle at 50% 45%,
      #1b2d63,
      #03060f 70%);
}
.pull-fx::before,
.pull-fx::after {
  content: "";
  margin: auto;
}
.gacha-slot {
  width: 528px;
  width: min(528px, 92vw, 78vh);
  height: auto;
  image-rendering: pixelated;
  cursor: pointer;
  filter: drop-shadow(0 0 30px rgba(255, 90, 90, .35));
  animation: survivor-pop .25s ease-out both;
}
.pull-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
}
.pull-results.ten {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: center;
}
.pcard {
  width: 150px;
  padding: 10px 6px;
  text-align: center;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .1),
      rgba(0, 0, 0, .3));
  border: 3px solid var(--rc,#fff);
  box-shadow: 0 0 22px var(--rc,#fff);
  animation: pcard-pop .3s ease-out both;
  text-shadow: 2px 2px 0 #0a1430;
}
.pcard .stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--rc);
  font-size: 13px;
  font-weight: 700;
}
.pcard .stars img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
.pcard .pcard-mon {
  margin: 6px auto;
}
.pcard b {
  display: block;
  font-size: 16px;
}
.pcard .tag {
  font-size: 11px;
  margin-top: 2px;
  opacity: .9;
}
.pcard .new {
  color: #ffd23a;
  font-weight: 700;
}
.pcard.r4 {
  animation: pcard-pop .3s ease-out both, pcard-epic 1.4s ease-in-out infinite alternate;
}
.pull-hint {
  flex-shrink: 0;
  margin: 4px 0 0;
  padding: 0;
  background: none;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px #0006;
  opacity: .55;
  pointer-events: none;
  animation: pullhint 2.4s ease-in-out infinite;
}
.pull-hint[hidden] {
  display: none;
}
@keyframes pullhint {
  50% {
    opacity: .3;
  }
}
.pull-fx {
  cursor: pointer;
}
@keyframes pcard-pop {
  from {
    transform: scale(.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes pcard-epic {
  to {
    box-shadow: 0 0 40px var(--rc), 0 0 80px var(--rc);
  }
}
@media (max-height:520px) {
  .pull-fx {
    gap: 8px;
  }
  .pull-results {
    gap: 6px;
  }
  .pcard {
    width: 96px;
    padding: 5px 3px;
    border-radius: 10px;
  }
  .pcard b {
    font-size: 12px;
  }
  .pcard .tag {
    font-size: 9px;
  }
  .pcard .stars {
    font-size: 10px;
  }
}
.pcard-art {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard .pcard-mon {
  margin: 0;
}
@media (max-height:520px) {
  .pcard-art {
    height: 64px;
  }
}
.pc-box {
  background: none !important;
  border: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
}
.box-wall {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 160/144;
  --ar: 160/144;
  min-height: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 #30385080);
}
.box-wall .box-head {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 1.2%;
  height: 13.5%;
  margin: 0;
  padding: 0 2%;
  background: none !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.box-wall .box-head strong {
  font-size: 16px;
  font-size: clamp(16px, 3.8vh, 22px);
  color: #404858;
  text-shadow:
    1px 1px 0 #f8f8f8,
    -1px 0 0 #f8f8f8,
    0 -1px 0 #f8f8f8,
    1px 0 0 #f8f8f8;
  letter-spacing: 1px;
}
.box-wall .box-nav {
  padding: 0 6px !important;
  min-height: 0 !important;
  font-size: 12px;
  background: #f8f8f0e0 !important;
  border: 2px solid #687890 !important;
  border-image: none !important;
  box-shadow: none !important;
  border-radius: 3px !important;
}
.box-wall .box-grid {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 21%;
  bottom: 5%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0;
}
.box-wall .box-cell,
.box-wall .box-cell.empty {
  background: none !important;
  border: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
  padding: 0 !important;
  min-height: 0 !important;
}
.box-wall .box-cell .box-mon {
  filter: drop-shadow(1px 1px 0 #30385066);
}
.box-wall .box-cell:hover:not(.empty) .box-mon {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(1px 1px 0 #30385066);
}
.box-wall .box-cell.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -38%;
  width: 30px;
  height: 30px;
  transform: translateX(-30%);
  background: url(/_expedition/assets/emerald/pc/hand_cursor.png) 0 0/100% 400%;
  image-rendering: pixelated;
  animation: pc-hand 1s steps(2) infinite;
  pointer-events: none;
  z-index: 2;
}
.box-wall .pc-drop-target {
  outline: 3px dashed #f8f8f8 !important;
  outline-offset: -4px;
  background: #ffffff44 !important;
}
@keyframes pc-hand {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 3px;
  }
}
.pc-box .box-foot {
  color: #f8f8e8;
  text-shadow: 1px 1px 0 #303850;
}
.box-wall {
  height: auto;
  width: 100%;
}
@supports (width: min(1px, 2px)) {
  .box-wall {
    width: min(100%, calc((var(--app-vh, 100vh) - 190px) * 160 / 144));
  }
}
.pc-party .party-panel {
  grid-auto-rows: minmax(0, 50px);
  grid-template-rows: none;
  align-content: start;
  gap: 5px;
}
.pc-party .party-slot.empty {
  opacity: .55;
}
@media (max-height:500px) {
  .box-wall {
    width: 100%;
  }
  @supports (width: min(1px, 2px)) {
    .box-wall {
      width: min(100%, calc((var(--app-vh, 100vh) - 140px) * 160 / 144));
    }
  }
  .pc-party .party-panel {
    grid-auto-rows: minmax(0, 40px);
    gap: 3px;
  }
}
.dex-icon {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.dex-icon.unseen .dex-mon {
  filter: brightness(0) opacity(.6);
}
.dex-icon.rare::after {
  content: "★";
  position: absolute;
  right: -2px;
  top: -4px;
  font-size: 11px;
  color: #e0a020;
  text-shadow: 1px 1px 0 #503818;
}
.route-art.dex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px 8px;
  min-height: 0;
  height: auto;
}
.gacha-pool {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 150px;
  overflow: auto;
  padding: 4px 6px;
  background: #ffffff40;
}
.pool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}
.pool-row > img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  image-rendering: pixelated;
}
.gen-tabs {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin: 6px 0 10px;
}
.gen-tab {
  padding: 4px 2px !important;
  min-height: 0 !important;
  line-height: 1.1;
}
.gen-tab b {
  display: block;
  font-size: 11px;
}
.gen-tab small {
  font-size: 10px;
  opacity: .8;
}
.starter .type-row {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 3px;
}
@media (max-width:900px) and (orientation:portrait) {
  .gen-tabs {
    grid-template-columns: repeat(5, 1fr);
  }
}
.gen-tab {
  border-width: 4px !important;
}
.gen-tab b {
  white-space: nowrap;
  font-size: 10px;
}
@media (orientation:landscape) {
  .pc-layout,
  .pc-layout[class] {
    height: auto !important;
    grid-template-columns: minmax(150px, .72fr) minmax(0, 1.5fr) minmax(240px, 1.2fr);
    align-items: stretch;
    gap: 8px;
  }
  .pc-layout > .pc-party,
  .pc-layout > .pc-screen {
    height: 0;
    min-height: 100%;
    overflow: auto;
  }
  .pc-party > .panel-title {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .pc-party > .panel-title > strong,
  .pc-party > .panel-title > small {
    white-space: nowrap;
  }
  .pc-box {
    justify-content: flex-start;
  }
  .box-wall {
    height: auto;
    width: 100%;
  }
}
@media (max-width:760px) and (orientation:landscape) {
  .pc-layout,
  .pc-layout[class] {
    grid-template-columns: minmax(130px, .85fr) minmax(0, 1.4fr) minmax(200px, 1.2fr);
  }
}
.report-rewards.lost strong,
.report-rewards.lost span {
  color: #b05048;
}
.report-mons.lost .mon-sprite {
  filter: grayscale(1) opacity(.6);
}
.route-art.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 4px;
  justify-content: start;
}
.dex-grid .dex-icon,
.pool-row .dex-icon {
  width: 40px;
  height: 40px;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff40;
}
.dex-icon.rare {
  overflow: visible;
  box-shadow: inset 0 0 0 2px #e0a02066;
}
.dex-icon.rare::after {
  right: 1px;
  top: -1px;
}
.route-art.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 4px;
  justify-content: start;
}
.dex-grid .dex-icon,
.pool-row .dex-icon {
  width: 40px;
  height: 40px;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff40;
}
.dex-icon.rare {
  overflow: visible;
  box-shadow: inset 0 0 0 2px #e0a02066;
}
.dex-icon.rare::after {
  right: 1px;
  top: -1px;
}
.difficulty-card {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  padding: 8px 10px !important;
}
.difficulty-card-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.difficulty-card-inner > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.difficulty-card strong {
  font-size: 14px;
}
.difficulty-card small {
  font-size: 11px;
  line-height: 1.35;
  opacity: .85;
}
.difficulty-reward {
  color: #b05048;
  opacity: 1 !important;
}
.difficulty-badge {
  flex: none;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 1px 1px 0 #0005;
}
.difficulty-badge.easy {
  background: #58a868;
}
.difficulty-badge.normal {
  background: #5878b8;
}
.difficulty-badge.hard {
  background: #c05048;
}
.difficulty-card.selected {
  box-shadow: inset 5px 0 #c85848 !important;
}
.area-sign {
  position: fixed;
  z-index: 500;
  left: 50%;
  top: 70px;
  width: 240px;
  margin-left: -120px;
  padding: 10px 18px 12px;
  background: #f8f0d8;
  border: 4px solid #a07848;
  box-shadow:
    0 0 0 3px #f8f0d8,
    0 0 0 6px #604828,
    0 6px 0 #0006;
  color: #484028;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: area-sign 4.2s steps(14) both;
  pointer-events: none;
}
.area-sign small {
  font-size: 12px;
  color: #806848;
}
.area-sign strong {
  font-size: 22px;
}
.area-sign .difficulty-badge {
  align-self: flex-start;
  margin-top: 4px;
}
@keyframes area-sign {
  0% {
    transform: translateY(-160%);
  }
  10%, 85% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-160%);
  }
}
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 4px 0;
}
.region-tab {
  padding: 3px 8px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.arena-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
}
.arena-mon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.opponent .difficulty-badge {
  align-self: center;
}
.dex-panel {
  overflow: auto;
  max-height: calc(var(--app-vh, 100vh) - 140px);
}
.dex-regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.dex-sumrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.dex-sumrow .dex-sum {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.dex-views {
  display: flex;
  gap: 4px;
  flex: none;
}
.dex-views .small-btn {
  min-height: 0 !important;
  padding: 2px 10px !important;
  font-size: 12px !important;
}
.dex-views .small-btn.on {
  background: #f0d898;
  border-color: #a8822a;
}
.dex-region {
  padding: 8px;
  background: #ffffff50;
  border: 2px solid #b8c0d0;
}
.dex-region header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.dex-region.locked {
  opacity: .6;
}
.dex-region .dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 4px;
}
.dex-icon.owned {
  box-shadow: inset 0 0 0 2px #58a86888;
}
.music-button {
  min-width: 64px;
  font-weight: 700;
  margin-right: 8px;
}
.home-menu .menu-card {
  overflow: hidden;
}
.home-menu .menu-inner {
  position: relative;
  z-index: 1;
}
.menu-art {
  --s:2;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: calc(var(--bw)*var(--s)*1px) auto;
  background-position: calc(var(--bx)*var(--s)*-1px) calc(var(--by)*var(--s)*-1px);
  image-rendering: pixelated;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 2px;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 45%);
  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 45%);
  opacity: .95;
}
.featured .menu-art {
  width: 55%;
}
.menu-art-person {
  height: 64px;
  height: min(64px, calc(100% - 2px));
  aspect-ratio: 1/2;
  --ar: 1/2;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 900% 100%;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.menu-art-item {
  image-rendering: pixelated;
  max-height: 100%;
  flex-shrink: 0;
}
.menu-art-item {
  height: 48px;
  height: min(48px, calc(100% - 4px));
  width: auto;
}
.difficulty-card-inner {
  position: relative;
}
.difficulty-art {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 #30385050);
}
.wild-mode .difficulty-art {
  width: 72px;
  height: 72px;
}
.user-pill .user-icon {
  image-rendering: pixelated;
}
.difficulty-badge.royale {
  background: #6a3a78;
}
.menu-art {
  max-width: 150px;
}
.featured .menu-art {
  max-width: 190px;
}
@media (orientation:portrait) {
  .menu-art {
    max-width: 120px;
  }
  .featured .menu-art {
    max-width: 150px;
  }
}
.lab-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 0;
}
.lab-stage {
  position: relative;
  line-height: 0;
}
.scene-art .lab-canvas {
  display: block;
  height: var(--lab-size,520px);
  width: auto;
  aspect-ratio: 29/13;
  --ar: 29/13;
  image-rendering: pixelated;
  cursor: pointer;
}
@supports (width: min(1px, 2px)) {
  .scene-art .lab-canvas {
    height: var(--lab-size,min(80vw,520px));
  }
}
.incubator-hint-wrap {
  position: absolute;
  transform: translate(-50%, -110%);
  animation: hint-bob 1.1s ease-in-out infinite;
  z-index: 2;
  line-height: 1;
}
.incubator-hint {
  position: relative;
  white-space: nowrap;
  padding: 5px 10px !important;
  min-height: 0 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  background: #fff8e0 !important;
  color: #a84840 !important;
}
.incubator-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #404858;
}
@keyframes hint-bob {
  50% {
    transform: translate(-50%, calc(-110% - 5px));
  }
}
.lab-caption {
  margin: 0;
  font-size: 12px;
  color: #f0f0e8;
  text-shadow: 1px 1px 0 #10203a;
}
@media (orientation:landscape) and (max-height:470px) {
  .lab-caption {
    display: none;
  }
  .incubator-hint {
    font-size: 11px;
    padding: 3px 7px !important;
  }
}
.gacha-back .dialog {
  --modal-w: 880px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .gacha-back .dialog {
    --modal-w: min(880px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.gacha {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gacha-gens {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}
.gacha-gens .gen-tab:disabled {
  opacity: .35;
}
.gacha-gens .gen-tab.selected {
  background: #f0d898 !important;
  box-shadow: inset 0 -3px #c85848 !important;
}
.gacha-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
}
.gacha-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  border: 4px solid #0a1430;
  min-height: 0;
}
.banner-title {
  font-size: 20px;
  text-shadow: 2px 2px #0a1430;
}
.banner-desc {
  font-size: 12px;
  opacity: .85;
}
.gacha-feat {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  min-height: 110px;
  margin: 4px 0;
}
.gacha-feat .feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 1px 1px #0a1430;
}
.gacha-feat .feat.silhouette .mon-sprite {
  filter: brightness(0) opacity(.75);
}
.gacha-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  background: #0a143080;
  padding: 5px 8px;
}
.gacha-progress b {
  color: #ffd23f;
  font-size: 15px;
}
.gacha-progress .total {
  opacity: .8;
}
.gacha-odds {
  padding: 6px 8px;
  background: #ffffff70;
  border: 2px solid #40485830;
  font-size: 13px;
}
.gacha-odds h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #b05048;
}
.odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid #40485818;
}
.odds-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.odds-name img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.odds-name small {
  opacity: .85;
  font-size: 11px;
}
.odds-val {
  font-weight: 700;
  color: #404858;
}
.gacha-odds .note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #687080;
}
.gacha-tickets {
  margin: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
@media (max-height:470px) {
  .gacha-gens .gen-tab small {
    display: none;
  }
  .gacha-feat {
    min-height: 80px;
  }
  .gacha-odds .note {
    display: none;
  }
  .banner-desc {
    display: none;
  }
}
@media (orientation:portrait) {
  .gacha-main {
    grid-template-columns: 1fr;
  }
  .gacha-gens {
    grid-template-columns: repeat(5, 1fr);
  }
}
.gacha-banner .banner-desc {
  color: #e8f0ff !important;
  opacity: .9;
}
body[data-screen=lab] main.page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-screen=lab] .lab-room {
  flex: 1;
  min-height: 0;
  width: 100%;
  container-type: size;
  justify-content: center;
}
body[data-screen=lab] .lab-room .lab-stage {
  --lab-size: calc(calc(100vh - 40px) - 28px);
}
@supports (width: min(1px, 2px)) and (width: 1cqw) {
  body[data-screen=lab] .lab-room .lab-stage {
    --lab-size: calc(min(100cqh - 40px,(100cqw - 28px) * 13 / 29) - 28px);
  }
}
@media (orientation:landscape) and (max-height:470px) {
  body[data-screen=lab] .lab-room .lab-stage {
    --lab-size: calc(calc(100vh - 8px));
  }
  @supports (width: min(1px, 2px)) and (width: 1cqw) {
    body[data-screen=lab] .lab-room .lab-stage {
      --lab-size: calc(min(100cqh - 8px,(100cqw - 16px) * 13 / 29));
    }
  }
  body[data-screen=lab] .page-top {
    margin-bottom: 4px;
  }
}
body[data-screen=adventure] main.page,
body[data-screen=dungeon] main.page,
body[data-screen=survival] main.page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dungeon-select {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dungeon-gens {
  margin: 0 !important;
}
.dungeon-map {
  flex: 1;
  min-height: 0;
  padding: 10px !important;
  background: #c8d8b0 !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      #00000008 0 2px,
      transparent 2px 4px) !important;
}
.dungeon-path {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.dungeon-path::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 10%;
  bottom: 25%;
  left: 10%;
  border: 6px dashed #8a6a46;
  border-left: 0;
  border-radius: 0 40px 40px 0;
  opacity: .55;
  pointer-events: none;
}
.dungeon-path > :nth-child(6) {
  grid-area: 2/5;
}
.dungeon-path > :nth-child(7) {
  grid-area: 2/4;
}
.dungeon-path > :nth-child(8) {
  grid-area: 2/3;
}
.dungeon-path > :nth-child(9) {
  grid-area: 2/2;
}
.dungeon-path > :nth-child(10) {
  grid-area: 2/1;
}
button.dungeon-node {
  position: relative;
  z-index: 1;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  text-align: left;
  background: var(--theme) !important;
}
button.dungeon-node.has-map {
  background: var(--map) -40px -40px/auto no-repeat, var(--theme) !important;
  image-rendering: pixelated;
}
button.dungeon-node.gen-map {
  background: var(--map) center/cover no-repeat, var(--theme) !important;
}
.node-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  padding: 6px 8px;
  background: linear-gradient(transparent 20%, #f8f8f0f0 58%);
}
.node-tier {
  position: absolute;
  left: 6px;
  top: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #404858;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #f8f8f0;
}
.dungeon-node strong {
  font-size: 12px;
  font-size: clamp(12px, 2.1vw, 17px);
  color: #303848;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dungeon-node small {
  font-size: 11px;
  color: #687080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.node-lv {
  font-size: 11px;
  font-weight: 700;
  color: #a84840;
}
.node-clears {
  display: flex;
  gap: 3px;
}
.clear-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #404858;
  background: #fff;
}
.clear-dot.easy.on {
  background: #58a868;
}
.clear-dot.normal.on {
  background: #5878b8;
}
.clear-dot.hard.on {
  background: #c05048;
}
.node-pool {
  position: absolute;
  right: 6px;
  top: 7px;
  display: flex;
  gap: 2px;
}
.node-pool i {
  width: 6px;
  height: 12px;
  background: #ffffff80;
  border: 1px solid #404858;
}
.node-pool i.on {
  background: #f0c040;
}
.node-lock {
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 16px;
}
.node-shards {
  position: absolute;
  right: 4px;
  top: 22px;
  display: flex;
  gap: 0;
}
.node-shards .item-icon {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.node-shards .star-day {
  display: inline-flex;
  animation: star-day 1.6s ease-in-out infinite;
}
@keyframes star-day {
  50% {
    filter: brightness(1.4) drop-shadow(0 0 3px #ffe070);
  }
}
.brief-shards .star-day {
  color: #b05030;
  font-weight: 700;
}
.brief-shards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 2px;
  font-size: 12px;
  color: #506070;
}
.brief-shards .shard-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.brief-shards .item-icon {
  image-rendering: pixelated;
}
button.dungeon-node.locked {
  filter: grayscale(1) brightness(.85);
  opacity: .75;
}
.dungeon-tip {
  margin: 0;
  font-size: 12px;
  color: #f0f0e8;
  text-shadow: 1px 1px 0 #10203a;
}
@media (max-height:470px) {
  .dungeon-gens .gen-tab small {
    display: none;
  }
  .dungeon-path {
    gap: 6px 8px;
  }
  .dungeon-node small {
    display: none;
  }
  .dungeon-tip {
    display: none;
  }
  .node-tier {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}
@media (orientation:portrait) {
  .dungeon-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 110px;
    height: auto;
  }
  .dungeon-path > * {
    grid-area: auto !important;
  }
  .dungeon-path::before {
    display: none;
  }
  .dungeon-map {
    overflow: auto;
  }
}
body[data-screen=dungeon] .adventure-layout,
body[data-screen=survival] .adventure-layout {
  flex: 1;
  min-height: 0;
}
@media (orientation:landscape) {
  body[data-screen=dungeon] .adventure-layout > .panel,
  body[data-screen=survival] .adventure-layout > .panel {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    position: static;
  }
}
.briefing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.briefing-head h2 {
  margin: 2px 0;
}
.info-button {
  flex-shrink: 0;
  padding: 5px 10px !important;
  min-height: 0 !important;
  font-size: 13px;
}
.info-back .dialog {
  --modal-w: 720px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .info-back .dialog {
    --modal-w: min(720px,calc(100vw - 28px));
  }
}
.dungeon-info .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dungeon-info .info-grid > div {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  background: #ffffff80;
  border: 2px solid #40485820;
}
.dungeon-info .info-grid small {
  color: #687080;
}
.pool-tier {
  padding: 6px 0;
  border-bottom: 1px solid #40485818;
}
.pool-tier.locked {
  opacity: .55;
}
.pool-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pool-tier-head small {
  color: #687080;
}
.pool-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 4px;
}
.dungeon-info .rules {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #505868;
}
@media (max-height:470px) {
  body[data-screen=dungeon] .difficulty-card-inner > span:last-child small:not(.difficulty-reward) {
    display: none;
  }
  body[data-screen=dungeon] .difficulty-art {
    width: 40px;
    height: 40px;
  }
}
@media (orientation:landscape) {
  .dungeon-gens {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  }
  .dungeon-gens .gen-tab b {
    font-size: 9px;
    font-size: clamp(9px, 1.6vw, 13px);
    white-space: nowrap;
  }
}
.lab-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  max-width: 62%;
  padding: 4px 9px;
  background: #f8f8f8;
  border: 3px solid #404858;
  box-shadow: inset -2px -2px 0 #d0d0c8, 0 2px 0 #30385060;
  font-size: 13px;
  line-height: 1.35;
  color: #404040;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  animation: bubble-in .15s steps(2);
}
.lab-bubble::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--tail,0px));
  bottom: -9px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top: 6px solid #404858;
  border-bottom: 0;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translate(-50%, -90%);
  }
}
@media (max-height:470px) {
  .lab-bubble {
    font-size: 11px;
    padding: 3px 7px;
    border-width: 2px;
  }
}
@media (orientation:landscape) {
  body[data-screen=arena] main.page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body[data-screen=arena] .arena-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 10px 14px !important;
  }
  body[data-screen=arena] .arena-panel .section-heading {
    flex: none;
    align-items: center;
    flex-direction: row;
  }
  body[data-screen=arena] .arena-panel h1 {
    font-size: 17px;
    font-size: clamp(17px, 2.4vw, 24px);
    margin: 0 0 2px !important;
  }
  body[data-screen=arena] .arena-panel .section-heading .muted {
    margin: 0;
    font-size: 12px;
  }
  body[data-screen=arena] .opponents {
    flex: 1;
    min-height: 0;
    margin: 8px 0 6px !important;
    gap: 10px !important;
    grid-template-rows: minmax(0, 1fr);
  }
  body[data-screen=arena] .opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 8px 10px !important;
    gap: 2px;
  }
  body[data-screen=arena] .opponent img {
    flex: 1;
    min-height: 0;
    height: auto !important;
    width: 100%;
    object-fit: contain;
  }
  body[data-screen=arena] .opponent h2 {
    margin: 0 !important;
    font-size: 14px;
    font-size: clamp(14px, 1.8vw, 18px);
  }
  body[data-screen=arena] .opponent p {
    margin: 0 !important;
  }
  body[data-screen=arena] .opponent button {
    margin-top: 4px !important;
    width: 100%;
    padding: 6px !important;
  }
  body[data-screen=arena] .arena-team {
    min-height: 0;
  }
  body[data-screen=arena] .arena-panel > .notice {
    flex: none;
    margin: 0 !important;
    padding: 5px 9px !important;
    font-size: 11px;
  }
}
@media (orientation:landscape) and (max-height:470px) {
  body[data-screen=arena] .arena-panel .eyebrow,
  body[data-screen=arena] .arena-panel .section-heading .muted,
  body[data-screen=arena] .arena-panel > .notice {
    display: none;
  }
  body[data-screen=arena] .arena-mon {
    width: 30px;
    height: 30px;
  }
  body[data-screen=arena] .opponent small {
    font-size: 10px;
  }
  body[data-screen=arena] .opponent .difficulty-badge {
    font-size: 11px;
    padding: 1px 6px;
  }
}
body[data-screen=arena] .arena-panel .section-heading > button {
  white-space: nowrap;
  flex-shrink: 0;
}
.report {
  display: grid !important;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
  gap: 16px;
  text-align: left !important;
  max-width: 1100px !important;
  padding: 16px 20px !important;
}
.report-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 4px;
}
.report-main h1 {
  margin: 2px 0 !important;
}
.report-main .report-emblem {
  margin: 4px !important;
}
.report-where {
  margin: 0;
  font-weight: 700;
  color: #b05048;
}
.report-text {
  margin: 0;
  color: #687080;
  font-size: 13px;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.report-actions button {
  margin: 0 !important;
}
.report-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: auto;
}
.rgroup {
  padding: 6px 10px;
  background: #ffffff70;
  border: 2px solid #40485820;
  border-left: 5px solid #78b080;
}
.rgroup.lost {
  border-left-color: #c05048;
}
.rgroup.kept {
  border-left-color: #5878b8;
}
.rgroup.grow {
  border-left-color: #d0a040;
}
.rgroup h3 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #404858;
}
.rchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 4px;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
}
.rchip img {
  image-rendering: pixelated;
  flex-shrink: 0;
}
.rchip-name {
  font-size: 12px;
  color: #505868;
}
.rchip b {
  font-size: 14px;
}
.rchip.gain b {
  color: #3a8a4a;
}
.rchip.lost b {
  color: #c05048;
  text-decoration: line-through;
}
.rchip.lost img {
  filter: grayscale(1);
  opacity: .6;
}
.rchip.kept b {
  color: #4868a8;
}
.rmon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 2px 4px;
  background: #f8f8f0;
  border: 2px solid #606880;
}
.rmon span {
  font-size: 12px;
  color: #404858;
}
.rmon small {
  font-size: 11px;
  color: #687080;
}
.rmon.lost .mon-sprite {
  filter: grayscale(1) opacity(.55);
}
.rmon.lost span {
  text-decoration: line-through;
  color: #a05048;
}
@media (orientation:landscape) {
  body[data-screen=report] main.page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body[data-screen=report] .report {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin: 0 auto !important;
  }
}
@media (max-height:470px) {
  .report-main .report-emblem {
    display: none;
  }
  .report-main h1 {
    font-size: 18px !important;
  }
  .report .eyebrow {
    display: none;
  }
  .rgroup {
    padding: 4px 8px;
  }
}
@media (orientation:portrait) {
  .report {
    grid-template-columns: 1fr;
  }
}
section.report {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  align-items: stretch;
  gap: 12px !important;
}
.report-main,
.report-detail {
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  background: #f0f0e0;
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
  padding: 12px 16px;
  min-height: 0;
}
.report-main {
  justify-content: center;
}
.report-detail {
  gap: 0 !important;
  padding: 8px 12px;
}
.rgroup {
  background: none !important;
  border: 0 !important;
  border-left: 0 !important;
  padding: 8px 0 !important;
  border-bottom: 2px dashed #b8c0c8 !important;
}
.rgroup:last-child {
  border-bottom: 0 !important;
}
.rgroup h3 {
  display: inline-block;
  margin: 0 0 6px !important;
  padding: 2px 8px;
  font-size: 12px !important;
  color: #fff !important;
  background: #78b080;
  box-shadow: 2px 2px 0 #30385040;
}
.rgroup.lost h3 {
  background: #c05048;
}
.rgroup.kept h3 {
  background: #5878b8;
}
.rgroup.grow h3 {
  background: #c09038;
}
.rchip {
  border-width: 2px;
  box-shadow: inset -2px -2px 0 #d0d0c8, 2px 2px 0 #30385030;
}
.rmon {
  width: 84px;
  height: 96px;
  box-sizing: border-box;
  justify-content: flex-end;
  gap: 1px;
  padding: 3px 2px !important;
  box-shadow: inset -2px -2px 0 #d0d0c8, 2px 2px 0 #30385030;
}
.rmon-pic {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.rmon span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-height:470px) {
  .rmon {
    width: 70px;
    height: 78px;
  }
  .rmon-pic {
    height: 38px;
  }
  .report-main,
  .report-detail {
    padding: 8px 10px;
  }
}
.rmon-pic {
  height: 56px;
  align-items: center;
}
@media (max-height:470px) {
  .rmon-pic {
    height: 40px;
  }
}
.runbag-back .dialog {
  --modal-w: 760px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .runbag-back .dialog {
    --modal-w: min(760px,calc(100vw - 28px));
  }
}
.runbag {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.runbag-party {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.runbag-party > .muted {
  margin: 0;
  font-size: 12px;
}
.runbag-mon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
}
.runbag-mon.fainted {
  opacity: .6;
}
.runbag-mon.fainted .mon-sprite {
  filter: grayscale(1);
}
.runbag-order {
  flex: none;
  width: 38px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #687898;
  padding: 2px 0;
}
.runbag-mon:first-child .runbag-order,
.runbag-party > .runbag-mon:nth-of-type(1) .runbag-order {
  background: #c05048;
}
.runbag-mon .rmon-pic {
  flex: none;
  width: 56px;
  height: 48px;
}
.runbag-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.runbag-info .hp {
  max-width: 220px;
}
.runbag-info small {
  color: #687080;
  font-size: 11px;
}
.runbag-held {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #404858;
}
.runbag-held img {
  image-rendering: pixelated;
}
.runbag-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.runbag-btns .mini-btn {
  min-width: 34px;
}
.runbag-loot {
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}
@media (max-height:470px) {
  .runbag-mon {
    padding: 3px 6px;
    gap: 6px;
  }
  .runbag-mon .rmon-pic {
    height: 36px;
    width: 44px;
  }
}
.runbag-btns .mini-btn {
  white-space: nowrap;
  min-width: 34px !important;
  width: auto !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
@media (max-height:470px) {
  .shop-panel .shop-head .eyebrow {
    display: none;
  }
  .shop-panel .shop-head h2 {
    margin: 0;
  }
}
.shop-head .sell-button {
  padding: 5px 12px !important;
  min-height: 0 !important;
}
@media (orientation:landscape) {
  .shop-panel .pocket-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .town-mode .stage-list > .eyebrow,
  .wild-mode .stage-list > .eyebrow,
  .wild-mode .stage-list > .muted {
    display: none;
  }
  .town-mode .stage-list > h2,
  .wild-mode .stage-list > h2 {
    font-size: 18px;
    margin: 0 0 2px;
  }
  .town-mode .difficulty-card,
  .wild-mode .difficulty-card {
    margin: 4px 0;
    padding: 4px 8px !important;
  }
  .town-mode .difficulty-card strong,
  .wild-mode .difficulty-card strong {
    font-size: 13px;
  }
  .wild-mode .difficulty-card-inner > span:last-child small:not(.difficulty-reward) {
    display: none;
  }
  .town-mode .difficulty-art,
  .wild-mode .difficulty-art {
    width: 36px;
    height: 36px;
  }
  .wild-mode .briefing > .difficulty-notice,
  .wild-mode .briefing > .notice {
    font-size: 11px;
    line-height: 1.4;
    padding: 3px 8px;
    margin: 3px 0;
  }
}
.brief-short {
  display: none;
  margin: 4px 0;
  font-size: 12px;
  color: #505868;
}
.survival-info p {
  margin: 6px 0;
  line-height: 1.5;
  font-size: 13px;
}
@media (max-height:470px) and (orientation:landscape) {
  .wild-mode .briefing > .brief-short {
    display: block;
  }
  .wild-mode .briefing > .difficulty-notice,
  .wild-mode .briefing > .notice {
    display: none;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .town-mode .difficulty-art,
  .wild-mode .difficulty-art {
    display: none;
  }
  .town-mode .difficulty-card .difficulty-reward,
  .wild-mode .difficulty-card .difficulty-reward {
    font-size: 10px;
  }
  .town-mode .stage-list > h2,
  .wild-mode .stage-list > h2 {
    font-size: 16px;
  }
}
@media (max-height:400px) and (orientation:landscape) {
  .briefing .briefing-head h2 {
    font-size: 16px;
  }
  .briefing .briefing-head small {
    font-size: 11px;
  }
  .town-mode .briefing > .stage-requirement {
    display: none;
  }
  .briefing > .difficulty-notice {
    font-size: 11px;
    padding: 3px 8px;
  }
  .briefing .pack-chip img {
    width: 16px;
    height: 16px;
  }
  .briefing .pack-summary {
    font-size: 12px;
    gap: 3px 5px;
  }
  .briefing .pack-summary > button {
    padding: 2px 8px !important;
  }
  .briefing > .primary.large {
    padding: 4px 12px !important;
    margin-top: 4px;
  }
}
@media (max-height:400px) and (orientation:landscape) {
  .wild-mode .briefing > .brief-short {
    font-size: 11px;
    margin: 2px 0;
    line-height: 1.35;
  }
}
.runbag-mon {
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.runbag-mon .runbag-btns {
  touch-action: manipulation;
}
.runbag-grip {
  flex: none;
  width: 8px;
  align-self: stretch;
  margin: 2px 0;
  background:
    repeating-linear-gradient(
      0deg,
      #9098b0 0 2px,
      transparent 2px 4px);
}
.runbag-mon.dragging {
  z-index: 5;
  cursor: grabbing;
  border-color: #c05048;
  box-shadow: inset -2px -2px 0 #d0d0c8, 3px 4px 0 #30385050;
  background: #fff8e8;
}
.runbag-party.sorting .runbag-mon:not(.dragging) {
  transition: none;
}
.runbag-party > .runbag-mon.lead .runbag-order {
  background: #c05048;
}
.runbag-party.sorting > .runbag-mon:not(.lead) .runbag-order {
  background: #687898;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-back .dialog > .eyebrow {
    display: none;
  }
  .runbag-back .dialog > h2 {
    font-size: 17px !important;
    margin: 0 0 4px !important;
  }
  .runbag-back .dialog-actions {
    margin-top: 6px;
  }
  .runbag {
    gap: 4px;
  }
  .runbag-party {
    gap: 3px;
  }
  .runbag-party > .muted {
    font-size: 11px;
  }
  .runbag-mon {
    padding: 2px 6px;
    gap: 6px;
    min-height: 0;
  }
  .runbag-mon .rmon-pic {
    width: 34px;
    height: 28px;
  }
  .runbag-order {
    width: 30px;
    font-size: 11px;
    padding: 1px 0;
  }
  .runbag-info {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .runbag-info strong {
    flex: none;
    min-width: 96px;
    font-size: 13px;
    white-space: nowrap;
  }
  .runbag-info .hp {
    flex: 1;
    min-width: 50px;
    max-width: 160px;
  }
  .runbag-info > small {
    flex: none;
    white-space: nowrap;
  }
  .runbag-held {
    flex: none;
    font-size: 11px;
    white-space: nowrap;
  }
  .runbag-held img {
    width: 16px;
    height: 16px;
  }
  .runbag-btns .mini-btn {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: 0 !important;
    font-size: 11px;
  }
}
.runbag-tabs {
  align-items: center;
}
.runbag-tabs .runbag-close {
  margin-left: auto;
}
.runbag-back .dialog-actions:empty {
  display: none;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-mon {
    padding: 1px 6px;
  }
  .runbag-mon .rmon-pic {
    height: 26px;
  }
  .runbag-tabs .runbag-close {
    padding: 4px 14px !important;
    min-height: 0 !important;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-back .dialog {
    padding: 8px 14px !important;
  }
  .runbag-party {
    gap: 2px;
  }
}
.runbag-grid {
  flex: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 54px !important;
  gap: 6px;
}
.runbag-grid .party-slot {
  min-height: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.runbag-grid .party-slot.fainted .slot-mon {
  filter: grayscale(1) opacity(.6);
}
.runbag-grid .party-slot.newbie::after {
  content: "新";
  position: absolute;
  right: 4px;
  top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #503020;
  background: #f0d070;
  padding: 0 3px;
}
.runbag-grid .party-slot.dragging {
  z-index: 5;
  cursor: grabbing;
  box-shadow: 0 0 0 2px #ffd23a, 4px 6px 0 #30385060 !important;
  opacity: .95;
}
.runbag-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
}
.runbag-detail .rd-pic {
  flex: none;
  width: 52px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.runbag-detail .rd-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.runbag-detail .rd-info .hp {
  max-width: 240px;
}
.runbag-detail .rd-info small {
  color: #687080;
  font-size: 11px;
}
.runbag-noheld {
  margin: 0;
  font-size: 12px;
  padding: 4px 10px;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-grid {
    grid-auto-rows: 44px !important;
    gap: 4px;
  }
  .runbag-detail {
    padding: 3px 8px;
    gap: 8px;
  }
  .runbag-detail .rd-pic {
    height: 34px;
    width: 40px;
  }
}
@media (orientation:portrait) {
  .runbag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.runbag-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 5px;
}
.runbag-grid .party-slot {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-height: 96px;
  padding: 14px 4px 5px !important;
  text-align: center;
}
.runbag-grid .party-slot .slot-ball {
  position: absolute;
  left: 4px;
  top: 4px;
}
.runbag-grid .party-slot .slot-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.runbag-grid .party-slot .slot-info strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.runbag-grid .party-slot .slot-info .hp {
  width: 100%;
}
.runbag-grid .party-slot .slot-item {
  position: absolute;
  right: 3px;
  top: 18px;
}
.runbag-grid .party-slot.lead::before {
  content: "首发";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #fff8e8;
  background: #c05048;
  text-align: center;
}
.runbag-grid .party-slot.lead .slot-ball {
  display: none;
}
.runbag-grid .party-slot.newbie::after {
  top: auto;
  bottom: 34px;
}
.runbag-grid .party-slot.empty {
  min-height: 96px;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-grid .party-slot,
  .runbag-grid .party-slot.empty {
    min-height: 78px;
  }
  .runbag-grid .party-slot .slot-info strong {
    font-size: 11px;
  }
}
@media (orientation:portrait) {
  .runbag-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 3px;
  }
  .runbag-grid .party-slot .slot-info strong {
    font-size: 9px;
  }
  .runbag-grid .party-slot .slot-info small {
    font-size: 9px;
  }
}
.runbag-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 5px;
}
.runbag-grid .party-slot {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-height: 96px;
  padding: 16px 4px 5px !important;
  text-align: center;
}
.runbag-grid .party-slot .slot-ball {
  position: absolute;
  left: 4px;
  top: 4px;
}
.runbag-grid .party-slot .slot-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.runbag-grid .party-slot .slot-info strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.runbag-grid .party-slot .slot-info .hp {
  width: 100%;
}
.runbag-grid .party-slot .slot-item {
  position: absolute;
  right: 3px;
  top: 18px;
}
.runbag-grid .party-slot.lead::before {
  content: "首发";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #fff8e8;
  background: #c05048;
  text-align: center;
}
.runbag-grid .party-slot.lead .slot-ball {
  display: none;
}
.runbag-grid .party-slot.newbie::after {
  top: auto;
  bottom: 34px;
}
.runbag-grid .party-slot.empty {
  min-height: 96px;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-grid .party-slot,
  .runbag-grid .party-slot.empty {
    min-height: 78px;
  }
  .runbag-grid .party-slot .slot-info strong {
    font-size: 11px;
  }
}
@media (orientation:portrait) {
  .runbag-grid {
    gap: 3px;
  }
  .runbag-grid .party-slot .slot-info strong {
    font-size: 9px;
  }
  .runbag-grid .party-slot .slot-info small {
    font-size: 9px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .runbag-grid .party-slot,
  .runbag-grid .party-slot.empty {
    min-height: 66px;
    padding-top: 14px !important;
  }
  .runbag-grid .party-slot .slot-info small {
    display: none;
  }
  .runbag-detail .rd-pic {
    display: none;
  }
}
.runbag-grid .party-slot.lead::before {
  content: none !important;
  display: none !important;
}
.runbag-grid .party-slot.lead .slot-ball {
  display: block;
}
.shop-list {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 6px;
}
.shop-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px !important;
}
.shop-item > img {
  width: 30px;
  height: 30px;
}
.shop-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-buy {
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  max-width: 150px;
  gap: 3px 4px !important;
}
.shop-buy .price {
  flex: 0 0 100%;
  text-align: right;
  line-height: 1.1;
}
.shop-buy button {
  padding: 3px 8px !important;
}
.expand-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
.expand-row .shop-buy {
  max-width: none;
  flex-direction: column !important;
  align-items: flex-end;
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-panel {
    gap: 5px;
    padding: 8px 10px !important;
  }
  .shop-head h2 {
    font-size: 18px;
  }
  .shop-head .coins {
    font-size: 13px;
  }
  .pocket-tabs button {
    padding: 3px 9px !important;
    font-size: 11px;
  }
  .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 4px;
  }
  .shop-item {
    padding: 3px 6px !important;
    gap: 6px;
  }
  .shop-item > img {
    width: 24px;
    height: 24px;
  }
  .shop-text strong {
    font-size: 12px;
  }
  .shop-text small,
  .shop-text .owned {
    font-size: 9px;
  }
  .shop-buy .price {
    font-size: 10px;
  }
  .shop-buy button {
    padding: 2px 6px !important;
    font-size: 10px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .shop-text > small {
    display: none;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-head {
    align-items: center;
  }
  .shop-head .eyebrow {
    display: none;
  }
  .shop-head h2 {
    margin: 0;
    white-space: nowrap;
  }
  .shop-head > small.muted {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }
  .shop-head > button {
    flex: none;
    white-space: nowrap;
    padding: 4px 12px !important;
    min-height: 0;
  }
  .shop-panel > .pocket-tabs {
    flex-wrap: wrap;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-panel > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
  .shop-text strong,
  .shop-text .owned {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shop-buy {
    max-width: none;
    flex-wrap: nowrap !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
  }
  .shop-buy > button {
    min-width: 0;
  }
  .shop-item:not(.expand-row) .shop-buy {
    display: grid !important;
    grid-template-columns: auto auto;
    justify-items: end;
  }
  .shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 1/-1;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-head > .coins {
    display: none;
  }
  .shop-panel > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  }
  .shop-item > img {
    width: 22px;
    height: 22px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-item:not(.expand-row) .shop-buy button {
    min-height: 0;
    height: 20px;
    line-height: 1;
    padding: 0 7px !important;
  }
  .shop-item:not(.expand-row) {
    padding: 3px 6px !important;
  }
}
.shop-panel.mart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 190px !important;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 33%, 380px) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  align-content: stretch !important;
  gap: 12px !important;
  padding: 8px 10px !important;
  overflow: hidden;
}
.mart-work {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.mart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.mart-head .pocket-tabs {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.mart-modes {
  display: flex;
  flex: none;
  padding: 3px;
  background: #304060;
  border-radius: 4px;
  box-shadow: inset 0 2px 0 #18203a;
}
.mart-modes .mart-mode {
  min-height: 0;
  padding: 4px 14px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #c8d4ec !important;
  font-weight: 700;
  letter-spacing: 1px;
}
.mart-modes .mart-mode .ui-pixel-icon {
  opacity: .7;
}
.mart-modes .mart-mode.on {
  background: linear-gradient(#f8f0d8, #e8d8b0) !important;
  color: #503020 !important;
  box-shadow: 0 2px 0 #a07840 !important;
}
.mart-modes .mart-mode.on .ui-pixel-icon {
  opacity: 1;
}
.mart-sell-tools {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.mart-sell-tools small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mart-work > .shop-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}
.mart-sell {
  flex: 1;
  min-height: 0;
  display: flex;
}
.pack-embed {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}
.pack-embed .pack-window {
  width: 100%;
  max-height: none;
  height: 100%;
  border: 0;
  border-image: none;
  background: none;
  box-shadow: none;
  padding: 0 !important;
}
.pack-embed .pack-main {
  grid-template-columns: max-content minmax(140px, 1fr);
}
.pack-embed .pack-right {
  gap: 6px;
}
.pack-embed .shop-stash {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.pack-embed .shop-stash .stash-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 10px;
}
.mart-desk {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(
      120% 70% at 50% 100%,
      #fff6dc 0,
      #f6e6c0 45%,
      #e9cf9c 100%);
  box-shadow: inset 0 0 0 3px #c8a868, inset 0 -40px 0 #d8b880;
}
.mart-desk::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: 24px;
  background:
    repeating-linear-gradient(
      90deg,
      #e04848 0,
      #e04848 18px,
      #f8f0e0 18px,
      #f8f0e0 36px);
  box-shadow: 0 3px 0 #b03030;
  opacity: .95;
}
.mart-bubble {
  position: relative;
  z-index: 2;
  margin: 30px 10px 0;
  padding: 6px 10px;
  background: #fff;
  border: 3px solid #404858;
  border-radius: 6px;
  box-shadow: 2px 3px 0 #40485833;
  min-height: 3.2em;
  display: flex;
  align-items: center;
}
.mart-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #303848;
}
.mart-bubble::after {
  content: "";
  position: absolute;
  left: 44%;
  bottom: -11px;
  border: 8px solid transparent;
  border-top: 9px solid #404858;
  border-bottom: 0;
}
.mart-bubble.pop {
  animation: mart-pop .28s steps(3);
}
@keyframes mart-pop {
  0% {
    transform: scale(.92);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: none;
  }
}
.mart-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  container-type: size;
  padding: 0 4px 4px;
}
.mart-art {
  position: relative;
  width: 100%;
  width: 100%;
  width: min(100%, calc(100cqh*323/252));
  aspect-ratio: 323/252;
  --ar: 323/252;
}
.mart-clerk {
  position: absolute;
  left: 23%;
  bottom: 9%;
  width: 40%;
  image-rendering: auto;
  transform-origin: 50% 100%;
  animation: mart-idle 2.4s steps(2) infinite;
}
@keyframes mart-idle {
  50% {
    transform: translateY(-1.5%);
  }
}
.mart-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.mart-counter > img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 4px 0 #8a6a3a66);
}
.mart-tally {
  position: absolute;
  left: 4%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 7px;
  background: #304060;
  border: 2px solid #f8f0e0;
  box-shadow: 0 2px 0 #18203a;
  color: #fff;
  line-height: 1.15;
}
.mart-tally small {
  font-size: 9px;
  color: #c8d4ec;
}
.mart-tally b {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #ffe080;
}
.mart-desk.selling .mart-counter::after {
  content: "把物品拖到这里卖掉";
  position: absolute;
  right: 4%;
  bottom: 10%;
  padding: 1px 6px;
  font-size: 9px;
  color: #fff;
  background: #e04848;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 #902828;
}
.mart-counter.hover > img {
  filter: drop-shadow(0 0 6px #ffd84a) drop-shadow(0 0 2px #ffd84a) brightness(1.06);
}
.mart-counter.hover::after {
  background: #f0b020 !important;
}
.mart-gain {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 16px;
  color: #ffe080;
  text-shadow: 2px 2px 0 #503010, -1px -1px 0 #503010;
  animation: mart-gain 1.3s ease-out forwards;
  pointer-events: none;
}
@keyframes mart-gain {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px);
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-panel.mart {
    padding: 5px 8px !important;
    gap: 8px !important;
  }
  .mart-modes .mart-mode {
    padding: 2px 10px !important;
    font-size: 12px;
  }
  .mart-bubble {
    margin: 26px 6px 0;
    padding: 3px 7px;
    min-height: 2.9em;
  }
  .mart-bubble p {
    font-size: 11px;
    line-height: 1.35;
  }
  .mart-desk::before {
    height: 18px;
  }
  .mart-work > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  }
}
main.page:has(> .shop-panel.mart) {
  display: flex;
  flex-direction: column;
}
main.page > .shop-panel.mart {
  flex: 1 1 0;
  height: auto !important;
  min-height: 0;
}
.mart-tally {
  white-space: nowrap;
}
.mart-clerk {
  left: 27%;
}
.mart-head .pocket-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.mart-head .pocket-tabs::-webkit-scrollbar {
  display: none;
}
.mart-head .pocket-tabs button,
.mart-sell-tools .tidy-button,
.mart-modes .mart-mode {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width:760px) and (orientation:landscape) {
  .shop-panel.mart {
    grid-template-columns: minmax(0, 1fr) 160px !important;
    grid-template-columns: minmax(0, 1fr) clamp(160px, 30%, 380px) !important;
  }
  .mart-sell-tools small {
    display: none;
  }
  .mart-head .pocket-tabs button {
    padding: 3px 7px !important;
  }
  .pack-embed .pack-main {
    grid-template-columns: max-content minmax(110px, 1fr);
  }
  .pack-embed .stash-item {
    zoom: .85;
  }
}
.mart-tally {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  left: 3%;
  bottom: 6%;
  border-radius: 3px;
}
.mart-tally small {
  font-size: 10px;
  color: #dfe8ff;
}
.mart-tally b {
  font-size: 14px;
  color: #ffe27a;
}
@media (max-height:470px) {
  .mart-tally {
    padding: 1px 5px;
    gap: 4px;
  }
  .mart-tally small {
    font-size: 9px;
  }
  .mart-tally b {
    font-size: 11px;
  }
  .mart-desk.selling .mart-counter::after {
    display: none;
  }
}
@media (max-width:860px) and (max-height:470px) and (orientation:landscape) {
  .shop-panel.mart {
    grid-template-columns: minmax(0, 1fr) 150px !important;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 27%, 300px) !important;
  }
  .mart-work > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
    gap: 4px;
  }
  .mart-work .shop-item:not(.expand-row) {
    gap: 4px;
    padding: 2px 4px !important;
  }
  .mart-work .shop-item > img {
    width: 20px;
    height: 20px;
  }
  .mart-work .shop-text strong {
    font-size: 11px;
  }
  .mart-work .shop-buy button {
    padding: 0 5px !important;
    font-size: 9px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-item:not(.expand-row) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    row-gap: 1px;
  }
  .mart-work .shop-item:not(.expand-row) > img {
    grid-row: 1/3;
    align-self: center;
  }
  .mart-work .shop-item:not(.expand-row) .shop-text {
    grid-column: 2/4;
    grid-row: 1;
  }
  .mart-work .shop-item:not(.expand-row) .shop-text .owned {
    display: none;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy {
    display: contents !important;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    font-size: 9px;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button:first-of-type {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button:last-of-type {
    grid-column: 4;
    grid-row: 2;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button:only-of-type {
    grid-column: 4;
  }
}
@media (orientation:portrait) {
  .shop-panel.mart {
    grid-template-columns: 1fr !important;
    grid-template-rows: 200px minmax(0, 1fr) !important;
  }
  .mart-desk {
    grid-row: 1;
  }
  .mart-work {
    grid-row: 2;
  }
  .mart-head .pocket-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.mart-desk {
  --awn:24px;
  --bub:52px;
  background: none !important;
  box-shadow: none !important;
  justify-content: flex-end;
  container-type: size;
  overflow: visible;
}
.mart-desk::before {
  content: none;
}
.mart-booth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--awn) + 8px) 8px 0;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(
      120% 70% at 50% 100%,
      #fff6dc 0,
      #f6e6c0 45%,
      #e9cf9c 100%);
  box-shadow: inset 0 0 0 3px #c8a868, inset 0 -26px 0 #d8b880;
}
.mart-booth::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--awn);
  background:
    repeating-linear-gradient(
      90deg,
      #e04848 0,
      #e04848 18px,
      #f8f0e0 18px,
      #f8f0e0 36px);
  box-shadow: 0 3px 0 #b03030;
}
.mart-booth .mart-bubble {
  margin: 0;
  width: 100%;
  height: var(--bub);
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.mart-booth .mart-bubble::after {
  left: calc(47% - 8px);
}
.mart-scene {
  flex: none;
  width: 100%;
  container-type: normal;
  padding: 4px 0 0;
  display: flex;
  justify-content: center;
}
.mart-art {
  width: calc(100% - 16px) !important;
}
@supports (width: min(1px, 2px)) and (width: 1cqw) {
  .mart-art {
    width: min(100cqw - 16px, (100cqh - var(--awn) - var(--bub) - 20px)*323/252) !important;
  }
}
.mart-bubble.pop {
  transform-origin: 47% 100%;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-desk {
    --awn:18px;
    --bub:40px;
  }
  .mart-booth {
    padding-top: calc(var(--awn) + 5px);
    padding-left: 5px;
    padding-right: 5px;
  }
}
.mart-head {
  height: 36px;
  flex-wrap: nowrap;
}
.mart-sell-tools .tidy-button {
  min-height: 0;
  padding: 4px 12px !important;
  line-height: 1.2;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-head {
    height: 28px;
  }
  .mart-sell-tools .tidy-button {
    padding: 2px 9px !important;
    font-size: 12px;
  }
}
@media (orientation:portrait) {
  .mart-head {
    height: auto;
    flex-wrap: wrap;
  }
}
@media (min-height:600px) and (min-width:1100px) {
  .mart-head {
    height: 46px;
  }
  .mart-modes .mart-mode {
    padding: 6px 20px !important;
    font-size: 17px;
  }
  .mart-head .pocket-tabs button {
    font-size: 15px;
    padding: 6px 14px !important;
  }
  .mart-sell-tools .tidy-button {
    font-size: 15px;
    padding: 6px 16px !important;
  }
  .mart-work > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
  }
  .mart-work .shop-item {
    padding: 12px 14px !important;
    gap: 12px;
  }
  .mart-work .shop-item > img {
    width: 48px;
    height: 48px;
  }
  .mart-work .shop-text strong {
    font-size: 19px;
  }
  .mart-work .shop-text small {
    font-size: 13px;
  }
  .mart-work .shop-text .owned {
    font-size: 13px;
  }
  .mart-work .shop-buy .price {
    font-size: 15px;
  }
  .mart-work .shop-buy button {
    font-size: 15px;
    padding: 6px 14px !important;
  }
  .mart-desk {
    --awn:30px;
    --bub:64px;
  }
  .mart-bubble p {
    font-size: 16px;
  }
  .mart-tally small {
    font-size: 12px;
  }
  .mart-tally b {
    font-size: 17px;
  }
}
@media (min-height:600px) and (min-width:1100px) {
  .shop-panel.mart {
    grid-template-columns: minmax(0, 1fr) 190px !important;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 34%, 520px) !important;
  }
}
.mart-head {
  height: auto !important;
  min-height: 36px;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  row-gap: 4px;
}
.mart-head .pocket-tabs {
  flex-wrap: wrap !important;
  overflow: visible !important;
  gap: 4px;
}
.mart-sell-tools {
  min-height: 36px;
  align-self: stretch;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-head {
    min-height: 28px;
  }
  .mart-sell-tools {
    min-height: 28px;
  }
}
@media (min-height:600px) and (min-width:1100px) {
  .mart-head {
    min-height: 46px;
  }
  .mart-sell-tools {
    min-height: 46px;
  }
}
.topbar .top-back {
  flex: none;
  min-height: 0;
  padding: 6px 14px !important;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-height:470px) and (orientation:landscape) {
  .topbar .top-back {
    padding: 4px 10px !important;
    font-size: 12px;
  }
}
.shop-panel:not(.mart) > .shop-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 8px !important;
  align-content: start;
  overflow: auto;
}
.shop-panel:not(.mart) .shop-item {
  padding: 8px 12px !important;
  gap: 10px;
}
.shop-panel:not(.mart) .shop-item > img {
  width: 36px;
  height: 36px;
}
.shop-panel:not(.mart) .shop-text strong {
  font-size: 15px;
}
.shop-panel:not(.mart) .shop-text small {
  font-size: 12px;
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-panel:not(.mart) .shop-item {
    padding: 6px 10px !important;
  }
  .shop-panel:not(.mart) .shop-item > img {
    width: 30px;
    height: 30px;
  }
  .shop-panel:not(.mart) .shop-text strong {
    font-size: 14px;
  }
  .shop-panel:not(.mart) .shop-text small {
    font-size: 11px;
    display: block !important;
  }
}
@media (max-height:470px) and (orientation:landscape) and (min-width:761px) {
  .mart-work > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 6px !important;
  }
  .mart-work .shop-item:not(.expand-row) {
    padding: 5px 8px !important;
    gap: 8px;
  }
  .mart-work .shop-item > img {
    width: 28px;
    height: 28px;
  }
  .mart-work .shop-text strong {
    font-size: 13px;
  }
  .mart-work .shop-text small {
    display: block !important;
    font-size: 10px;
  }
  .mart-work .shop-buy .price {
    font-size: 11px;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button {
    height: 22px;
    font-size: 11px;
    padding: 0 9px !important;
  }
}
@media (orientation:landscape) {
  .adventure-layout {
    align-items: stretch !important;
  }
  .adventure-layout > .panel {
    height: auto !important;
    max-height: none !important;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .adventure-layout > .stage-list .difficulty-card {
    flex: 1 1 0;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  .adventure-layout > .briefing > :last-child {
    margin-top: auto;
  }
}
@media (max-height:470px) and (orientation:landscape) and (min-width:761px) {
  .mart-work > .shop-list {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)) !important;
  }
  .mart-work .shop-text small {
    display: none !important;
  }
}
.mart-work > .shop-list.expand-list {
  grid-template-columns: 1fr !important;
}
.mart-work .expand-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center;
}
.mart-work .expand-row .shop-text small {
  display: block !important;
  white-space: normal;
  font-size: 11px;
}
.mart-work .expand-row .shop-buy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
}
.mart-work .expand-row .shop-buy button {
  white-space: nowrap;
  height: auto !important;
  padding: 4px 10px !important;
  font-size: 12px;
}
.layout-editor {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147482000;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 50% 45%,
      #6aa060 0,
      #3e7044 60%,
      #28402c 100%);
}
.layout-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      #ffffff08 0 2px,
      transparent 2px 24px),
    repeating-linear-gradient(
      90deg,
      #ffffff08 0 2px,
      transparent 2px 24px);
}
.layout-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  --ar: 1;
  border: 3px solid #ffffff55;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.layout-box {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #304060cc;
  border: 3px dashed #f8f8f0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 3px 0 #18203a;
}
.layout-box.round {
  border-radius: 50%;
}
.layout-box.moved {
  background: #405890d9;
}
.layout-box.on {
  border-style: solid;
  border-color: #ffd84a;
  box-shadow: 0 0 0 3px #ffd84a66, 0 3px 0 #18203a;
  z-index: 2;
}
.layout-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px calc(6px + var(--safe-bottom,0px));
  background: #f0f0e0;
  border-top: 4px solid #303850;
}
.layout-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #505868;
}
.layout-size {
  display: flex;
  align-items: center;
  gap: 6px;
}
.layout-size[hidden] {
  display: none;
}
.layout-size b {
  font-size: 12px;
}
.layout-size input {
  width: 140px;
}
.layout-size-out {
  font-size: 12px;
  min-width: 3em;
}
.layout-acts {
  display: flex;
  gap: 6px;
}
.layout-acts button {
  min-height: 0;
  padding: 5px 14px !important;
  font-size: 13px;
}
.pc-screen.move-editor {
  gap: 5px;
}
.me-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.me-head h2 {
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
}
.me-head small {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-head .me-done {
  margin-left: auto;
}
.me-head .me-done {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 3px 12px !important;
  font-size: 12px;
}
.move-editor h3 {
  margin: 2px 0 0 !important;
  font-size: 11px;
}
.me-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.me-move {
  min-height: 0;
  padding: 3px 6px !important;
  text-align: left;
  font-size: 12px;
}
.me-move.on {
  box-shadow: 0 0 0 2px #e0a020 !important;
  background: #fff4d0 !important;
}
.me-move.equipped:not(.on) {
  background: #e8f0e0 !important;
}
.me-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.me-row img {
  width: 18px;
  height: 18px;
  flex: none;
}
.me-row b {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.me-row small {
  font-size: 10px;
  color: var(--muted);
}
.me-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9098b0;
  border: 2px dashed #b8c0d0;
  min-height: 26px;
}
.me-detail {
  padding: 5px 7px;
  background: #fff;
  border: 2px solid #687890;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.me-detail-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.me-detail-head img {
  width: 20px;
  height: 20px;
}
.me-detail-head strong {
  font-size: 14px;
}
.me-stats {
  margin: 0;
  font-size: 11px;
  color: #505868;
}
.me-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.me-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.me-acts button {
  min-height: 0;
  padding: 3px 10px !important;
  font-size: 12px;
}
.me-replace-tip {
  font-size: 11px;
}
.me-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: auto;
  min-height: 60px;
}
.move-demo-box {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.move-demo-wall {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 4px solid #303850;
  background:
    linear-gradient(
      #a8d8f0 0,
      #a8d8f0 55%,
      #88c070 55%,
      #88c070 100%);
  box-shadow: 0 4px 0 #30385080;
  image-rendering: pixelated;
}
.move-demo {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
}
.move-demo-cap {
  margin: 0;
  padding: 3px 8px;
  background: #303850;
  color: #f8f8f0;
  font-size: 12px;
  text-align: center;
}
.move-demo-cap {
  position: relative;
  padding-right: 96px;
  padding-left: 96px;
}
.move-demo-cap .move-train-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 2px 10px !important;
  font-size: 12px;
  line-height: 1.3;
}
.train-meter {
  position: absolute;
  left: 8px;
  top: 64px;
  z-index: 30;
  min-width: 128px;
  max-width: 200px;
  padding: 5px 7px;
  background: rgba(27, 21, 40, .78);
  border: 2px solid #1b1528;
  box-shadow: inset 0 0 0 1px #6a6488;
  color: #f8f8f0;
  font-size: 11px;
  line-height: 1.35;
}
.train-meter .dm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  color: #f8d048;
  font-weight: 700;
}
.train-meter button {
  all: unset;
  box-sizing: border-box;
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #f8f8f0;
  color: #f8f8f0;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}
.train-meter .dm-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.train-meter .dm-row b {
  font-variant-numeric: tabular-nums;
}
.train-meter .dm-row.big b {
  color: #f8d048;
  font-size: 14px;
}
.train-meter .dm-moves {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid #6a6488;
  max-height: 120px;
  overflow: auto;
}
.train-meter .dm-mv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 6px;
}
.train-meter .dm-mv i {
  grid-column: 1/-1;
  font-style: normal;
  color: #b8b4c8;
  font-size: 10px;
}
.train-meter .dm-more {
  margin-top: 3px;
  width: 100%;
}
.train-exit {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 30;
  padding: 5px 14px;
  border: 2px solid #1b1528;
  border-radius: 8px;
  background: #f8f8f0;
  color: #1b1528;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 0 #1b1528;
  cursor: pointer;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-item:not(.expand-row) {
    padding: 2px 6px !important;
    row-gap: 0 !important;
  }
  .mart-work .shop-item:not(.expand-row) > img {
    width: 22px;
    height: 22px;
  }
  .mart-work .shop-item:not(.expand-row) .shop-text strong {
    font-size: 12px;
    line-height: 1.15;
  }
  .mart-work .shop-item:not(.expand-row) .shop-text .owned,
  .mart-work .shop-item:not(.expand-row) .shop-text small {
    display: none !important;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button {
    height: 19px !important;
    min-height: 0 !important;
    font-size: 10px !important;
    padding: 0 8px !important;
    line-height: 1;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy .price {
    font-size: 10px;
    line-height: 1.1;
  }
  .mart-work > .shop-list {
    gap: 4px !important;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-item:not(.expand-row) {
    padding: 1px 6px !important;
  }
  .mart-work .shop-item:not(.expand-row) .shop-buy button {
    height: 17px !important;
  }
  .mart-work > .shop-list {
    gap: 3px !important;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-item:not(.expand-row) .shop-buy button {
    border-width: 3px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    height: 18px !important;
    box-sizing: border-box;
  }
}
.me-slots {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
}
.me-slot {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 40px;
  padding: 2px 2px 2px 18px;
  background: #e0e6ee;
  border: 2px dashed #9098b0;
  border-radius: 4px;
}
.me-slot.hover {
  background: #fff0b8;
  border-color: #d09020;
  border-style: solid;
}
.me-key {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  color: #687080;
}
.me-slot > .me-move {
  flex: 1;
}
.me-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9098b0;
}
.me-move {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px 8px;
  background: #f8f8f0;
  border: 2px solid #9098b0;
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
}
.me-move img {
  width: 24px;
  height: 24px;
  flex: none;
}
.me-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.me-text b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-text small {
  font-size: 10px;
  color: #687080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-move.on {
  border-color: #e0a020;
  background: #fff4d0;
  box-shadow: 0 0 0 2px #f0c04066;
}
.me-move.equipped:not(.on) {
  background: #e8f0e0;
}
.me-pool {
  display: flex !important;
  flex-direction: column;
  gap: 4px !important;
  overflow: auto;
  min-height: 80px;
}
.me-pool .me-move {
  padding: 5px 8px;
}
.move-editor h3 small {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}
.me-ghost {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-3deg);
  box-shadow: 0 6px 12px #00000055;
  opacity: .95;
}
body.me-dragging,
body.me-dragging * {
  cursor: grabbing !important;
}
.move-demo-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #3a5a3a;
}
.move-demo-stage .battle-screen {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
.move-demo-stage .battle-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.move-demo-stage .hud,
.move-demo-stage .battle-loading {
  display: none !important;
}
.me-pool {
  flex: none !important;
  overflow: visible !important;
}
.me-pool > .me-move,
.me-slots,
.me-detail {
  flex: none;
}
.move-editor {
  overflow: auto;
}
.move-editor .me-pin {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: -10px;
  z-index: 3;
  padding: 6px 0;
  background: #f0f0e0;
  box-shadow: 0 4px 4px -3px #30385040;
}
.move-editor .me-pin .me-slots {
  position: static;
  padding: 0;
  background: none;
  box-shadow: none;
}
.move-editor .me-pin .me-detail {
  max-height: 64px;
  overflow: auto;
}
@supports (width: min(1px, 2px)) {
  .move-editor .me-pin .me-detail {
    max-height: max(64px, calc(var(--game-height,var(--app-vh,100vh)) * .27));
  }
}
.me-slot .me-text small {
  display: none;
}
.me-slot .me-text b {
  white-space: normal;
  overflow: visible;
  font-size: 12px;
  line-height: 1.15;
}
.me-slot .me-move {
  padding: 3px 5px;
  gap: 5px;
}
.me-slot .me-move img {
  width: 20px;
  height: 20px;
}
.brief-pool {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brief-pool-head {
  font-size: 11px;
  color: #505868;
}
.brief-pool-head b {
  color: #c08010;
}
.brief-pool-list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.brief-pool-list .dex-icon {
  flex: none;
  width: 30px;
  height: 30px;
  overflow: hidden;
  background: #ffffff60;
  border-radius: 3px;
  align-items: center;
}
@media (min-height:560px) {
  .brief-pool-list .dex-icon {
    width: 40px;
    height: 40px;
  }
}
.redeem-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.redeem-input {
  width: 150px;
  padding: 5px 8px;
  font: inherit;
  border: 2px solid #687890;
  background: #fff;
}
.redeem-row button {
  min-height: 0;
  padding: 4px 12px !important;
}
.me-move {
  touch-action: pan-y !important;
}
.me-move.me-held {
  opacity: .4;
}
.pc-screen.move-editor {
  overflow-y: auto !important;
  scrollbar-width: auto;
  scrollbar-color: #8890a8 #e0e4ec;
  padding-right: 4px;
}
.pc-screen.move-editor::-webkit-scrollbar {
  width: 12px;
}
.pc-screen.move-editor::-webkit-scrollbar-track {
  background: #e0e4ec;
  border-radius: 6px;
}
.pc-screen.move-editor::-webkit-scrollbar-thumb {
  background: #8890a8;
  border-radius: 6px;
  border: 2px solid #e0e4ec;
}
.pc-sub.friendship.loyal {
  color: #f0a0b0;
}
.returned-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 12px;
}
.dex-icon {
  position: relative;
}
.dex-icon .dex-ball {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 0 1px #fff);
}
.lan-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.lan-mine,
.lan-join {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  min-width: 0;
}
.lan-mine {
  align-items: center;
  text-align: center;
}
.lan-mine h2,
.lan-join h2 {
  margin: 0;
  font-size: 17px;
}
.lan-code {
  font-size: 30px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #283850;
  line-height: 1.1;
}
.lan-qr {
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
  background: #fff;
  border: 2px solid #586880;
}
.lan-qr.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 13px;
}
.lan-status {
  margin: 0;
  font-size: 12px;
  color: #506078;
  min-height: 1.3em;
}
.lan-row {
  display: flex;
  gap: 8px;
}
.lan-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 6px 10px;
  border: 2px solid #586880;
  background: #fff;
}
.lan-scan-btn {
  align-self: flex-start;
}
.lan-rules {
  margin: 2px 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #405068;
}
.lan-manual {
  align-self: flex-end;
  margin-top: auto;
  flex: none;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  padding: 3px 10px;
}
@media (max-height:470px) {
  .lan-qr {
    width: 112px;
    height: 112px;
  }
  .lan-code {
    font-size: 26px;
  }
  .lan-mine,
  .lan-join {
    padding: 8px 12px;
    gap: 4px;
  }
}
.lan-scanner {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: #101828e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f8f0d0;
}
.lan-scan-frame {
  position: relative;
  width: 70vh;
  width: min(70vh, 80vw);
  aspect-ratio: 1;
  --ar: 1;
  overflow: hidden;
  border: 3px solid #f0d898;
  background: #000;
}
.lan-scan-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lan-scan-target {
  position: absolute;
  top: 18%;
  right: 18%;
  bottom: 18%;
  left: 18%;
  border: 2px dashed #f0d898aa;
}
.lan-bag {
  position: absolute;
  top: 64px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}
.lan-bag img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.lan-bag b {
  font-size: 13px;
}
.lan-bag:disabled {
  opacity: .5;
}
.lan-bag.cooling {
  filter: grayscale(.7);
}
body.in-battle .hud-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 4px;
}
body.in-battle .hud-controls::after {
  content: "";
  flex-basis: 100%;
  order: 8;
}
.hud-controls .lan-bag {
  position: static;
  order: -1;
  padding: 0 8px;
}
.hud-controls .remote-net {
  position: static;
  order: -1;
  align-self: center;
  white-space: nowrap;
  font-weight: 700;
}
.live-badge.watch-badge i {
  background: #ffd34a;
}
.live-badge[hidden] {
  display: none;
}
.leave-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 10, 20, .45);
}
.leave-card {
  width: 100%;
  width: min(340px, 100%);
  padding: 16px 18px;
  border-radius: 14px;
  background: #14203a;
  color: #eef3ff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
  text-align: center;
}
.leave-card b {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
.leave-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #c9d4ec;
}
.leave-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.leave-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.leave-actions .leave-stay {
  background: #3d7bf0;
  color: #fff;
}
.leave-actions .leave-go {
  background: #b94545;
  color: #fff;
}
.remote-net {
  position: absolute;
  top: 64px;
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(10, 16, 30, .62);
  color: #e8eefc;
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
}
.remote-net i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa3b5;
}
.remote-net[data-level=good] i {
  background: #43d17a;
}
.remote-net[data-level=fair] i {
  background: #f2c94c;
}
.remote-net[data-level=poor] i,
.remote-net[data-level=offline] i {
  background: #ef5b5b;
}
.dialog-back.use-back .dialog {
  max-width: 780px;
  padding: 10px 14px;
}
.dialog-back.use-back .dialog h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.use-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px !important;
  font-size: 13px !important;
}
.use-cols {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
}
.use-cols.run {
  grid-template-columns: 1fr;
}
.use-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-content: start;
}
.use-cols.run .use-party {
  grid-template-columns: repeat(3, 1fr);
}
.use-party h4 {
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
}
.use-mon-btn {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 2px 6px !important;
  min-height: 0 !important;
  text-align: left;
  overflow: hidden;
}
.use-mon {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.use-mon .mon-sprite {
  flex: none;
}
.use-mon-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.use-mon-text b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.use-mon-text small {
  font-size: 10px;
  opacity: .8;
}
.use-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.use-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.use-box-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  padding: 4px;
  background:
    repeating-linear-gradient(
      0deg,
      #a8c8d0 0,
      #a8c8d0 8px,
      #b0d0d8 8px,
      #b0d0d8 16px);
  width: min(100%, calc((var(--app-vh, 100vh) - 200px)*1.2));
  align-self: center;
}
.dialog-back.use-back .dialog > .eyebrow {
  display: none;
}
.dialog-back.use-back .dialog-actions {
  margin-top: 6px;
}
.use-box-cell {
  aspect-ratio: 1;
  --ar: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  min-height: 0 !important;
  background: #ffffff40 !important;
  border: 1px solid #ffffff70 !important;
  border-radius: 4px !important;
  overflow: hidden;
}
.use-box-cell.empty {
  background: #ffffff1a !important;
  border-style: dashed !important;
}
.use-box-cell:disabled,
.use-mon-btn:disabled {
  opacity: .55;
}
.use-box-cell.tm-off {
  opacity: .3;
}
.use-box-cell.tm-off img,
.use-box-cell.tm-off canvas {
  filter: grayscale(1);
}
.me-grip {
  flex: none;
  width: 10px;
  height: 16px;
  margin: 0 -2px 0 -3px;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(
      circle,
      #7888a0 1.4px,
      transparent 1.6px) 0 0/5px 5.4px;
  opacity: .85;
}
.me-move:active .me-grip,
.me-held .me-grip {
  opacity: 1;
  background-image:
    radial-gradient(
      circle,
      #c05048 1.4px,
      transparent 1.6px);
}
.me-slot .me-grip {
  height: 14px;
}
.redeem-row {
  flex-wrap: wrap;
}
.redeem-msg {
  flex-basis: 100%;
  min-height: 1em;
  font-size: 12px;
}
.redeem-msg.error {
  color: #c03838;
  font-weight: 700;
}
.held-divider {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 14px;
  margin: 1px 2px;
  font-size: 11px;
  color: #687080;
}
.held-divider::before,
.held-divider::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #9098b0;
}
.shop-list.held-list {
  row-gap: 2px !important;
}
.shop-list.held-list .held-divider {
  height: 10px;
  margin: 0 2px;
  font-size: 10px;
}
@media (max-width:860px) and (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-list.held-list .shop-item:not(.expand-row) {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
  }
  .mart-work .shop-list.held-list .shop-item:not(.expand-row) .shop-text {
    grid-column: 2/5;
  }
  .mart-work .shop-list.held-list .shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 2/4;
    grid-row: 2;
    justify-self: end;
  }
}
.mart-work > .shop-list.held-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.mart-work .shop-list.held-list .shop-buy .price {
  white-space: nowrap !important;
  font-size: 9px !important;
}
.mart-work > .shop-list.held-list {
  row-gap: 1px !important;
}
.mart-work > .shop-list.held-list .held-divider {
  height: 8px !important;
  margin: 0 2px !important;
  font-size: 9px !important;
}
.runbag-grid .party-slot {
  justify-content: flex-start !important;
}
.runbag-grid .party-slot .slot-pic {
  width: 100%;
  height: 50px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.runbag-grid .party-slot .slot-info {
  margin-top: auto;
}
.runbag-grid .party-slot.dragging {
  transition: none !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .runbag-grid .party-slot .slot-pic {
    height: 44px;
  }
}
.party-slot .slot-pic {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.party-thumb {
  overflow: hidden;
}
.mart-sell-tools .sell-pick-button {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 0;
  padding: 4px 12px !important;
  line-height: 1.2;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-sell-tools .sell-pick-button {
    padding: 2px 9px !important;
    font-size: 12px;
  }
}
@media (min-height:600px) and (min-width:1100px) {
  .mart-sell-tools .sell-pick-button {
    font-size: 15px;
    padding: 6px 16px !important;
  }
}
.shop-head .stow-button {
  white-space: nowrap;
}
.dialog:has(.sell-picker) {
  width: 720px;
  width: min(720px, 94vw);
  max-width: none;
}
.sell-total {
  margin: 0 0 6px;
  font-size: 13px;
}
.sell-total b {
  color: #c05048;
}
.sell-pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  max-height: 320px;
  max-height: min(46vh, 320px);
  overflow-y: auto;
  padding: 2px;
}
.sell-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px !important;
  min-height: 0 !important;
  text-align: left;
  background: #e8e4d8 !important;
  opacity: .6;
}
.sell-pick.on {
  background: #f8f0c8 !important;
  opacity: 1;
  box-shadow: inset 0 0 0 2px #d8a038;
}
.sell-check {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid #485060;
  background: #fff;
}
.sell-pick.on .sell-check {
  background:
    #d8a038 linear-gradient(
      45deg,
      transparent 40%,
      #fff 40% 55%,
      transparent 55%);
}
.sell-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.sell-name strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sell-name small {
  font-size: 11px;
  color: #606878;
}
@media (max-height:470px) {
  .sell-pick-list {
    max-height: 42vh;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .dialog:has(.sell-picker) h2 {
    font-size: 16px;
    margin: 0 0 4px;
  }
}
.brief-loot .loot-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff60;
  border-radius: 3px;
}
.brief-loot .loot-icon.rare {
  background: #fff0b0;
  box-shadow: inset 0 0 0 2px #d8a038;
}
@media (min-height:560px) {
  .brief-loot .loot-icon {
    width: 36px;
    height: 36px;
  }
}
.wild-mode .briefing .brief-pool {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.wild-mode .briefing .brief-pool-head {
  flex: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.wild-mode .briefing .brief-pool-head span {
  color: #808898;
  font-size: 10px;
}
.wild-mode .briefing .brief-pool-head b {
  font-size: 10px;
}
.wild-mode .briefing .brief-pool-list {
  flex: 1;
}
@media (max-height:470px) and (orientation:landscape) {
  .wild-mode .briefing .briefing-head h2 {
    font-size: 17px;
  }
  .wild-mode .briefing .brief-pool {
    margin: 1px 0;
  }
  .wild-mode .briefing .brief-pool-list .dex-icon,
  .brief-loot .loot-icon {
    width: 26px;
    height: 26px;
  }
  .wild-mode .briefing .brief-short {
    line-height: 1.3;
  }
}
.wild-mode .briefing .brief-pool-list {
  min-width: 0;
}
.wild-mode .briefing {
  min-width: 0;
}
.shop-item.picked {
  box-shadow: inset 0 0 0 3px #d8a038;
}
.shop-list .shop-item {
  cursor: pointer;
}
.mart-booth {
  overflow: visible !important;
}
.mart-booth .mart-bubble {
  z-index: 5;
}
.lab-bubble.lab-shop {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 13px;
  line-height: 1.3;
  color: #404040;
  min-height: 0;
  z-index: 4;
}
.lab-shop b {
  font-weight: 700;
}
.lab-shop small {
  font-size: 10px;
  color: #c05048;
  animation: tut-blink-text 1s steps(2) infinite;
}
.lab-shop.said small {
  display: none;
}
@keyframes tut-blink-text {
  50% {
    opacity: .35;
  }
}
@media (max-height:470px) {
  .lab-bubble.lab-shop {
    font-size: 11px;
  }
  .lab-shop small {
    font-size: 9px;
  }
}
.ticket-shop {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket-shop > p {
  margin: 0 0 2px;
  font-size: 12px;
}
.ticket-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f4f0e0;
  border: 2px solid #c8c0a0;
}
.ticket-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.ticket-text small {
  font-size: 11px;
  color: #687080;
}
.ticket-row button {
  white-space: nowrap;
  padding: 4px 12px !important;
  min-height: 0 !important;
}
.lab-stage .incubator-hint-wrap {
  z-index: 6;
}
.lab-bubble.lab-shop {
  z-index: 3;
}
@media (max-height:400px) {
  .lan-qr {
    width: 92px;
    height: 92px;
  }
  .lan-code {
    font-size: 22px;
  }
  .lan-mine,
  .lan-join {
    padding: 6px 10px;
    gap: 3px;
  }
  .lan-rules {
    font-size: 10.5px;
    line-height: 1.35;
    margin: 0;
  }
  .lan-join h2,
  .lan-mine h2 {
    font-size: 15px;
    margin: 0;
  }
  .lan-layout .eyebrow {
    display: none;
  }
  .lan-row input {
    padding: 4px 8px !important;
    font-size: 13px;
  }
  .lan-row button,
  .lan-scan-btn {
    padding: 4px 12px !important;
    min-height: 0 !important;
  }
}
.pc-cols {
  grid-template-columns: 1fr !important;
  gap: 8px;
}
.pc-stats .stat-row {
  display: grid;
  grid-template-columns: 3em 2.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.pc-stats .stat-bar {
  display: block;
  width: auto !important;
  height: 7px;
}
.pc-moves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
@media (max-width:760px) {
  .pc-moves {
    grid-template-columns: 1fr;
  }
}
.use-box-cell.can-evolve {
  box-shadow: inset 0 0 0 3px #e8a030;
  background: #fff3c8 !important;
}
@media (orientation:landscape) {
  .mart-head .pocket-tabs {
    flex-wrap: nowrap !important;
    min-width: 0;
  }
}
.mart-work {
  position: relative;
  z-index: 2;
}
@media (orientation:landscape) {
  .mart-head .pocket-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
}
@media (orientation:landscape) and (max-height:470px) {
  .mart-head .pocket-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }
}
@media (max-width:1000px) {
  .mart-head .pocket-tabs button {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 11px !important;
    letter-spacing: 0;
  }
  .mart-head .pocket-tabs {
    gap: 3px !important;
  }
}
.party-column {
  cursor: pointer;
}
.layout-editor {
  background: none !important;
  pointer-events: none;
}
.layout-editor .layout-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: auto;
  touch-action: none;
}
.layout-mark {
  position: absolute;
  box-sizing: border-box;
  border: 2px dashed #ffffffcc;
  border-radius: 8px;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.layout-mark.round {
  border-radius: 50%;
}
.layout-editor .layout-size[hidden] {
  display: none !important;
}
.layout-mark span {
  transform: translateY(-100%);
  margin-top: -2px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #18203a;
  background: #ffd84a;
  border-radius: 3px;
  white-space: nowrap;
}
.layout-mark.moved {
  border-color: #9fd0ff;
}
.layout-mark.on {
  border: 3px solid #ffd84a;
  box-shadow: 0 0 0 3px #ffd84a55;
}
.layout-editor .layout-bar {
  position: absolute;
  left: 50%;
  top: calc(6px + var(--safe-top,0px));
  transform: translateX(-50%);
  pointer-events: auto;
  border: 3px solid #303850;
  border-radius: 6px;
  padding: 4px 10px;
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.layout-editor .layout-hint {
  font-size: 11px;
  color: #404858;
}
@media (max-height:470px) {
  .layout-editor .layout-bar {
    padding: 3px 8px;
    gap: 6px;
  }
  .layout-editor .layout-acts button {
    padding: 3px 10px !important;
    min-height: 0 !important;
  }
}
.layout-editor .layout-bar {
  flex-wrap: nowrap !important;
  width: auto;
  max-width: 560px;
  max-width: min(560px, calc(100vw - 24px));
}
.layout-editor .layout-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.layout-editor .layout-size {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.layout-editor .layout-size input {
  width: 110px;
}
.layout-editor .layout-size:not([hidden]) ~ .layout-acts {
  flex: none;
}
.layout-editor .layout-size:not([hidden]) {
  display: flex;
}
.layout-editor .layout-bar:has(.layout-size:not([hidden])) .layout-hint {
  display: none;
}
.layout-editor .layout-acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.menu-art.fit {
  background-size: auto 100% !important;
  background-position: 50% center !important;
}
.menu-art.fit {
  justify-content: flex-end !important;
  padding-right: 6%;
}
.mart-work > .shop-list.held-list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work > .shop-list.held-list {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)) !important;
  }
  .mart-work .shop-list.held-list .shop-item:not(.expand-row) {
    min-height: 0 !important;
    height: 33px !important;
    overflow: hidden;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work > .shop-list.held-list:not(.ball-list) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
.mart-work .shop-list.held-list .shop-buy button {
  white-space: nowrap;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-list.ball-list .shop-item:not(.expand-row) .shop-text {
    grid-column: 2/4 !important;
    grid-row: 1;
  }
  .mart-work .shop-list.ball-list .shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 4/5 !important;
    grid-row: 1 !important;
    justify-self: end;
    align-self: center;
  }
}
.boss-note {
  margin: 2px 0;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.45;
  background: #fff4d0;
  border-left: 4px solid #c05048;
  color: #584838;
}
.boss-note b {
  color: #b03838;
}
@media (max-height:470px) {
  .boss-note {
    font-size: 11px;
    padding: 3px 6px;
  }
}
.mon-sprite.shiny,
.mon-sprite.has-mark {
  position: relative;
}
.mon-sprite .shiny-mark {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 14px;
  height: 14px;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #fff6b0);
  animation: shiny-twinkle 1.4s ease-in-out infinite;
}
@keyframes shiny-twinkle {
  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 4px #fff6b0);
  }
}
.update-text {
  white-space: pre-line;
  max-height: 28vh;
  overflow: auto;
  margin: 0 0 8px;
}
.about-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.update-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.update-url {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  opacity: .75;
  user-select: all;
}
.update-copy {
  flex: none;
  padding: 4px 6px;
  min-width: 0;
  line-height: 0;
}
.pcard .shiny-tag {
  color: #e8b400;
  margin-right: 4px;
}
.defiant-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: #c0392b;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  vertical-align: middle;
}
.defiant-tag.box {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  font-size: 9px;
  line-height: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.pb-stick.pe-locked {
  opacity: .35;
  filter: grayscale(1);
  pointer-events: none;
}
@media (max-height:380px) and (orientation:landscape) {
  .mart-work > .shop-list.held-list .shop-item:not(.expand-row) {
    height: 32px !important;
    min-height: 0 !important;
  }
  .mart-work > .shop-list.held-list .held-divider {
    height: 6px !important;
  }
}
.intro-import {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 30;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  background: #fffbe9;
  border: 2px solid #3a3a48;
  box-shadow: 0 2px 0 #3a3a48;
  color: #3a3a48;
}
.mart-work > .shop-list.held-list.charm-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}
.update-qq {
  margin: 6px 0 0;
}
.update-qq .update-qq-link {
  all: unset;
  cursor: pointer;
  color: #2f6fd6;
  text-decoration: underline;
  font-size: 13px;
}
.dream-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #7b4fd6;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}
.ability-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ability-pick .ability-btn {
  text-align: left;
  padding: 6px 10px;
}
.ability-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ability-opt em {
  font-style: normal;
  font-size: 11px;
  opacity: .7;
}
.ability-opt small {
  font-size: 11px;
  opacity: .8;
  font-weight: normal;
}
.gacha-odds .gacha-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  opacity: .8;
}
.gacha-odds h3 .gacha-note-btn {
  margin-left: 6px;
  min-width: 0;
  padding: 0 7px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 50%;
}
@media (max-height:400px) {
  .gacha-odds .gacha-note {
    display: none;
  }
}
.nature-grid {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  gap: 3px;
  align-items: center;
}
.nature-grid .nature-h {
  font-size: 10px;
  opacity: .75;
  text-align: center;
  white-space: nowrap;
}
.nature-grid .nature-btn {
  padding: 3px 2px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.nature-grid .nature-btn.neutral {
  opacity: .85;
}
.nature-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.nature-opt em {
  font-style: normal;
  font-size: 9px;
  opacity: .7;
}
.sell-picker .sell-kinds,
.sell-picker .sell-keep {
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.sell-picker .sell-kinds .chip,
.sell-picker .sell-keep .chip {
  padding: 2px 8px !important;
  font-size: 12px;
}
.party-thumb {
  position: relative;
}
.party-thumb .thumb-status {
  position: absolute;
  left: 1px;
  top: 1px;
  padding: 0 3px;
  border-radius: 3px;
  font-style: normal;
  font-size: 9px;
  line-height: 13px;
  color: #fff;
  background: #8a4bc0;
  pointer-events: none;
}
.party-thumb .st-brn {
  background: #d8582c;
}
.party-thumb .st-par {
  background: #c9a400;
}
.party-thumb .st-slp {
  background: #6a7a8c;
}
.party-thumb .st-frz {
  background: #3a9fd0;
}
.difficulty-badge.arduous {
  background: #7b2fd0 !important;
  color: #ffe680 !important;
}
.opponent.arduous {
  box-shadow: 0 0 0 2px #b07cf0;
}
.nature-now {
  margin: 0 0 6px;
  font-size: 13px;
}
.nature-now b {
  color: #ffd54a;
}
.nature-grid .nature-btn.current {
  opacity: 1 !important;
  outline: 2px solid #ffd54a;
  background: #5a4a12 !important;
}
.nature-grid .nature-btn.current .nature-opt em {
  opacity: 1;
  color: #ffd54a;
}
.pc-box > .box-foot:not(.release-bar) {
  white-space: nowrap;
}
.box-foot .release-start,
.box-foot .box-sort {
  margin-left: 4px;
  padding: 1px 6px !important;
  min-height: 0 !important;
  font-size: 10px;
}
.release-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
}
.release-bar button {
  padding: 2px 8px !important;
  min-height: 0 !important;
  font-size: 11px;
}
.box-cell.release-pick .release-check {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: #0005;
  pointer-events: none;
}
.box-cell.release-pick.picked .release-check {
  background: #e0453a;
  box-shadow: inset 0 0 0 2px #e0453a;
}
.box-cell.release-pick.picked .release-check::after {
  content: "✓";
  position: absolute;
  top: -3px;
  right: 0;
  bottom: 0;
  left: 1px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}
.box-cell.release-pick.picked .box-mon {
  opacity: .55;
}
.box-cell .friend-tag {
  position: absolute;
  left: 1px;
  top: 0;
  font-style: normal;
  font-size: 11px;
  color: #ff6b8a;
  text-shadow: 0 0 2px #fff;
  pointer-events: none;
}
.release-friends {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #ff6b8a22;
}
.release-friends p {
  margin: 2px 0;
}
.friend-names {
  font-size: 12px;
  opacity: .85;
}
.release-also {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.pc-screen > .pc-actions,
.pc-screen .pc-actions {
  flex-shrink: 0;
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 3px;
  margin-top: auto;
  padding: 5px 0 3px;
  background: linear-gradient(#f3efdf00, #f3efdf 6px);
}
.pc-screen .pc-actions button {
  min-width: 0 !important;
  padding: 4px 3px !important;
  font-size: 10px !important;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-actions .release-one {
  color: #b8322a;
}
.slot-status {
  margin-left: 4px;
  padding: 0 3px;
  border-radius: 3px;
  font-style: normal;
  font-size: 9px;
  line-height: 13px;
  color: #fff;
  background: #8a4bc0;
}
.slot-status.st-brn {
  background: #d8582c;
}
.slot-status.st-par {
  background: #c9a400;
}
.slot-status.st-slp {
  background: #6a7a8c;
}
.slot-status.st-frz {
  background: #3a9fd0;
}
.dex-icon.locked {
  filter: grayscale(1) brightness(.85);
  opacity: .45;
}
.dex-icon.locked.unseen {
  opacity: .35;
}
.release-gift {
  margin: 4px 0 0;
  color: #b07818;
  font-weight: bold;
}
.box-cell .friend-tag.rare-tag {
  color: #f0b020;
}
.pc-screen .pc-actions .held-btn {
  grid-column: span 2;
}
.box-wall .box-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
}
.box-wall .box-cell {
  min-width: 0;
  min-height: 0;
}
.box-foot .release-one {
  color: #b8322a;
}
.box-foot .release-start:disabled {
  opacity: .45;
}
.pc-screen .pc-actions button.primary {
  padding: 4px 3px !important;
}
.mart-work > .shop-list.expand-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.mart-work > .shop-list.expand-list > .shop-item:not(.sling-row) {
  grid-column: 1/-1;
}
.mart-work .expand-row.sling-row {
  gap: 6px !important;
}
.mart-work .expand-row.sling-row .shop-buy button {
  padding: 4px 8px !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .expand-row.sling-row .shop-text small {
    display: none !important;
  }
  .mart-work .expand-row.sling-row .sling-preview {
    flex-direction: row;
    padding: 3px;
  }
  .mart-work .expand-row.sling-row .sling-preview i {
    width: 12px;
    height: 12px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .expand-row.sling-row {
    padding: 2px 6px !important;
    min-height: 0 !important;
  }
  .mart-work .expand-row.sling-row .shop-text strong {
    white-space: normal;
    font-size: 11px;
    line-height: 1.2;
  }
  .mart-work .expand-row.sling-row .shop-buy button {
    padding: 2px 8px !important;
    font-size: 11px;
  }
}
@media (max-height:470px) and (orientation:landscape) and (max-width:760px), (max-height:380px) and (orientation:landscape) {
  .mart-work .expand-row.sling-row .sling-preview {
    display: none;
  }
  .mart-work .expand-row.sling-row .shop-text strong {
    white-space: nowrap;
    font-size: 10px;
  }
  .mart-work .expand-row.sling-row .shop-buy button {
    padding: 1px 6px !important;
    font-size: 10px;
  }
}
@media (max-height:470px) and (orientation:landscape) and (max-width:760px), (max-height:380px) and (orientation:landscape) {
  .mart-work > .shop-list.expand-list {
    gap: 3px !important;
  }
  .mart-work .expand-row.sling-row {
    padding: 1px 6px !important;
  }
}
.acct-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 440px;
  min-width: min(440px, 78vw);
  max-width: 560px;
}
.acct-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct-field > span {
  width: 5em;
  flex: none;
  font-size: 14px;
}
.acct-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font: inherit;
  font-size: 15px;
  border: 2px solid #687890;
  background: #fff;
}
.acct-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
}
.acct-msg.err {
  color: #b84840;
  font-weight: 700;
}
.acct-code {
  margin: 0;
  font:
    700 19px/1.5 Consolas,
    "Courier New",
    monospace;
  letter-spacing: 1px;
  background: #fff;
  border: 2px dashed #687890;
  padding: 6px 10px;
  text-align: center;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}
.acct-code.small {
  font: 700 14px/1.5 inherit;
  letter-spacing: 0;
}
.acct-agree {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
button.acct-link {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: #b84840;
  text-decoration: underline;
  font-size: 13px;
}
.acct-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  max-height: min(52vh, 320px);
  overflow: auto;
}
.acct-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
}
.acct-slot.on {
  border-color: #c86858;
  background: #f8ecd8;
}
.acct-slot.warn {
  border-color: #d09060;
  background: #f8e4d0;
}
.acct-slots > b {
  font-size: 13px;
  color: #485870;
  margin-top: 4px;
}
.acct-slot .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.acct-slot small {
  font-size: 12px;
  color: #687080;
}
.acct-slot-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acct-slot-actions button {
  font-size: 13px;
  padding: 4px 10px !important;
  min-height: 0;
}
.acct-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.acct-compare > div {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
}
.acct-compare small {
  font-size: 12px;
}
.intro-cloud {
  top: 48px;
}
button.acct-code-btn {
  flex: none;
  font-size: 13px;
  padding: 4px 10px !important;
  min-height: 0;
  white-space: nowrap;
}
.dex-fit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.arena-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.arena-head-actions > button.arena-hplock {
  opacity: .7;
}
.arena-head-actions > button.arena-hplock.on {
  opacity: 1;
  background: #d94a5a;
  color: #fff;
  border-color: #a8323f;
}
.arena-hplock i {
  font-style: normal;
}
.road-best {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #b03828;
  margin-top: -4px;
}
.road-trophy-mini {
  width: 18px;
  height: 18px;
}
.road-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
}
.road-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.road-head h1 {
  margin: 0;
  font-size: 20px;
}
.road-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.road-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.road-points b {
  font-size: 18px;
  color: #c08018;
}
.road-points small {
  font-size: 10px;
}
.road-loot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.road-loot-item {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.road-loot-item img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.road-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.road-frame {
  position: relative;
  max-width: 100%;
}
.road-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border: 3px solid #404858;
  border-radius: 6px;
  background: #203040;
  touch-action: none;
  cursor: pointer;
}
.road-bubbles {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  pointer-events: none;
}
.road-challenge-wrap {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  animation: road-pop .25s ease-out;
}
.road-challenge-wrap[hidden] {
  display: none;
}
button.road-challenge {
  white-space: nowrap;
  padding: 4px 12px !important;
  font-size: 13px;
}
@keyframes road-pop {
  from {
    opacity: 0;
    margin-top: 6px;
  }
}
.road-line {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}
.road-line img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.road-line p {
  margin: 0;
  font-size: 15px;
}
.road-line small {
  display: block;
}
.road-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.road-trophy img {
  width: 220px;
  width: min(220px, 40vh);
  height: auto;
  animation: road-trophy 1.2s ease-out;
}
@keyframes road-trophy {
  from {
    transform: scale(.3) rotate(-12deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
  }
}
.road-summary p {
  margin: 4px 0;
}
.road-line {
  flex-wrap: wrap;
}
.road-line .road-period {
  flex: 1 0 100%;
  margin: 4px 0 0;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.6;
  background: #fff3c8;
  border: 2px solid #e0c070;
  color: #5a4a20;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-head h1 {
    font-size: 16px;
  }
  .road-line img {
    width: 56px;
    height: 56px;
  }
}
.road-field > canvas.road-world {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}
.road-hud {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 6;
}
.road-side {
  position: absolute;
  right: calc(14px + var(--safe-right,0px));
  top: calc(12px + var(--safe-top,0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 5;
}
.road-side-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.road-side .road-points.panel {
  flex-direction: row;
  padding: 2px 10px !important;
  min-width: 0;
  min-height: 0;
}
.road-side .road-points .crown-pts {
  font-size: 14px;
}
.road-side .road-points {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.road-side .road-loot {
  padding: 3px 8px;
  max-width: 240px;
}
.road-side .road-loot[hidden] {
  display: none;
}
.arena-panel > .section-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.arena-panel > .section-heading > .arena-head-actions {
  justify-self: end;
}
.box-head .box-nav {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.box-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
button.box-lock {
  position: static;
  flex: none;
  height: 1.5em;
  width: 1.5em;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button.box-lock img {
  height: 100%;
  width: auto;
  max-width: 100%;
  image-rendering: auto;
  filter: drop-shadow(0 1px 0 #0006);
  opacity: .8;
  transition: transform .12s;
}
button.box-lock.on img {
  opacity: 1;
}
button.box-lock:hover img {
  transform: scale(1.1);
}
.pc-box.locked .box-grid {
  box-shadow: 0 0 0 3px #e0a830, 0 0 8px 3px #e0a83066;
  border-radius: 3px;
}
.box-nav.pc-flip-hover {
  filter: brightness(1.25);
  box-shadow: 0 0 0 2px #ffd860;
}
.stats-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-head h3 {
  margin: 0;
}
.stats-head .ev-toggle {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 10px !important;
  min-height: 0;
}
.pc-stats.ev-view .stat-row {
  grid-template-columns: 3em 2.6em minmax(0, 1fr) auto;
}
.ev-bar > i {
  background: #e0a830 !important;
}
.ev-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  min-width: 2.8em;
}
.ev-cell .ev-val {
  font-size: 10px;
  color: #687080;
  font-variant-numeric: tabular-nums;
}
.stats-head .ev-total {
  font-size: 11px;
  font-weight: 600;
  color: #687080;
}
.stats-head .ev-total.over {
  color: #c0392b;
}
.stat-row small.ev-full {
  display: inline-block;
  padding: 0 4px;
  border-radius: 3px;
  background: #e0a830;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  text-shadow: 0 1px 0 #7a4e10;
}
.dialog:has(.preset-list) {
  width: 640px;
  width: min(640px, calc(100vw - 28px));
  max-width: none;
}
.preset-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.preset-list > p {
  margin: 0 0 2px;
  font-size: 12px;
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 6px 8px;
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
  min-width: 0;
}
.preset-row.empty {
  opacity: .85;
}
.preset-name {
  flex: none;
  width: 3.6em;
  font-size: 13px;
}
.preset-items {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  align-items: center;
}
.preset-item {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
}
.preset-item img {
  image-rendering: pixelated;
}
.preset-acts {
  display: flex;
  gap: 4px;
  flex: none;
  margin-left: auto;
}
.preset-acts button {
  font-size: 12px;
  padding: 4px 8px !important;
  min-height: 0;
}
.sell-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sell-confirm p {
  margin: 0;
}
@media (max-height:470px) and (orientation:landscape) {
  .preset-row {
    padding: 3px 6px;
  }
  .preset-acts button {
    padding: 3px 6px !important;
  }
}
.pc-sub.evo-time {
  font-size: 11px;
  color: #6a6f85;
}
.pc-sub.evo-time.day {
  color: #b07818;
}
.pc-sub.evo-time.night {
  color: #5060a0;
}
.pocket-tabs button.champion-tab {
  background: linear-gradient(#f8e7a8, #e8c45a) !important;
  color: #6a3e08;
  font-weight: 700;
}
.pocket-tabs button.champion-tab.locked {
  filter: grayscale(1);
  opacity: .6;
}
.pocket-tabs button.champion-tab.selected {
  box-shadow: inset 0 0 0 2px #b07818;
}
.shop-list.champion-list > .champion-head {
  grid-column: 1/-1;
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fbf1cf !important;
  border-color: #e0a830 !important;
}
.shop-list.champion-list > .champion-head .crown-pts img {
  width: 1em;
  height: 1em;
}
.shop-list.champion-list .champion-price {
  color: #b07818;
}
.champion-head .shop-text {
  flex: 1;
  min-width: 0;
}
.champion-sub {
  display: flex;
  gap: 4px;
  flex: none;
}
.champion-sub button {
  min-height: 30px;
  padding: 2px 10px;
  font-size: 13px;
}
.champion-sub button.selected {
  background: linear-gradient(#f8e7a8, #e8c45a) !important;
  color: #6a3e08;
  box-shadow: inset 0 0 0 2px #b07818;
}
.mart-counter .champion-refresh {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 2;
  min-height: 0 !important;
  padding: 2px 8px !important;
  font-size: 12px;
  white-space: nowrap;
}
.mart-counter .champion-refresh .crown-pts img {
  width: 1em;
  height: 1em;
}
.use-mon-btn.tm-known small,
.use-mon-btn.tm-no small {
  color: #9a9aa8;
}
.use-mon-btn.tm-ok small {
  color: #2f8a4a;
  font-weight: 700;
}
.shop-text strong em.tm-no {
  font-style: normal;
  font-size: 9px;
  padding: 0 3px;
  margin-left: 3px;
  border-radius: 3px;
  background: #5a6478;
  color: #fff;
  vertical-align: 1px;
}
.shop-list.held-list em.tm-no {
  display: none;
}
.crown-pts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
  white-space: nowrap;
}
.crown-pts img {
  width: 1.25em;
  height: 1.25em;
  image-rendering: pixelated;
  object-fit: contain;
}
.crown-pts b {
  font-weight: 800;
}
.road-side .road-points .crown-pts b {
  color: #c08018;
  font-size: 16px;
}
.road-sum-pts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.road-side .field-actions {
  position: static;
  display: flex;
  justify-content: flex-end;
}
.start-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-row-gap: 6px;
  overflow: hidden;
  background: #16294d;
  color: #f8f8e8;
  padding: 8px 14px 6px 14px;
}
@supports (width: min(1px, 2px)) {
  .start-page {
    padding: max(8px, var(--safe-top,0px)) max(14px, var(--safe-right,0px)) max(6px, var(--safe-bottom,0px)) max(14px, var(--safe-left,0px));
  }
}
.start-page > .start-busy {
  grid-row: 1/-1;
  align-self: center;
}
.start-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
}
.start-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      #0c1830d8,
      #0c183088 24%,
      #0c183070 55%,
      #0c1830a0 80%,
      #0c1830e6);
}
.start-page:not([data-view=home]) .start-shade {
  background:
    linear-gradient(
      #0c1830e8,
      #0c1830c4 30%,
      #0c1830c4 70%,
      #0c1830ec);
}
.start-top,
.start-body,
.start-bottom {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.start-top {
  display: flex;
  align-items: center;
  min-height: 38px;
}
.start-top > * {
  margin-right: 8px;
}
.start-top > :last-child {
  margin-right: 0;
}
.start-back[hidden],
.start-heading[hidden],
.start-announce[hidden],
.start-acct[hidden],
.start-update[hidden] {
  display: none !important;
}
button.start-back {
  flex: none;
  font-size: 14px;
  padding: 4px 12px 4px 10px !important;
  min-height: 0;
}
.start-back:before {
  content: "◀";
  margin-right: 6px;
  font-size: 11px;
}
.start-heading {
  margin: 0;
  min-width: 0;
  font-size: 19px;
  color: #f8f8e8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 #0a1430 !important;
}
button.start-announce {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  padding: 3px 10px !important;
  min-height: 0;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.start-announce b {
  flex: none;
  margin-right: 8px;
  padding: 1px 6px;
  background: #c85848;
  color: #fff8e8;
  font-size: 12px;
}
.start-announce span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.start-announce-full {
  white-space: pre-line;
  line-height: 1.6;
}
.start-announce {
  flex: 0 0 auto;
  gap: 6px;
}
button.start-announce.has-notice {
  flex: 0 1 auto;
  max-width: 420px;
}
.start-announce .start-announce-unread {
  color: #b84840;
  font-weight: 700;
}
.start-announce span {
  flex: none;
}
.start-announce .start-announce-notice {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b84840;
  font-weight: 700;
}
.start-announce-dot,
.bl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e04838;
  flex: none;
}
.bulletin-back .dialog {
  --modal-w: 920px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .bulletin-back .dialog {
    --modal-w: min(920px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.bl-board {
  display: grid;
  grid-template-columns: minmax(140px, 26%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: 500px;
  height: min(60vh, 500px);
}
.bl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.bl-item {
  flex: none;
  display: flex !important;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 10px !important;
  min-height: 0;
  font-size: 14px;
}
.bl-item .bl-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-item.on {
  background: #f0d8a8;
  box-shadow: inset 0 0 0 2px #b84840;
}
.bl-tag {
  flex: none;
  padding: 1px 6px;
  font-size: 12px;
  background: #687890;
  color: #fff8e8;
}
.bl-item.pinned .bl-tag,
.bl-detail .bl-tag {
  background: #c85848;
}
.bl-detail {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  padding: 4px 6px 4px 2px;
  text-align: left;
}
.bl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.bl-date {
  display: block;
  margin: 6px 0 10px;
  color: #687080;
  font-size: 12px;
}
.bl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bl-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 14px;
}
@media (max-width:600px), (max-height:420px) and (max-width:900px) {
  .bl-board {
    grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    height: 62vh;
  }
  .bl-item {
    padding: 6px 7px !important;
    font-size: 12px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .bl-item .bl-tag {
    font-size: 10px;
  }
  .bl-item .bl-title {
    white-space: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-basis: 100%;
  }
  .bl-detail {
    font-size: 13px;
  }
  .bl-item {
    position: relative;
    padding-right: 14px !important;
  }
  .bl-item .bl-dot {
    position: absolute;
    right: 5px;
    top: 7px;
  }
}
.start-announce-full {
  white-space: pre-wrap;
  margin: 0;
}
.start-acct {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 2px 4px 2px 8px;
  background: #f0f0e0;
  color: #404858;
  border: 6px solid transparent;
  border-image: var(--frame) 8 stretch;
  background-clip: padding-box;
  box-shadow: 0 3px 0 #30385080;
}
.start-acct > * + * {
  margin-left: 6px;
}
.start-acct-name {
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-size: 14px;
}
.start-acct-name small {
  flex: none;
  margin-right: 4px;
  font-size: 11px;
}
.start-acct-name b {
  max-width: 8em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.start-acct button.small-btn {
  font-size: 12px;
  padding: 2px 8px !important;
}
.start-acct .start-bell.unread {
  color: #b84030;
}
.start-top > .net-badge {
  margin-left: auto;
  padding: 4px 8px;
  background: #f0f0e0;
  color: #404858;
  border: 2px solid #303850;
  box-shadow: 0 2px 0 #30385080;
}
.start-body {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}
.start-body > * {
  margin-top: auto;
  margin-bottom: auto;
  flex: none;
}
.start-busy {
  display: grid;
  justify-items: center;
  grid-gap: 10px;
  padding: 24px 0;
  color: #e8eef8;
}
.start-busy p {
  margin: 0;
}
.start-spin {
  width: 26px;
  height: 26px;
  border: 4px solid #c8d0e0;
  border-top-color: #c85848;
  border-radius: 50%;
  animation: start-spin .8s linear infinite;
  display: inline-block;
}
@keyframes start-spin {
  to {
    transform: rotate(360deg);
  }
}
.start-home {
  width: 100%;
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  grid-gap: 16px;
  padding: 4px 0;
}
.start-brand {
  display: flex;
  align-items: center;
  max-width: 100%;
}
.start-logo {
  flex: none;
  width: 96px;
  height: 96px;
  margin-right: 16px;
  filter: drop-shadow(0 4px 0 #0a143099);
}
.start-titles {
  min-width: 0;
}
.start-titles h1 {
  margin: 0;
  display: flex;
  align-items: flex-start;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #fff8e0 !important;
  text-shadow: 3px 3px 0 #b05038, 5px 5px 0 #0a1430 !important;
}
.start-beta {
  flex: none;
  margin: 2px 0 0 8px;
  padding: 2px 7px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
  background: #f0d040;
  color: #583818;
  border: 2px solid #583818;
  transform: rotate(-6deg);
  text-shadow: none !important;
}
.start-en {
  margin: 6px 0 0;
  font: 700 14px SurvivorPixel, monospace;
  letter-spacing: 3px;
  color: #f8d870;
  text-shadow: 2px 2px 0 #0a1430 !important;
}
.start-modes {
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
}
.start-mode-col {
  display: grid;
  justify-items: center;
  align-content: start;
  grid-gap: 6px;
  min-width: 0;
}
button.start-mode {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px !important;
  text-align: left;
}
button.start-mode.last {
  box-shadow: 0 0 0 3px #f0d040, 0 5px 0 #0a1430 !important;
}
button.start-mode:disabled {
  opacity: 1 !important;
  background-image: none !important;
  background-color: #ccd2dc !important;
  color: #303850;
}
button.start-mode:disabled .ui-pixel-icon,
button.start-mode:disabled .start-mode-text b,
button.start-mode:disabled .start-last {
  opacity: .45;
}
button.start-mode:disabled .start-mode-text small {
  opacity: 1;
  color: #8a3020;
  font-weight: 700;
}
.start-mode-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.start-mode-inner .ui-pixel-icon {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 12px;
}
.start-mode-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.start-mode-text b {
  font-size: 22px;
}
.start-mode-text small {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: inherit;
  opacity: .88;
}
.start-last {
  position: absolute;
  right: -6px;
  top: -8px;
  padding: 1px 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  background: #f0d040;
  color: #583818;
  border: 2px solid #583818;
}
.start-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.start-more > * {
  margin: 3px 4px;
}
button.start-more-btn {
  font-size: 13px;
  padding: 4px 12px !important;
  min-height: 0;
}
.start-official {
  margin: 0;
  max-width: 100%;
  max-width: min(700px, 100%);
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: #f8f0d0;
  background: #0a1430a6;
}
button.start-more-btn.start-home-logout {
  background: #f3dcd4;
  border-color: #a0584a;
  color: #7a3024;
}
button.start-more-btn.start-home-logout:hover {
  background: #f7e6e0;
}
.start-panel {
  width: 100%;
  width: min(460px, 100%);
  display: grid;
  grid-gap: 8px;
  padding: 14px 18px !important;
  color: #404858;
}
.start-page[data-view=register] .start-panel,
.start-page[data-view=migrate] .start-panel {
  width: 100%;
  width: min(740px, 100%);
}
.start-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 8px 18px;
  align-items: start;
}
.start-fields {
  display: grid;
  grid-gap: 8px;
  min-width: 0;
}
.start-panel .sub {
  margin: 0;
  font-size: 13px;
  color: #687080;
  line-height: 1.45;
}
.start-panel .acct-msg:empty {
  display: none;
}
button.start-go {
  font-size: 17px;
  padding: 8px 14px !important;
}
.start-links {
  display: flex;
  justify-content: space-between;
}
button.start-link {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  min-height: 0 !important;
  color: #b84840;
  text-decoration: underline;
  font-size: 13px;
}
.start-migrate-src {
  align-items: center;
}
.start-migrate-src .slot-art {
  width: 48px;
  height: 48px;
}
@media (max-width:760px) {
  .start-acct-name small {
    display: none;
  }
}
.start-slots {
  width: 100%;
  width: min(920px, 100%);
  display: grid;
  grid-gap: 8px;
}
.start-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
}
.start-slot {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-gap: 6px;
  padding: 8px 10px;
  background: #f8f8e8;
  color: #404858;
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
}
.start-slot.on {
  box-shadow: 0 0 0 3px #f0d040, 0 4px 0 #30385080;
}
.start-slot.warn {
  background: #f8e8d8;
}
.start-slot.empty {
  background: #e8ece0;
}
.slot-head {
  display: flex;
  align-items: center;
  min-height: 22px;
}
.slot-no {
  font-size: 12px;
  font-weight: 700;
  color: #687080;
}
.slot-head .start-last {
  position: static;
  margin-left: 6px;
}
button.slot-more-btn {
  margin-left: auto;
  font-size: 12px;
  padding: 1px 8px !important;
  min-height: 0;
}
.slot-main {
  display: flex;
  align-items: center;
  min-width: 0;
}
.slot-art {
  flex: none;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.slot-main > .slot-art {
  margin-right: 8px;
}
.slot-art.unknown {
  filter: brightness(0) opacity(.3);
}
i.slot-art {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed #a8b0b8;
  font: 700 30px/1 SurvivorPixel, monospace;
  font-style: normal;
  color: #a8b0b8;
}
i.slot-art.empty:before {
  content: "+";
}
i.slot-art.pending:before {
  content: "…";
}
.slot-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.slot-name {
  font-size: 17px;
  color: #c85848;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-name.dim {
  color: #687080;
}
.slot-detail small,
.slot-facts small {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: #687080;
}
.slot-facts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slot-stats {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
}
.slot-stats span {
  margin: 0 4px 3px 0;
  padding: 0 4px;
  background: #e8e8d8;
  border: 1px solid #c0c0c8;
  white-space: nowrap;
}
.slot-stats .slot-run {
  background: #f0d898;
}
.slot-warn {
  color: #b05030 !important;
  font-weight: 700;
}
.slot-facts small.slot-unsynced {
  color: #2a6a9a;
  font-weight: 700;
}
.start-unsynced p {
  margin: 0 0 6px;
}
.start-unsynced ul {
  margin: 0 0 8px;
  padding-left: 20px;
  font-weight: 700;
}
.start-frozen {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  background: #f8e4dc;
  color: #702820;
  border: 3px solid #c84840;
  box-shadow: 0 2px 0 #30385080;
}
.start-frozen b {
  font-size: 14px;
}
.start-frozen small {
  font-size: 12px;
  line-height: 1.4;
}
.slot-acts,
.slot-more {
  display: grid;
  grid-gap: 5px;
}
.slot-acts button,
.slot-more button {
  font-size: 14px;
  padding: 5px 10px !important;
  min-height: 0;
}
.start-slot button.slot-play,
.start-slot button.slot-new {
  font-size: 17px;
  padding: 8px 10px !important;
}
.slot-facts small.slot-note {
  font-size: 10px;
  color: #8a7058;
}
.start-slot .slot-more {
  display: none;
}
.start-slot.more .slot-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.start-slot.more .slot-acts {
  display: none;
}
.start-hint {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #d8e0ec;
  text-align: center;
}
.start-hint button.start-link {
  margin-left: 10px;
  color: #f8d870;
}
.start-bottom {
  display: grid;
  justify-items: center;
  grid-gap: 4px;
  --wm: 170px;
}
@supports (width: min(1px, 2px)) {
  .start-bottom {
    --wm: min(170px,26vw);
  }
}
.start-bottom > .start-update {
  max-width: 620px;
}
@supports (width: min(1px, 2px)) {
  .start-bottom > .start-update {
    max-width: min(620px, calc(100% - 2*var(--wm)));
  }
}
@media (max-width:760px) {
  .start-page[data-view=home] .start-bottom > .start-update {
    max-width: 100%;
    max-width: min(620px, 100%);
    margin-bottom: 26px;
  }
}
@media (orientation:portrait) {
  .start-bottom > .start-update {
    max-width: 100%;
    max-width: min(620px, 100%);
    margin-bottom: 48px;
  }
}
.start-update {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-width: min(620px, 100%);
  padding: 2px 5px;
  font-size: 13px;
  background: #f0f0e0;
  color: #404858;
  border: 6px solid transparent;
  border-image: var(--frame) 8 stretch;
  background-clip: padding-box;
  box-shadow: 0 3px 0 #30385080;
}
.start-update > * {
  margin: 2px 5px;
}
.start-update.ready {
  background: #fff0c8;
}
.start-update button {
  font-size: 12px;
  padding: 2px 10px !important;
  min-height: 0;
}
.start-notes {
  flex-basis: 100%;
  text-align: center;
  color: #687080;
  font-size: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.start-bar {
  flex: 1;
  min-width: 120px;
  max-width: 260px;
  height: 8px;
  background: #d0d4c0;
  border: 1px solid #808878;
  position: relative;
}
.start-bar > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #58a070;
}
.start-foot {
  justify-self: end;
  margin: 0;
  font-size: 11px;
  color: #c8d0e0;
  text-shadow: 1px 1px 0 #0a1430 !important;
}
.captcha-row {
  flex-wrap: wrap;
}
.captcha-input {
  flex: 1;
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.captcha-img {
  width: 120px;
  height: 40px;
  background: #fff;
  border: 2px solid #687890;
  image-rendering: auto;
}
.start-notices {
}
.start-notice {
  padding: 6px 8px;
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
}
.start-notice.new {
  border-color: #c86858;
  background: #f8ecd8;
}
.start-notice small {
  display: block;
  color: #687080;
  font-size: 12px;
}
.start-notice p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
@media (max-height:470px) {
  .start-home {
    grid-gap: 14px;
    padding: 2px 0;
  }
  .start-logo {
    width: 68px;
    height: 68px;
    margin-right: 12px;
  }
  .start-titles h1 {
    font-size: 30px;
  }
  .start-en {
    font-size: 11px;
    margin-top: 3px;
  }
  button.start-mode {
    min-height: 72px;
    padding: 8px 12px !important;
  }
  .start-mode-inner .ui-pixel-icon {
    width: 32px;
    height: 32px;
  }
  .start-mode-text small {
    margin-top: 3px;
  }
  .start-mode-text b {
    font-size: 18px;
  }
  .start-mode-text small {
    font-size: 11px;
  }
  .start-notes {
    -webkit-line-clamp: 1;
  }
  .start-top {
    min-height: 32px;
  }
  button.start-back {
    border-width: 5px;
    padding: 2px 10px 2px 8px !important;
  }
  .start-acct {
    border-width: 4px;
    padding: 1px 3px 1px 6px;
  }
  .start-acct button.small-btn {
    border-width: 5px;
    padding: 1px 7px !important;
  }
  .start-hint button.start-link {
    font-size: 11px;
  }
  .start-foot {
    line-height: 1.2;
  }
  .start-heading {
    font-size: 17px;
  }
  .start-panel {
    padding: 10px 14px !important;
    grid-gap: 6px;
  }
  .start-fields {
    grid-gap: 6px;
  }
  button.start-go {
    font-size: 15px;
    padding: 6px 12px !important;
  }
  .start-slots {
    grid-gap: 6px;
  }
  .start-cards {
    grid-gap: 8px;
  }
  .start-slot {
    padding: 5px 8px;
    grid-gap: 2px;
  }
  .slot-stats {
    font-size: 10px;
  }
  .slot-stats span {
    padding: 0 3px;
    margin: 0 3px 2px 0;
  }
  .start-bottom {
    grid-gap: 2px;
  }
  .start-update {
    padding: 0 4px;
    border-width: 4px;
    font-size: 12px;
  }
  .start-update > * {
    margin: 1px 4px;
  }
  .slot-head {
    min-height: 20px;
  }
  .slot-art {
    width: 40px;
    height: 40px;
  }
  .slot-device {
    display: none;
  }
  .start-hint {
    font-size: 11px;
  }
  .slot-name {
    font-size: 15px;
  }
  .start-slot button.slot-play,
  .start-slot button.slot-new {
    font-size: 15px;
    padding: 4px 8px !important;
  }
  .slot-facts small.slot-warn {
    font-size: 10px;
    line-height: 1.25;
  }
  .slot-acts button,
  .slot-more button {
    font-size: 13px;
    padding: 4px 8px !important;
  }
}
@media (max-height:400px) {
  .start-official {
    font-size: 11px;
    line-height: 1.35;
    padding: 2px 8px;
  }
  .start-logo {
    width: 44px;
    height: 44px;
  }
  .start-titles h1 {
    font-size: 20px;
    line-height: 1.05;
  }
  .start-en {
    font-size: 9px;
    margin-top: 0;
  }
  .start-home {
    grid-gap: 13px;
  }
  .start-more > * {
    margin: 2px 4px;
  }
  button.start-more-btn {
    padding: 1px 10px !important;
  }
  button.start-mode {
    min-height: 64px;
  }
}
@media (orientation:portrait), (max-width:560px) {
  .start-modes {
    grid-template-columns: 1fr;
  }
  .start-cols {
    grid-template-columns: 1fr;
  }
  .start-cards {
    grid-template-columns: 1fr;
  }
  .start-slot {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas: "head head" "main acts" "facts facts";
    align-items: center;
  }
  .start-slot.more .slot-more {
    grid-template-columns: 1fr;
  }
  .slot-head {
    grid-area: head;
  }
  .slot-main {
    grid-area: main;
  }
  .slot-facts {
    grid-area: facts;
  }
  .slot-acts,
  .slot-more {
    grid-area: acts;
    min-width: 120px;
  }
  .start-brand {
    flex-direction: column;
    text-align: center;
  }
  .start-logo {
    margin: 0 0 8px;
  }
  .start-titles h1 {
    justify-content: center;
  }
}
@media (max-width:480px) {
  .start-page {
    padding-left: 8px;
    padding-right: 8px;
  }
  @supports (width: min(1px, 2px)) {
    .start-page {
      padding-left: max(8px, var(--safe-left,0px));
      padding-right: max(8px, var(--safe-right,0px));
    }
  }
  .start-top {
    flex-wrap: wrap;
  }
  .start-heading {
    flex: 1;
  }
  .start-acct {
    flex: 1 1 100%;
    margin: 4px 0 0 !important;
    justify-content: flex-end;
  }
  .start-acct-name {
    margin-right: auto;
  }
  .start-panel {
    padding: 10px 12px !important;
  }
  .start-panel .acct-field {
    flex-wrap: wrap;
  }
  .start-panel .acct-field > span {
    width: 100%;
  }
  .start-panel .acct-input {
    font-size: 14px;
  }
  .start-panel .captcha-input {
    flex: 1 1 100%;
  }
  .start-titles h1 {
    font-size: 30px;
  }
  .start-logo {
    width: 72px;
    height: 72px;
  }
  .start-cards {
    grid-gap: 8px;
  }
  .start-slot {
    padding: 5px 8px;
    grid-gap: 2px;
  }
  .slot-head {
    min-height: 20px;
  }
  .slot-art {
    width: 48px;
    height: 48px;
  }
  .slot-stats {
    font-size: 11px;
  }
  .start-hint {
    font-size: 11px;
  }
  .start-slot button.slot-play,
  .start-slot button.slot-new {
    font-size: 15px;
    padding: 5px 8px !important;
  }
  .slot-acts button,
  .slot-more button {
    font-size: 13px;
    padding: 4px 8px !important;
  }
  .slot-acts,
  .slot-more {
    min-width: 104px !important;
  }
}
@media (min-height:700px) and (min-width:900px) {
  .start-logo {
    width: 128px;
    height: 128px;
  }
  .start-titles h1 {
    font-size: 54px;
  }
  .start-en {
    font-size: 17px;
  }
  .start-home {
    grid-gap: 24px;
  }
  button.start-mode {
    min-height: 120px;
  }
  .start-mode-inner .ui-pixel-icon {
    width: 48px;
    height: 48px;
  }
  .start-mode-text b {
    font-size: 26px;
  }
  .start-mode-text small {
    font-size: 14px;
  }
  button.start-more-btn {
    font-size: 15px;
    padding: 6px 16px !important;
  }
  .start-top {
    min-height: 46px;
  }
  .start-heading {
    font-size: 22px;
  }
  .start-panel {
    width: 100%;
    width: min(520px, 100%);
    padding: 20px 24px !important;
    grid-gap: 10px;
  }
  .start-page[data-view=register] .start-panel {
    width: 100%;
    width: min(820px, 100%);
  }
  .start-slots {
    width: 100%;
    width: min(1080px, 100%);
    grid-gap: 12px;
  }
  .start-cards {
    grid-gap: 16px;
  }
  .start-slot {
    padding: 12px 14px;
    grid-gap: 10px;
  }
  .slot-art {
    width: 96px;
    height: 96px;
  }
  .slot-name {
    font-size: 21px;
  }
  .slot-detail small {
    font-size: 13px;
  }
  .slot-stats {
    font-size: 14px;
  }
  .slot-no {
    font-size: 14px;
  }
  .start-hint {
    font-size: 14px;
  }
  .start-slot button.slot-play,
  .start-slot button.slot-new {
    font-size: 20px;
    padding: 10px 12px !important;
  }
  .start-update {
    font-size: 14px;
  }
  .start-foot {
    font-size: 12px;
  }
}
@media (min-height:960px) and (min-width:1400px) {
  .start-top,
  .start-body,
  .start-bottom {
    zoom: 1.3;
  }
}
.net-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #687080;
}
.net-badge .net-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  background: #a0a8b8;
}
.net-badge[data-net=good] {
  color: #2f7a48;
}
.net-badge[data-net=fair] {
  color: #9a6a10;
}
.net-badge[data-net=poor] {
  color: #b83828;
}
.net-badge[data-net=offline] {
  color: #707888;
}
.net-badge[data-net=good] .net-dot,
.online-dot[data-net=good] {
  background: #58b070;
}
.net-badge[data-net=fair] .net-dot,
.online-dot[data-net=fair] {
  background: #e0a830;
}
.net-badge[data-net=poor] .net-dot,
.online-dot[data-net=poor] {
  background: #d85040;
}
.net-badge[data-net=offline] .net-dot,
.online-dot[data-net=offline],
.online-dot[data-net=unknown] {
  background: #a0a8b8;
}
.user-pill .net-badge {
  margin-left: 6px;
  font-size: .82em;
}
.net-corner {
  position: fixed;
  z-index: 2100;
  left: calc(var(--safe-left,0px) + 8px);
  bottom: calc(var(--safe-bottom,0px) + 40px);
  padding: 3px 7px;
  background: #f0f0e0e6;
  border: 2px solid #303850;
  box-shadow: 0 2px 0 #30385080;
  pointer-events: none;
}
@media (min-height:1080px) {
  .net-corner {
    bottom: calc(var(--safe-bottom,0px) + 72px);
  }
}
@media (orientation:portrait) {
  .topbar .resource-pills {
    display: contents;
  }
  .topbar:after {
    content: "";
    order: 1;
    flex-basis: 100%;
    height: 0;
  }
  .topbar .user-pill,
  .topbar .friend-button,
  .topbar .top-actions {
    order: 2;
  }
}
@media (orientation:portrait) and (max-width:480px) {
  .topbar {
    padding-left: 8px !important;
    padding-right: 8px !important;
    column-gap: 8px !important;
  }
  .topbar .top-actions {
    gap: 5px;
  }
  .topbar .top-actions > button {
    padding: 6px 7px !important;
  }
  .topbar .friend-button {
    padding: 3px 8px !important;
  }
  .topbar .friend-button .friend-inner > span {
    display: none;
  }
}
.hub .hero-namecard .hero-badges {
  flex-wrap: wrap;
  column-gap: 8px;
}
.field-location .net-badge {
  margin-left: 6px;
  font-size: inherit;
  vertical-align: middle;
}
.net-warn {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 4px);
  transform: translateX(-50%);
  z-index: 1500;
  padding: 2px 12px;
  background: #7a5a12;
  color: #fff;
  border: 2px solid #fff8;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}
.net-warn[data-stage=down] {
  background: #a32626;
}
.road-wait {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateX(-50%);
  z-index: 1040;
  width: 460px;
  width: min(460px, 56vw);
  padding: 7px 14px 8px;
  background: #fffdf4f2;
  color: #30384e;
  border: 2px solid #a32626;
  box-shadow: 0 2px 0 #00000040;
  text-align: center;
  pointer-events: none;
}
.road-waiting .road-field .field-caption {
  visibility: hidden;
}
.road-wait-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.road-wait-head .start-spin {
  width: 14px;
  height: 14px;
  border-width: 2px;
  flex: none;
}
.road-wait-left {
  color: #a32626;
  font-weight: 700;
  white-space: nowrap;
}
.road-wait small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: #687080;
}
.online-hold {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  background: #10182ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.online-hold-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 18px 26px;
  max-width: 420px;
  max-width: min(420px, 90vw);
}
.online-hold-text {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.online-hold-card small {
  color: #687080;
}
.online-need {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top,0px) + 6px);
  transform: translateX(-50%);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 13px;
  background: #fff0c8;
  color: #584020;
  border: 2px solid #d09040;
  box-shadow: 0 2px 0 #00000040;
  max-width: 94vw;
}
.online-need button {
  font-size: 12px;
  padding: 2px 8px !important;
  min-height: 0;
}
main.page.remote-page {
  display: flex;
  flex-direction: column;
}
main.page > .remote-layout {
  flex: 1 1 0 !important;
  min-height: 0;
}
.remote-layout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 0;
}
.remote-layout .panel {
  padding: 8px 12px !important;
  min-width: 0;
}
.remote-layout h2 {
  margin: 0;
  font-size: 16px;
}
.remote-layout .sub {
  margin: 0;
  font-size: 12px;
}
.remote-status {
  flex: none;
  margin: 0;
  padding: 3px 10px;
  text-align: center;
  font-size: 13px;
  color: #404858;
  background: #fffbe8;
  border: 2px solid #c8b878;
  box-shadow: 0 2px 0 #30385040;
}
.remote-status:empty,
.remote-status[hidden] {
  display: none;
}
.remote-hold .remote-hold-why {
  font-weight: 700;
  color: #a03828;
}
.remote-hold {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.remote-hold p {
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}
.remote-hold .sub {
  font-size: 13px;
}
.remote-hold b {
  color: #c85848;
}
.remote-me {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  flex: none;
}
.remote-avatar {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  flex: none;
}
.remote-me-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.remote-me-text b {
  font-size: 15px;
}
.remote-me-text small {
  font-size: 12px;
  color: #687080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remote-team {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  flex: 0 1 auto;
}
.remote-mon {
  display: inline-flex;
  flex: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff80;
  border-radius: 3px;
}
.remote-ping {
  font-size: 12px;
  padding: 1px 6px;
  border: 2px solid #b0b0b8;
  background: #f0f0e0;
  color: #687080;
  white-space: nowrap;
  flex: none;
}
.remote-ping.good {
  border-color: #58a868;
  color: #2c6c3c;
}
.remote-ping.fair {
  border-color: #d0a040;
  color: #80601c;
}
.remote-ping.poor {
  border-color: #c85848;
  color: #a03828;
}
.remote-ping.offline {
  border-color: #888;
  color: #888;
}
.remote-me-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  flex: none;
}
.remote-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}
.remote-act {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #fff4d0;
  border: 2px solid #d0a050;
  color: #504030;
}
.remote-act .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.remote-act b {
  font-size: 14px;
}
.remote-act small {
  font-size: 12px;
  color: #706050;
}
.remote-act .start-spin {
  width: 16px;
  height: 16px;
  border-width: 3px;
  flex: none;
}
.remote-act-who {
  cursor: pointer;
}
.remote-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
  flex: 1 1 0;
  min-height: 0;
}
.remote-rooms,
.remote-lobby {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}
.remote-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  flex: none;
}
.remote-panel-head > small {
  font-size: 12px;
  color: #687080;
}
.remote-tabs {
  display: none;
  gap: 4px;
}
.remote-tabs .chip {
  padding: 2px 10px !important;
  font-size: 13px;
}
.remote-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.remote-pub {
  display: inline-flex;
  gap: 3px;
}
.remote-pub .chip {
  padding: 2px 8px !important;
  font-size: 12px;
}
.remote-hint {
  font-size: 11px;
  color: #b05030;
  flex: none;
}
.remote-layout .acct-slots.remote-list {
  flex: 1 1 0;
  min-height: 38px;
  max-height: none;
  overflow: auto;
}
.remote-list .acct-slot {
  padding: 4px 8px;
  cursor: pointer;
}
.remote-list .acct-slot b {
  font-size: 14px;
}
.remote-list .acct-slot small {
  font-size: 11px;
  line-height: 1.35;
}
.remote-list .remote-waited {
  display: inline;
  font-weight: 400;
  color: #506078;
}
.remote-off {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  text-align: center;
  flex: 1;
}
.remote-off .start-spin {
  width: 20px;
  height: 20px;
}
.remote-layout .lan-row {
  flex: none;
  align-items: center;
}
.remote-layout .lan-row input {
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 8px;
}
.remote-layout .lan-row button {
  font-size: 13px;
  padding: 4px 10px !important;
  min-height: 0;
}
.remote-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  padding: 0 5px;
  border: 1px solid #8890a8;
  color: #506078;
  background: #fff;
  vertical-align: middle;
  line-height: 1.5;
  white-space: nowrap;
}
.remote-tag.st-idle {
  border-color: #58a868;
  color: #2c6c3c;
}
.remote-tag.st-room {
  border-color: #5878b8;
  color: #30508c;
}
.remote-tag.st-battling {
  border-color: #c85848;
  color: #a03828;
}
.remote-tag.st-matching {
  border-color: #d0a040;
  color: #80601c;
}
.remote-room {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
.remote-room-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  flex: none;
}
.remote-room-label {
  font-size: 12px;
  color: #687080;
}
.remote-room .remote-code {
  font-size: 28px;
  line-height: 1.1;
}
.remote-exp {
  font-size: 12px;
  color: #687080;
}
.remote-exp span {
  font-weight: 700;
  color: #404858;
}
.remote-seats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  grid-gap: 10px;
  gap: 10px;
  flex: none;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.remote-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  border: 2px solid #b0b0b8;
  background: #f0f0e0;
  text-align: center;
  min-width: 0;
  min-height: 74px;
}
.remote-seat b {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.remote-seat small {
  font-size: 12px;
  color: #687080;
}
.remote-seat .remote-seat-role {
  font-size: 11px;
  letter-spacing: 1px;
}
@media (min-height:560px) {
  .remote-seat {
    min-height: 120px;
    padding: 14px;
  }
  .remote-seat b {
    font-size: 20px;
  }
  .remote-seat small {
    font-size: 13px;
  }
  .remote-room .remote-code {
    font-size: 34px;
  }
}
.remote-seat.you {
  border-color: #c86858;
  background: #f8ecd8;
}
.remote-seat.remote-join {
  border-color: #5878b8;
  cursor: pointer;
}
.remote-seat.empty {
  border-style: dashed;
  color: #8890a0;
}
.remote-seat.empty .start-spin {
  width: 18px;
  height: 18px;
  border-width: 3px;
}
.remote-vs {
  align-self: center;
  font-size: 20px;
  color: #c85848;
}
.remote-room-actions {
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-height:470px), (max-width:480px) {
  .remote-room-actions {
    padding-left: 170px;
    padding-left: min(170px, 26vw);
  }
  .remote-layout .acct-slots.remote-list {
    padding-bottom: 22px;
  }
}
.remote-room-actions button {
  font-size: 14px !important;
  padding: 5px 16px !important;
}
.remote-card p {
  margin: 2px 0;
}
.remote-card-vs {
  color: #506078;
}
.remote-cfg .acct-slot {
  align-items: flex-start;
}
.remote-cfg .set-chips {
  margin-top: 4px;
}
.remote-rules-list {
  max-width: 520px;
}
@media (orientation:portrait), (max-width:699px) {
  .remote-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .remote-layout.tab-rooms .remote-lobby,
  .remote-layout.tab-players .remote-rooms {
    display: none;
  }
  .remote-tabs {
    display: flex;
  }
  .remote-panel-head > h2,
  .remote-panel-head > small {
    display: none;
  }
  .remote-me-actions {
    margin-left: 0;
  }
}
@media (orientation:portrait) and (max-width:480px) {
  .remote-me-text {
    flex: 1 1 calc(100% - 160px);
  }
  .remote-me-text small {
    white-space: normal;
  }
  .remote-me-tl {
    display: none;
  }
  .remote-ping {
    order: 1;
  }
  .remote-team {
    order: 2;
  }
  .remote-me-actions {
    order: 3;
    margin-left: auto;
  }
  .remote-mon {
    width: 26px;
    height: 26px;
  }
  .remote-tabs .chip {
    padding: 2px 7px !important;
    font-size: 12px;
  }
  .remote-head-tools .small-btn {
    font-size: 12px;
    padding: 2px 7px !important;
  }
  .remote-seat {
    padding: 8px 4px;
  }
  .remote-seat b {
    white-space: normal;
    font-size: 16px;
  }
  .remote-seats {
    grid-gap: 6px;
    gap: 6px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-layout {
    gap: 4px;
  }
  .remote-layout .panel {
    padding: 4px 10px !important;
  }
  .remote-me {
    flex-wrap: nowrap;
  }
  .remote-me-text {
    flex: 0 0 auto;
  }
  .remote-me-tl {
    display: none;
  }
  .remote-layout .acct-slots.remote-list {
    padding-bottom: 22px;
  }
  .remote-team {
    flex: 0 1 auto;
  }
  .remote-avatar {
    width: 28px;
    height: 28px;
  }
  .remote-me-text b {
    font-size: 14px;
  }
  .remote-me-actions {
    flex-wrap: nowrap;
  }
  .remote-mon {
    width: 26px;
    height: 26px;
  }
  .remote-layout h2 {
    font-size: 14px;
  }
  .remote-room .remote-code {
    font-size: 22px;
  }
  .remote-room {
    gap: 5px;
  }
  .remote-seat {
    min-height: 0;
    padding: 3px 6px;
    gap: 0;
  }
  .remote-seat b {
    font-size: 14px;
  }
  .remote-act {
    padding: 2px 6px;
  }
  .remote-act b {
    font-size: 13px;
  }
  .remote-act small {
    font-size: 11px;
  }
  .remote-rooms,
  .remote-lobby {
    gap: 4px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .remote-layout .panel {
    border-width: 5px;
  }
  .remote-layout button {
    border-width: 5px;
  }
  .remote-layout button.small-btn,
  .remote-layout .chip {
    padding: 1px 8px !important;
  }
  .remote-me-text {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }
  .remote-me-text b {
    white-space: nowrap;
  }
  .remote-me-text small {
    font-size: 11px;
  }
  .remote-act .grow {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
  }
  .remote-seat .remote-seat-role {
    display: none;
  }
}
button.small-btn {
  font-size: 13px;
  padding: 3px 10px !important;
  min-height: 0 !important;
  white-space: nowrap;
  flex: none;
  line-height: 1.3;
}
.start-user .small-btn {
  font-size: 12px;
  padding: 2px 8px !important;
}
button.road-glow .road-logo {
  animation: road-glow 1.6s ease-in-out infinite;
}
@keyframes road-glow {
  0%, 100% {
    filter: drop-shadow(0 2px 0 #00000055) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 8px #ffd860) drop-shadow(0 2px 0 #00000055) brightness(1.18);
  }
}
@media (prefers-reduced-motion:reduce) {
  button.road-glow .road-logo {
    animation: none;
  }
}
.road-aura {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b03828;
  font-weight: 700;
}
.live-badge {
  position: absolute;
  left: calc(12px + var(--safe-left,0px));
  top: calc(12px + var(--safe-top,0px));
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(10, 16, 30, .66);
  color: #e8eefc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  letter-spacing: .5px;
}
.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8890a0;
}
.live-badge.watching i {
  background: #ff4a3a;
  animation: live-dot 1.2s ease-in-out infinite;
}
@keyframes live-dot {
  50% {
    opacity: .35;
  }
}
.remote-watch-row input {
  flex: 1;
}
.dialog:has(.road-exit) {
  width: 680px;
  width: min(680px, calc(100vw - 28px));
  max-width: none;
}
.road-exit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.road-exit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 2px solid #b0b0b8;
  background: #f0f0e0;
}
.road-exit-card.pause {
  border-color: #5878b8;
}
.road-exit-card.end {
  border-color: #c86858;
}
.road-exit-card b {
  font-size: 14px;
}
.road-exit-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}
.road-exit-card button {
  align-self: stretch;
}
@media (max-width:520px) {
  .road-exit {
    grid-template-columns: 1fr;
  }
}
.remote-me-actions .remote-view-room.on,
.remote-me-actions .remote-view-lobby.on {
  background: #f4e2a8 !important;
  color: #7a4e10;
}
.remote-me.in-lounge .remote-me-actions {
  gap: 5px;
}
.remote-me-actions .lounge-ready-btn.on {
  background: #d6f0da !important;
  color: #2f6a40;
}
.remote-me-actions .lounge-leave {
  margin-left: 4px;
}
.lounge-battle {
  align-self: center;
  color: #b03828;
  font-weight: 700;
  font-size: 13px;
  padding: 0 4px;
}
.remote-room-tag {
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 6px;
  background: #e6e8f0;
  color: #404858;
  font-size: 11px;
}
.remote-room-tag.live {
  background: #f8d8d0;
  color: #b03828;
}
.remote-switch.on,
.remote-visible.on {
  background: #f4e2a8 !important;
}
.remote-lobby-cfg {
  gap: 6px;
  justify-content: flex-start;
}
.remote-bigs {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 8px;
  gap: 8px;
}
.remote-layout button.remote-big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0 !important;
  height: 100%;
  padding: 4px 12px !important;
  text-align: center;
}
.remote-big-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.remote-big-text b {
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1.2;
}
.remote-big-text small {
  font-size: 12px;
  font-weight: 400;
  opacity: .8;
  line-height: 1.3;
}
.remote-side-note {
  flex: none;
  text-align: center;
  color: #687080;
}
.remote-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 440px;
  width: min(440px, calc(100vw - 90px));
}
.remote-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.remote-form-row > span {
  flex: none;
  width: 3.6em;
  font-size: 14px;
  font-weight: 700;
  color: #506078;
}
.remote-form-row input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 6px 10px;
  letter-spacing: 1px;
}
.remote-pick {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}
.remote-form button.remote-pick-btn {
  display: flex;
  justify-content: center;
  padding: 4px 6px !important;
  min-height: 0;
  min-width: 0;
}
.remote-pick-btn span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.remote-pick-btn b {
  font-size: 15px;
}
.remote-pick-btn small {
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
  white-space: nowrap;
}
.remote-form button.remote-pick-btn.on {
  background: #f4e2a8 !important;
  color: #7a4e10;
  box-shadow: inset 0 0 0 2px #c89838, 0 4px 0 #30385080;
}
@media (max-height:470px) {
  .remote-form {
    gap: 6px;
  }
  .remote-pick-btn small {
    display: none;
  }
  .remote-form-row input {
    padding: 4px 8px;
  }
}
.remote-layout .lounge-arena {
  background: #e8d6a8 url(/_expedition/assets/ui/lounge-arena.jpg) center 70%/cover no-repeat !important;
  overflow: hidden;
}
.remote-layout .lounge-stands {
  background: #8ab4e8 url(/_expedition/assets/ui/lounge-stands.jpg) center 35%/cover no-repeat !important;
  overflow: hidden;
}
.remote-layout .lounge-stands[data-crowd="0"] {
  background-image: url(/_expedition/assets/ui/lounge-stands-0.jpg) !important;
}
.remote-layout .lounge-stands[data-crowd="1"] {
  background-image: url(/_expedition/assets/ui/lounge-stands-1.jpg) !important;
}
.remote-layout .lounge-stands[data-crowd="2"] {
  background-image: url(/_expedition/assets/ui/lounge-stands-2.jpg) !important;
}
.lounge-arena .remote-panel-head h2,
.lounge-stands .remote-panel-head h2 {
  padding: 0 10px;
  background: #fffbe8e8;
  border: 2px solid #30385099;
  box-shadow: 0 2px 0 #30385055;
}
.lounge-stands .remote-panel-head > small {
  padding: 0 6px;
  background: #fffbe8d0;
  color: #404858;
}
.lounge-arena .remote-tabs .chip,
.lounge-stands .remote-tabs .chip {
  box-shadow: 0 2px 0 #30385066;
}
.lounge-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  padding: 3px 10px;
  background: #fffbe8e8;
  border: 2px solid #30385099;
  box-shadow: 0 2px 0 #30385055;
}
.lounge-title {
  font-size: 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lounge-pub {
  border-color: #58a868;
  color: #2c6c3c;
}
.lounge-pub.private {
  border-color: #8868b8;
  color: #5a3c8c;
}
.lounge-code-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lounge-code-box > small {
  font-size: 12px;
  color: #687080;
}
.lounge-code-box .remote-code {
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1.1;
}
.lounge-code-box .remote-copy {
  padding: 1px 8px !important;
  font-size: 12px;
}
.lounge-field {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  grid-gap: 8px;
  gap: 8px;
  padding: 6px 2px 4px;
}
.lounge-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 86px;
  padding: 6px 8px;
  text-align: center;
  background: #fffbecee;
  border: 3px solid #9098b0;
  box-shadow: 0 3px 0 #30385066;
  cursor: default;
}
.lounge-seat:not(.you):not(.empty) {
  cursor: pointer;
}
.lounge-seat > * {
  flex: none;
}
.lounge-seat .lounge-seat-role {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #687080;
}
.lounge-seat > b {
  font-size: 17px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lounge-seat > small {
  font-size: 11px;
  color: #687080;
}
.lounge-seat .lounge-ready {
  margin-top: 2px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8a6a40;
  background: #f4ead0;
}
.lounge-seat.ready {
  border-color: #3f9a5c;
}
.lounge-seat.ready .lounge-ready {
  color: #fff;
  background: #3f9a5c;
}
.lounge-seat.you {
  border-color: #d06050;
  background: #fff3e2ee;
}
.lounge-seat.away {
  opacity: .7;
}
.lounge-seat.away .lounge-ready {
  color: #b03828;
  background: #f8e0d8;
}
.lounge-seat.empty {
  background: #ffffffaa;
  border-style: dashed;
  border-color: #7078908c;
  box-shadow: none;
}
.lounge-empty {
  font-size: 15px;
  color: #687080;
  letter-spacing: 2px;
}
.lounge-seat .lounge-sit {
  margin-top: 3px;
}
.lounge-host {
  display: inline-block;
  padding: 0 5px;
  font-size: 10px;
  letter-spacing: 0;
  color: #fff;
  background: #d08a20;
  border-radius: 3px;
}
.lounge-vs {
  align-self: center;
  padding: 2px 8px;
  font-size: 28px;
  font-style: italic;
  line-height: 1.1;
  color: #e8413c;
  background: #fffbe8e6;
  border: 3px solid #e8413c;
  border-radius: 12px;
  box-shadow: 0 3px 0 #30385066;
}
.lounge-foot {
  flex: none;
  display: flex;
  justify-content: center;
  min-height: 0;
}
.lounge-foot > * {
  padding: 0 8px;
  background: #fffbe8dd;
  font-size: 12px;
}
.lounge-live {
  color: #b03828;
  font-weight: 700;
}
.lounge-crowd {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  padding: 4px 2px;
}
.lounge-watcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  background: #fffbecee;
  border: 2px solid #7080a0;
  box-shadow: 0 2px 0 #30385055;
  cursor: pointer;
  font-size: 13px;
}
.lounge-watcher b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lounge-watcher small {
  font-size: 11px;
  color: #687080;
}
.lounge-watcher.you {
  border-color: #d06050;
  background: #fff3e2ee;
  cursor: default;
}
.lounge-none {
  margin: auto;
  padding: 4px 12px;
  background: #fffbe8dd;
  font-size: 13px;
  color: #506078;
}
@media (min-height:560px) {
  .lounge-seat {
    min-height: 130px;
    padding: 12px;
  }
  .lounge-seat > b {
    font-size: 21px;
  }
  .lounge-seat > small {
    font-size: 12px;
  }
  .lounge-vs {
    font-size: 40px;
  }
  .lounge-code-box .remote-code {
    font-size: 22px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-cols > .panel:first-child {
    padding-bottom: 24px !important;
  }
}
@media (max-width:720px) and (orientation:landscape) {
  .remote-me.in-lounge .remote-team,
  .remote-me.in-lounge .remote-ping {
    display: none;
  }
  .remote-me.in-lounge .remote-me-actions {
    gap: 3px;
  }
  .remote-me.in-lounge .remote-me-actions .small-btn {
    padding: 2px 7px !important;
    font-size: 12px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .lounge-bar {
    padding: 1px 8px;
    gap: 0 6px;
  }
  .lounge-title {
    font-size: 14px;
  }
  .lounge-code-box .remote-code {
    font-size: 15px;
  }
  .lounge-field {
    padding: 3px 0 2px;
    gap: 4px;
  }
  .lounge-seat {
    min-height: 0;
    padding: 2px 6px;
    border-width: 2px;
    gap: 0;
  }
  .lounge-seat > b {
    font-size: 14px;
  }
  .lounge-seat > small {
    font-size: 10px;
    line-height: 1.25;
  }
  .lounge-seat .lounge-ready {
    font-size: 11px;
    margin-top: 1px;
  }
  .lounge-seat .lounge-sit {
    margin-top: 1px;
  }
  .lounge-vs {
    font-size: 22px;
  }
  .lounge-foot > * {
    font-size: 11px;
  }
  .remote-big-text b {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .remote-big-text small {
    font-size: 11px;
  }
  .remote-bigs {
    gap: 5px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .lounge-seat .lounge-seat-role {
    font-size: 10px;
  }
  .lounge-seat > small {
    display: none;
  }
  .remote-side-note {
    display: none;
  }
}
@media (orientation:portrait) and (max-width:480px) {
  .remote-me.in-lounge .remote-me-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .remote-me.in-lounge .remote-me-actions .small-btn {
    padding: 2px 8px !important;
    font-size: 12px;
  }
  .lounge-field {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    align-content: center;
    overflow: auto;
  }
  .lounge-seat {
    min-height: 0 !important;
    padding: 8px !important;
  }
  .lounge-seat > b {
    font-size: 18px !important;
  }
  .lounge-vs {
    justify-self: center;
    font-size: 22px !important;
  }
}
@media (max-width:640px) and (orientation:landscape) {
  .remote-me .remote-team {
    display: none;
  }
}
.home-menu .menu-card.featured.half {
  grid-column: auto;
}
.home-menu .road-card {
  background: #f8d8c0 !important;
  background-image:
    linear-gradient(
      #ffe8d0 0,
      #ffe8d0 4px,
      #f4c8a8 4px,
      #f4c8a8 calc(100% - 4px),
      #d8a080 calc(100% - 4px)) !important;
}
.home-menu .road-card .road-logo {
  flex: none;
  height: 22px;
  height: clamp(22px, 60cqh, 52px);
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #30385055);
}
.home-menu .road-card .menu-label strong {
  color: #b02818 !important;
}
body[data-screen=champion] .adventure-layout {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
body[data-screen=champion] .adventure-layout > .panel {
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.road-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.road-status-head h2 {
  margin: 0;
  font-size: 22px;
  color: #b02818;
}
.road-status-head .eyebrow {
  margin: 0;
}
.road-status-logo {
  height: 64px;
  width: auto;
  flex: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #30385055);
}
.road-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.road-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  background: #fffbecb0;
  border: 2px solid #c8c0a8;
  min-width: 0;
}
.road-stat > small:first-child {
  font-size: 11px;
  color: #687080;
}
.road-stat > b {
  font-size: 18px;
  color: #303850;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.road-stat > b .crown-pts img {
  width: 1em;
  height: 1em;
}
.road-stat-note {
  font-size: 11px;
  color: #806858;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.road-stat.points {
  border-color: #e0a830;
  background: #fbf1cfd0;
}
.road-stat.paused {
  border-color: #d06050;
  background: #fff0e0d0;
}
.road-status-note {
  margin: 0;
  font-size: 12px;
}
.road-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: stretch;
}
.road-actions .road-go {
  flex: 1;
  margin: 0 !important;
  font-size: 20px;
  letter-spacing: 2px;
  background: linear-gradient(#f07060, #c83828) !important;
  color: #fff !important;
  text-shadow: 0 2px 0 #80201880;
}
.road-actions .road-go:disabled {
  filter: grayscale(.6);
}
.road-actions .road-pack-btn {
  flex: none;
  margin: 0 !important;
}
.road-actions .road-pack-btn:disabled {
  opacity: .45;
}
.road-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.road-shop-head h2 {
  margin: 0;
  font-size: 20px;
}
.road-shop-pts .crown-pts {
  font-size: 18px;
}
.road-shop-pts .crown-pts img {
  width: 1.1em;
  height: 1.1em;
}
.road-shop-work {
  flex: 1;
  min-height: 0;
}
.road-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  height: 34px;
}
.road-shop-bar .champion-refresh {
  min-height: 30px;
  padding: 2px 10px !important;
  font-size: 13px;
  white-space: nowrap;
}
.road-shop-bar .champion-refresh .crown-pts img {
  width: 1em;
  height: 1em;
}
.road-shop .champion-price {
  color: #b07818;
}
.road-shop-say {
  flex: none;
  margin: 0;
  min-height: 1.3em;
  font-size: 12px;
  color: #506078;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-height:470px) and (orientation:landscape) {
  body[data-screen=champion] .adventure-layout > .panel {
    gap: 4px;
    padding: 6px 10px !important;
  }
  .road-status-logo {
    height: 40px;
  }
  .road-status-head h2 {
    font-size: 17px;
  }
  .road-status-head .eyebrow {
    display: none;
  }
  .road-stats {
    gap: 4px;
  }
  .road-stat {
    padding: 2px 7px;
  }
  .road-stat > b {
    font-size: 14px;
  }
  .road-stat-note,
  .road-stat > small:first-child {
    font-size: 10px;
  }
  .road-status-note {
    font-size: 10.5px;
    line-height: 1.3;
  }
  .road-actions .road-go {
    font-size: 16px;
    padding: 6px 10px !important;
  }
  .road-shop-head h2 {
    font-size: 16px;
  }
  .road-shop-bar {
    height: 28px;
  }
  .road-shop-bar .champion-sub button,
  .road-shop-bar .champion-refresh {
    min-height: 24px;
    padding: 1px 8px !important;
    font-size: 12px;
  }
  .road-shop-say {
    font-size: 10.5px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .road-status-note {
    display: none;
  }
}
.road-shop .mart-work > .shop-list.held-list {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
}
@media (max-height:470px) and (orientation:landscape) {
  body[data-screen=champion] .adventure-layout > .panel.road-status {
    padding-bottom: 26px !important;
  }
}
@media (orientation:portrait) {
  body[data-screen=champion] .adventure-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
}
@media (max-width:700px) and (orientation:landscape) {
  .road-actions .road-go {
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
.start-switch-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.start-switch-slots button.on {
  background: #f4e2a8 !important;
  color: #7a4e10;
  box-shadow: inset 0 0 0 2px #c89838, 0 4px 0 #30385080;
}
.slot-offline {
  color: #3a6aa8 !important;
}
.start-cards.single {
  grid-template-columns: minmax(0, 100%);
  grid-template-columns: minmax(0, min(560px, 100%));
  justify-content: center;
}
.start-online-off {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.start-online-off b {
  font-size: 18px;
}
.start-online-off ol {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}
.start-online-off p {
  margin: 0;
  line-height: 1.7;
}
.start-online-off-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.start-online-off .start-hint {
  color: #586070;
  font-size: 13px;
}
.summary-back .dialog {
  --modal-w: 640px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .summary-back .dialog {
    --modal-w: min(640px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.remote-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.remote-summary p {
  margin: 0;
}
.rs-line {
  font-size: 16px;
  font-weight: 700;
}
.rs-meta {
  color: #687080;
  font-size: 13px;
}
.rs-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rs-side {
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
  padding: 6px 8px;
  min-width: 0;
}
.rs-side.me {
  border-color: #5a78b0;
}
.rs-side.win {
  background: #fff4d8;
}
.rs-side > b {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.rs-tag {
  font-size: 12px;
  padding: 0 6px;
  background: #687890;
  color: #fff;
}
.rs-side.win .rs-tag {
  background: #c85848;
}
.rs-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rs-side li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.rs-side li small {
  color: #3a7a4a;
}
.rs-side li.down {
  opacity: .6;
}
.rs-side li.down small {
  color: #b84840;
}
@media (max-width:560px) {
  .rs-teams {
    grid-template-columns: 1fr;
  }
}
.exp-battle-result > .panel.online-result {
  --modal-w: 640px;
}
@supports (width: min(1px, 2px)) {
  .exp-battle-result > .panel.online-result {
    --modal-w: min(640px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.online-result .remote-summary {
  text-align: left;
}
.online-result .rs-meta {
  text-align: center;
}
.online-result.win h1 {
  color: #c85848;
}
.online-result.lose h1 {
  color: #586880;
}
.online-result .online-verdict {
  font-weight: 700;
}
.net-badge,
.net-badge[data-net] {
  color: #404858;
  font-weight: 700;
}
.remote-ping {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #404858 !important;
  border-color: #b0b0b8 !important;
  background: #f0f0e0 !important;
}
.remote-ping:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #a0a8b8;
}
.remote-ping.good:before {
  background: #58b070;
}
.remote-ping.fair:before {
  background: #e0a830;
}
.remote-ping.poor:before {
  background: #d85040;
}
.net-corner {
  padding: 3px 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(10, 16, 30, .62);
  box-shadow: none;
}
.net-corner .net-badge {
  color: #e8eefc;
}
.remote-net {
  font-weight: 700;
}
.remote-card .other-profile {
  margin: 0;
}
.pf-hidden {
  margin: 4px 0 8px;
  color: #8890a0;
}
.remote-card > small {
  display: block;
  margin-top: 6px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  max-height: min(62vh, 520px);
  overflow: auto;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
}
.history-item.win {
  border-color: #c85848;
  background: #fff4e8;
}
.history-item.lose {
  border-color: #8890a0;
}
.hi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.hi-head b {
  font-size: 15px;
}
.history-item.win .hi-head b {
  color: #b84840;
}
.hi-head small {
  margin-left: auto;
  color: #687080;
}
.hi-coins {
  font-weight: 700;
}
.hi-meta,
.hi-team {
  color: #586070;
  font-size: 12px;
}
.hi-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.live-badge.replay-badge {
  pointer-events: auto;
}
.live-badge.replay-badge i {
  background: #5a9cf0;
}
.replay-speed {
  padding: 0 8px !important;
  min-height: 0 !important;
  font-size: 12px !important;
  margin-left: 4px;
}
@media (max-height:470px) and (max-width:640px) and (orientation:landscape) {
  .remote-me .remote-me-actions {
    gap: 3px;
  }
  .remote-me .remote-me-actions .small-btn {
    padding: 2px 6px !important;
    font-size: 12px;
  }
}
@media (max-height:470px) and (max-width:640px) and (orientation:landscape) {
  .remote-me .remote-team {
    display: none;
  }
  .remote-layout .remote-me {
    flex-wrap: wrap;
  }
  .remote-me .remote-me-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
  }
  .remote-me-actions .lounge-leave {
    margin-left: 0;
  }
}
.board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 440px;
  min-width: min(440px, 80vw);
}
.dialog.board-dialog {
  --modal-w: 540px;
  padding: calc(var(--modal-w)*.175) 0 calc(var(--modal-w)*.092) !important;
  min-height: calc(var(--modal-w)*.62);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 10px) !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  background:
    url(/_expedition/assets/ui/board-frame-top.png) top/100% auto no-repeat border-box,
    url(/_expedition/assets/ui/board-frame-bottom.png) bottom/100% auto no-repeat border-box,
    url(/_expedition/assets/ui/board-frame-mid.png) top/100% auto repeat-y content-box !important;
  background-color: transparent !important;
  background-clip:
    border-box,
    border-box,
    content-box !important;
  color: #3a2a14;
}
.dialog.board-dialog > * {
  margin-left: calc(var(--modal-w)*.065 + 4px) !important;
  margin-right: calc(var(--modal-w)*.065 + 4px) !important;
}
.dialog.board-dialog .eyebrow,
.dialog.board-dialog > h2,
.dialog.board-dialog .dialog-actions {
  display: none !important;
}
.dialog.board-dialog .board {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
}
.dialog.board-dialog .board-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog.board-dialog .board-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.dialog.board-dialog .board-body > p {
  flex: none;
}
.board-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.board-top .board-tabs {
  flex: 1;
  min-width: 0;
}
.board-close {
  flex: none;
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: url(/_expedition/assets/ui/close.png) center/100% 100% no-repeat !important;
  image-rendering: pixelated;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  filter: drop-shadow(0 2px 0 #00000040);
}
.board-close:active {
  transform: translateY(1px);
  filter: none;
}
.board-help {
  flex: none;
  width: 20px !important;
  height: 20px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 0 0 2px !important;
  border-radius: 50%;
  border: 2px solid #4a64b0;
  background: #e8eefc;
  color: #2a3c8a;
  font: 700 12px/16px sans-serif;
  padding: 0;
  cursor: pointer;
  align-self: center;
}
.board-body {
  position: relative;
}
.board-tip {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  z-index: 3;
  padding: 6px 8px;
  border: 2px solid #c8a050;
  background: #fffbec;
  box-shadow: 0 3px 0 #00000030;
}
.board-tip[hidden] {
  display: none;
}
.board-tip .board-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.board-tip {
  max-height: 220px;
  max-height: min(60vh, 220px);
  overflow: auto;
}
.board-title {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 15px;
  color: #2a3c8a;
}
.board-title small {
  font-size: 11px;
  font-weight: 400;
  color: #7a6040;
}
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.board-main,
.board-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.board-sub .small-btn {
  font-size: .8em;
  padding: 1px 10px !important;
  border: 2px solid #4a64b0 !important;
  border-image: none !important;
  border-radius: 999px !important;
  background: #e8eefc !important;
  color: #2a3c8a !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.board-sub .small-btn.on {
  background: #3a56a8 !important;
  color: #fff !important;
}
.board-tabs .on {
  background: #f0d898;
}
.board-body {
  max-height: 320px;
  max-height: min(46vh, 320px);
  overflow: auto;
}
.board-note {
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.35;
}
.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.board-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 3px 6px;
  border-bottom: 1px solid #30385018;
}
.board-row.me {
  background: #fff0c8;
}
.board-rank {
  text-align: right;
  color: #8a6a40;
}
.board-best {
  font-weight: 700;
}
.board-name .board-run {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #7a8090;
  font-weight: 400;
}
.board-name .board-run.live {
  color: #c05028;
}
.board-name .board-run.paused {
  color: #b07020;
}
.board-row:nth-child(-n+3) .board-rank {
  color: #c05028;
}
.board-me {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 13px;
}
.reward-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.reward-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 2px solid #9098b0;
  background: #fffbec;
}
.reward-row small {
  display: block;
  color: #687080;
}
.hero-card {
  position: relative;
}
.mail-btn {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-image: none !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.mail-btn:active {
  transform: translateY(1px);
}
.mail-icon {
  display: block;
  width: 44px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #30385a55);
}
.mail-dot {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #e8402c;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fffbec;
  top: -6px;
  right: -8px;
}
.mail-dot[hidden] {
  display: none;
}
.mail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 340px;
  max-height: min(52vh, 340px);
  overflow: auto;
  min-width: 460px;
  min-width: min(460px, 82vw);
}
.dialog.mail-dialog {
  position: relative;
}
.dialog.mail-dialog .eyebrow {
  display: none;
}
.dialog.mail-dialog h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 40px;
}
.mail-title-icon {
  image-rendering: pixelated;
}
.dialog.mail-dialog > .round-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
}
.dialog.mail-dialog .dialog-actions:empty {
  display: none;
}
.got {
  display: grid;
  gap: 8px;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 170px);
  overflow: auto;
}
.got-mon {
  text-align: center;
}
.got-mon p {
  margin: 2px 0;
}
.got-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.got-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 2px solid #c8a050;
  background: #fff4d8;
  font-weight: 700;
  color: #5a3a10;
}
.got-chip img {
  image-rendering: pixelated;
}
.mail-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border: 2px solid #c8ccd6;
  background: #fffbec;
}
.mail-row.unread {
  border-color: #e8402c;
}
.mail-row.reward {
  background: #fff4d8;
}
.mail-main {
  flex: 1;
  min-width: 0;
}
.mail-main > b {
  margin-right: 6px;
}
.mail-at {
  color: #687080;
}
.mail-body {
  margin: 2px 0 0;
  font-size: 12px;
  white-space: pre-line;
  color: #40485a;
}
.mail-reward {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #8a5a20;
}
.mail-state {
  font-size: 12px;
  color: #687080;
  white-space: nowrap;
}
.mail-item.reward .bl-tag {
  background: #b08030;
}
.mail-attach {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 2px solid #e0c890;
  background: #fff4d8;
}
.mail-attach .mail-reward {
  margin: 0;
  font-size: 13px;
}
.road-status {
  position: relative;
}
.road-board-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 38px !important;
  height: 38px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 3px !important;
  display: grid;
  place-items: center;
}
.road-board-btn img {
  image-rendering: pixelated;
  display: block;
}
.board-sub[hidden] {
  display: none;
}
.board-season {
  flex: 0 1 auto;
  max-width: 9.5em;
  min-width: 0;
  padding: 2px 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #5a3a00;
  background: #fff6d8;
  border: 2px solid #c89a30;
  border-radius: 6px;
}
.board-past {
  margin: 0 0 4px;
}
@media (max-height:440px) {
  .road-board .board-note:not(.keep) {
    display: none;
  }
  .road-board .board-title {
    margin-bottom: 2px;
  }
  .board-past {
    margin: 0 0 3px;
    padding: 1px 4px;
  }
}
.board-main[hidden],
.board-tabs .small-btn[hidden] {
  display: none !important;
}
.board-past {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 3px 6px;
  font: inherit;
  font-size: 13px;
  color: #2a3c8a;
  background: #e8eefc;
  border: 2px solid #4a64b0;
  border-radius: 6px;
}
.road-status-head {
  align-items: flex-start;
}
.road-status-title {
  flex: 1;
  min-width: 0;
}
.road-rules-btn {
  flex: none;
  margin: 0 !important;
  padding: 4px 10px 4px 6px !important;
  min-height: 0 !important;
  font-size: 13px;
  white-space: nowrap;
}
.road-rules-in {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.road-rules-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.road-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  flex: none;
}
.road-entry-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  border: 2px solid #58a060;
  background: #effbe8e0;
  min-width: 0;
}
.road-entry-card.no {
  border-color: #b8b0a0;
  background: #eeebe4d0;
  color: #808080;
}
.road-entry-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.road-entry-top b {
  font-size: 15px;
  color: #303850;
}
.road-entry-card.no .road-entry-top b {
  color: #808080;
}
.road-entry-no {
  font-size: 12px;
  color: #687080;
  white-space: nowrap;
}
.road-entry-mark {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  color: #fff;
  background: #3f9448;
}
.road-entry-card.no .road-entry-mark {
  background: #a09a90;
}
.road-entry-time {
  font-size: 12px;
  color: #404858;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.road-entry-left {
  font-size: 11px;
  font-weight: 700;
  color: #c05028;
  white-space: nowrap;
}
.road-entry-why {
  font-size: 11px;
  color: #908878;
}
.road-entry-warn {
  grid-column: 1/-1;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  padding: 4px 8px;
  background: #fff3c8;
  border: 2px solid #e0b040;
  color: #5a4410;
}
.road-entry-warn::before {
  content: "⚠ ";
  color: #c06010;
  font-weight: 700;
}
.road-entry-warn.none {
  background: #f2efe8;
  border-color: #c0b8a8;
  color: #605850;
}
.road-entry.offline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border: 2px dashed #b0a890;
  background: #f6f2e6;
}
.road-entry.offline b {
  font-size: 13px;
  color: #605840;
}
.road-entry.offline small {
  font-size: 11.5px;
  color: #7a7060;
}
.dialog .road-entry.in-dialog {
  margin-top: 6px;
  flex: 1 0 100%;
}
body[data-screen=champion] .adventure-layout > .panel.road-status {
  overflow-y: auto;
}
body[data-screen=champion] .adventure-layout > .panel.road-right {
  padding: 8px 10px 10px !important;
  gap: 0;
  background: transparent !important;
  border-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.road-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  flex: none;
  position: relative;
  z-index: 1;
  margin-bottom: -3px;
}
.road-tab {
  flex: 1;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 6px 10px 7px !important;
  border-radius: 12px 12px 0 0 !important;
  border: 3px solid #a8822a !important;
  border-bottom-color: transparent !important;
  border-image: none !important;
  background: linear-gradient(#efe2bf, #dccb9c) !important;
  color: #6a5630 !important;
  font-weight: 700;
  font-size: 15px;
  box-shadow: none !important;
  text-shadow: none !important;
}
.road-tab.on {
  background: #fff7de !important;
  color: #a03018 !important;
  border-bottom-color: #fff7de !important;
}
.road-tab:not(.on):hover {
  filter: brightness(1.04);
}
.road-tab-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.road-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.road-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 3px solid #a8822a;
  border-radius: 12px;
  background: #fff7de;
  box-shadow:
    inset 0 0 0 3px #fff7de,
    inset 0 0 0 5px #e2c063,
    0 3px 0 #30385066;
  color: #3a2a14;
}
.road-frame.is-shop {
  box-shadow:
    inset 0 0 0 3px #fff7de,
    inset 0 0 0 5px #e09a60,
    0 3px 0 #30385066;
}
.road-frame .board {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.road-frame .board-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.road-frame .board-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.road-frame .board-body > p,
.road-frame .board-title {
  flex: none;
}
.board-note .board-reward-btn {
  margin: 0 0 0 6px !important;
  min-height: 0 !important;
  padding: 0 8px !important;
  font-size: 11px;
  line-height: 18px;
  vertical-align: baseline;
}
.board-offline {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #6a5630;
}
.board-offline img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  opacity: .8;
}
.board-offline p {
  margin: 0;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.6;
}
.road-frame .road-shop {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.road-frame .road-shop-head {
  justify-content: flex-start;
  gap: 8px;
}
.road-frame .road-shop-head small {
  font-size: 12px;
  color: #7a6040;
}
.dialog.road-rules-dialog {
  --modal-w: 620px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .dialog.road-rules-dialog {
    --modal-w: min(620px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 24px));
  }
}
.road-rules {
  max-height: 520px;
  max-height: min(60vh, 520px);
  overflow: auto;
  text-align: left;
  padding-right: 6px;
}
.road-rules-sec h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  color: #b02818;
}
.road-rules-sec:first-child h3 {
  margin-top: 0;
}
.road-rules-sec ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.65;
}
.road-rules-warn {
  color: #a04010;
}
.rw-table {
  border: 2px solid #d8b860;
  background: #fffaf0;
  margin: 6px 0;
  padding: 4px 8px;
}
.rw-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0 4px;
  border-bottom: 1px solid #e8d8a8;
}
.rw-head b {
  font-size: 14px;
  color: #8a3a18;
}
.rw-head small {
  font-size: 11px;
  color: #7a6040;
}
.rw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed #eadcb8;
}
.rw-row:last-child {
  border-bottom: 0;
}
.rw-rank {
  flex: none;
  min-width: 58px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e6dfcf;
  font-weight: 700;
  font-size: 12px;
  color: #504028;
  box-shadow: inset 0 -2px 0 #00000018;
}
.rw-rank.r1 {
  background: linear-gradient(#ffe680, #e0a820);
  color: #5a3a00;
}
.rw-rank.r2 {
  background: linear-gradient(#fafafa, #b8c0c8);
  color: #404850;
}
.rw-rank.r3 {
  background: linear-gradient(#f4c89a, #c07840);
  color: #fff;
}
.rw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.rw-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px 1px 4px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #d8c8a0;
  font-size: 12px;
  white-space: nowrap;
}
.rw-chip img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.rw-chip .crown-pts img {
  width: 16px;
  height: 16px;
}
.rw-chip b {
  color: #b04878;
  margin-right: 1px;
}
.rw-chip.coins b {
  color: #a07010;
}
.rw-foot {
  margin: 6px 0 0;
  font-size: 12px;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-rules-btn {
    font-size: 11px;
    padding: 2px 7px 2px 4px !important;
  }
  .road-rules-btn img {
    width: 18px;
    height: 18px;
  }
  .road-entry {
    gap: 4px;
  }
  .road-entry-card {
    padding: 2px 7px;
  }
  .road-entry-top b {
    font-size: 13px;
  }
  .road-entry-time,
  .road-entry-left,
  .road-entry-why {
    font-size: 10px;
  }
  .road-entry-mark {
    font-size: 10px;
    line-height: 15px;
  }
  .road-entry-warn {
    font-size: 10px;
    line-height: 1.35;
    padding: 2px 6px;
  }
  .road-tab {
    font-size: 13px;
    padding: 3px 8px 4px !important;
  }
  .road-tab img {
    width: 18px;
    height: 18px;
  }
  .road-frame {
    padding: 6px 8px;
  }
  .road-rules {
    max-height: 58vh;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .road-stat-note {
    display: none;
  }
}
.road-tabs {
  margin-bottom: 8px;
  padding: 0 4px;
  gap: 8px;
}
.road-tab {
  border-radius: 10px !important;
  border: 3px solid #9a8a6a !important;
  background: linear-gradient(#f4ecd8, #ddd0b0) !important;
  color: #6a5a3a !important;
  box-shadow: 0 2px 0 #30385055 !important;
}
.road-tab.is-board.on {
  border-color: #a8822a !important;
  background: linear-gradient(#fff1b0, #e8c050) !important;
  color: #5a3a00 !important;
}
.road-tab.is-shop.on {
  border-color: #6a3e1c !important;
  background: linear-gradient(#f07a5a, #c84834) !important;
  color: #fff !important;
  text-shadow: 0 1px 0 #6a201488 !important;
}
.road-frame {
  position: relative;
}
.road-frame.is-board {
  padding-top: 16px;
  border: 3px solid #a8822a;
  border-radius: 14px;
  background:
    radial-gradient(
      ellipse at 50% 0,
      #fffbe6 0,
      #fff4cf 55%,
      #fbe9b4 100%);
  box-shadow:
    inset 0 0 0 3px #fff6d6,
    inset 0 0 0 5px #e2c063,
    0 3px 0 #30385066;
}
.road-frame.is-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  background: url(/_expedition/assets/ui/champion-trophy.png) center/contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #6a4a1888);
}
.road-frame.is-board::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  pointer-events: none;
  border-radius: 9px;
  background:
    radial-gradient(
      circle,
      #e2b040 0 3px,
      transparent 4px) 0 0/12px 12px no-repeat,
    radial-gradient(
      circle,
      #e2b040 0 3px,
      transparent 4px) 100% 0/12px 12px no-repeat,
    radial-gradient(
      circle,
      #e2b040 0 3px,
      transparent 4px) 0 100%/12px 12px no-repeat,
    radial-gradient(
      circle,
      #e2b040 0 3px,
      transparent 4px) 100% 100%/12px 12px no-repeat;
}
.road-frame.is-board .board-title {
  color: #2a3c8a;
}
.road-frame.is-shop {
  padding: 30px 12px 10px;
  border: 4px solid #6a3e1c;
  border-radius: 6px;
  background: #fdf1df;
  background-image:
    radial-gradient(
      circle at 9px 0,
      #c84834 0 8px,
      transparent 8.5px),
    radial-gradient(
      circle at 9px 0,
      #fff4e4 0 8px,
      transparent 8.5px),
    repeating-linear-gradient(
      90deg,
      #d85040 0,
      #d85040 18px,
      #fff4e4 18px,
      #fff4e4 36px);
  background-size:
    36px 10px,
    36px 10px,
    100% 16px;
  background-position:
    0 16px,
    18px 16px,
    0 0;
  background-repeat:
    repeat-x,
    repeat-x,
    no-repeat;
  box-shadow: inset 0 0 0 2px #b07848, 0 3px 0 #30385066;
}
.road-frame.is-shop .road-shop-head {
  padding: 0 2px;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-tabs {
    margin-bottom: 5px;
  }
  .road-frame.is-board {
    padding-top: 12px;
  }
  .road-frame.is-board::before {
    width: 22px;
    height: 22px;
    top: -10px;
  }
  .road-frame.is-shop {
    padding-top: 24px;
    background-size:
      36px 8px,
      36px 8px,
      100% 12px;
    background-position:
      0 12px,
      18px 12px,
      0 0;
  }
}
button.road-entry-card.pick {
  margin: 0 !important;
  min-height: 0 !important;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
  align-items: stretch;
}
button.road-entry-card.pick.ok {
  border: 2px solid #58a060 !important;
  background: #effbe8 !important;
}
button.road-entry-card.pick.no {
  border: 2px dashed #b0a898 !important;
  background: #f2efe8 !important;
}
button.road-entry-card.pick:hover {
  filter: brightness(1.03);
}
button.road-entry-card.pick:active {
  transform: translateY(1px);
}
.road-entry-check {
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid #8a8a7a;
  border-radius: 3px;
  background: #fff;
  position: relative;
}
.road-entry-check.on {
  border-color: #3f9448;
  background: #3f9448;
}
.road-entry-check.on::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.road-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.road-stat {
  padding: 4px 7px;
}
.road-stat > b {
  font-size: 16px;
}
.road-stat-note {
  display: none;
}
.road-entry-top b {
  white-space: nowrap;
}
.road-entry-time .road-entry-no {
  font-size: inherit;
  color: #303850;
  font-weight: 700;
}
.road-status-head h2 {
  white-space: nowrap;
}
.road-status-head small.muted {
  display: block;
  font-size: 12px;
}
@media (orientation:portrait) {
  .road-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.road-frame.is-board::before {
  content: "★ ★ ★";
  top: -12px;
  width: auto;
  height: auto;
  padding: 1px 14px 2px;
  background: linear-gradient(#ffe48a, #e0a828);
  border: 2px solid #a8822a;
  border-radius: 3px;
  color: #8a4a00;
  font: 700 11px/16px sans-serif;
  letter-spacing: 2px;
  white-space: nowrap;
  filter: none;
  box-shadow: 0 2px 0 #6a4a1866;
  image-rendering: auto;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
}
@media (max-height:470px) and (orientation:landscape) {
  .road-frame.is-board::before {
    top: -10px;
    width: auto;
    height: auto;
    font-size: 9px;
    line-height: 13px;
    padding: 0 12px 1px;
  }
}
.road-frame .board-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.road-frame .board-top .board-tabs {
  flex: 1;
  min-width: 0;
}
.road-frame .road-rules-btn {
  flex: none;
}
.road-frame .board-title {
  justify-content: space-between;
  font-size: 16px;
  margin: 6px 2px 0;
}
.road-frame .board-title small {
  padding: 1px 9px;
  border-radius: 9px;
  background: #f3e2b0;
  border: 1px solid #e2c063;
  color: #7a5418;
  font-size: 11px;
}
.road-frame .board-note {
  margin: 2px 2px 6px;
  font-size: 11px;
  color: #8a7a5a;
  line-height: 1.4;
}
.road-frame .board-list {
  background: #fffdf3;
  border: 1px solid #ecdcae;
  border-radius: 6px;
}
.road-frame .board-row {
  padding: 4px 8px;
}
.road-frame .board-me {
  flex: none;
  margin: 6px 0 0;
  padding: 5px 10px;
  background: #fff0c8;
  border: 2px solid #e2c063;
  border-radius: 6px;
  font-size: 12.5px;
  color: #5a4410;
}
.board-empty {
  flex: 1;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9a8a6a;
}
.board-empty img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  opacity: .55;
}
.board-empty p {
  margin: 0;
  font-size: 13px;
}
.road-status-head {
  align-items: center;
}
.road-status-title h2 {
  line-height: 1.2;
}
.road-status-head small.muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.road-entry-card {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  padding: 5px 8px !important;
}
.road-cal {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 42px;
  border: 2px solid #b04030;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 0 #30385033;
  text-align: center;
}
.road-cal i {
  font-style: normal;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #fff;
  background: #d04838;
}
.road-cal b {
  font-size: 17px;
  line-height: 22px;
  color: #303850;
  white-space: nowrap;
}
.road-cal.week {
  border-color: #3a5aa0;
}
.road-cal.week i {
  background: #4a6ab8;
}
.road-cal.week b {
  font-size: 12px;
  letter-spacing: -.5px;
}
.road-entry-card.no .road-cal {
  filter: grayscale(1);
  opacity: .6;
}
.road-entry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.road-entry-top {
  gap: 5px !important;
}
.road-entry-top .road-entry-no {
  font-size: 12px;
  color: #506078;
  font-weight: 700;
}
.road-entry-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.road-entry-mark .road-entry-check {
  width: 11px;
  height: 11px;
  border-width: 1.5px;
  border-color: #fff;
  background: transparent;
}
.road-entry-mark .road-entry-check.on {
  background: #fff;
  border-color: #fff;
}
.road-entry-mark .road-entry-check.on::after {
  border-color: #3f9448;
  left: 2px;
  top: -1px;
  width: 3px;
  height: 7px;
}
.road-entry-time {
  display: block;
  font-size: 11.5px !important;
}
.board-period {
  flex: none;
  margin: 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5a20;
}
.pf-since {
  color: #7a6040 !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-cal {
    width: 34px;
  }
  .road-cal i {
    font-size: 9px;
    line-height: 11px;
  }
  .road-cal b {
    font-size: 14px;
    line-height: 17px;
  }
  .road-cal.week b {
    font-size: 10px;
  }
  .road-entry-time {
    font-size: 10px !important;
  }
}
.road-entry-card {
  position: relative;
  padding-right: 22px !important;
}
.road-entry-tick {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #a8a090;
  background: #fff;
}
.road-entry-tick.on {
  border-color: #3f9448;
  background: #3f9448;
}
.road-entry-tick.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.road-entry {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 5px !important;
}
.road-entry-card {
  padding: 4px 10px 4px 6px !important;
}
.road-entry-top {
  flex-wrap: nowrap;
}
.road-entry-date {
  font-size: 12px;
  color: #7a6a50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.road-entry-mark {
  position: static !important;
  flex: none;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 12px !important;
  line-height: 22px !important;
  padding: 0 10px 0 6px !important;
  border-radius: 11px !important;
}
.road-entry-mark .road-entry-tick {
  position: relative;
  top: auto;
  right: auto;
  width: 14px;
  height: 14px;
  border-color: #fff;
  background: transparent;
}
.road-entry-mark .road-entry-tick.on {
  background: #fff;
  border-color: #fff;
}
.road-entry-mark .road-entry-tick.on::after {
  border-color: #3f9448;
  left: 3px;
  top: 0;
}
.road-entry-card.no .road-entry-mark {
  background: #a09a90;
}
.road-entry-time {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.road-entry-time .road-entry-left,
.road-entry-time .road-entry-why {
  display: inline;
  font-size: inherit !important;
}
.road-cal {
  align-self: center;
}
.road-links {
  display: flex;
  gap: 6px;
  flex: none;
}
.road-link {
  flex: 1;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 3px 8px !important;
  font-size: 13px;
}
.road-link-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.road-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}
.road-entry-card {
  min-height: 0 !important;
  padding: 3px 8px 3px 5px !important;
  gap: 7px !important;
}
.road-cal {
  width: 36px;
}
.road-cal i {
  font-size: 9px;
  line-height: 12px;
}
.road-cal b {
  font-size: 14px;
  line-height: 18px;
}
.road-cal.week b {
  font-size: 11px;
}
.road-entry-info {
  gap: 0;
}
.road-entry-top b {
  font-size: 14px;
}
.road-entry-time {
  font-size: 11px !important;
  line-height: 1.35;
}
.road-entry-mark {
  align-self: center;
  height: 20px;
  line-height: 20px !important;
  font-size: 11px !important;
  padding: 0 8px 0 5px !important;
}
.road-entry-mark .road-entry-tick {
  width: 12px;
  height: 12px;
}
.road-entry-mark .road-entry-tick.on::after {
  left: 2px;
  top: -1px;
  width: 3px;
  height: 6px;
}
.dialog.road-runs-dialog {
  --modal-w: 600px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .dialog.road-runs-dialog {
    --modal-w: min(600px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 24px));
  }
}
.road-runs {
  max-height: 480px;
  max-height: min(58vh, 480px);
  overflow: auto;
  text-align: left;
}
.road-runs-sum {
  margin: 0 0 6px;
}
.road-runs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 2px solid #d8d0b8;
  background: #fffbec;
  border-left-width: 5px;
}
.rr-row.done {
  border-left-color: #3f9448;
}
.rr-row.lost {
  border-left-color: #c05040;
}
.rr-row.live {
  border-left-color: #d08020;
}
.rr-row.paused {
  border-left-color: #a09a90;
}
.rr-no {
  flex: none;
  min-width: 52px;
  font-size: 12px;
  font-weight: 700;
  color: #687080;
}
.rr-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rr-main b {
  font-size: 16px;
  color: #303850;
}
.rr-main small {
  font-size: 11px;
  color: #7a7060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.rr-state {
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  line-height: 18px;
  border-radius: 9px;
  color: #fff;
  background: #3f9448;
}
.rr-state.lost {
  background: #c05040;
}
.rr-state.live {
  background: #d08020;
}
.rr-state.paused {
  background: #a09a90;
}
.rr-tags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rr-tag {
  font-size: 10.5px;
  padding: 0 6px;
  line-height: 16px;
  border-radius: 8px;
  border: 1px solid #c8b880;
  background: #fff6d8;
  color: #7a5418;
}
.rr-tag.no {
  border-color: #c8c0b0;
  background: #f0ede6;
  color: #8a8478;
}
.road-battles {
  max-height: 480px;
  max-height: min(58vh, 480px);
  overflow: auto;
  text-align: left;
}
.road-battles > .sub {
  margin: 0 0 6px;
}
.rb-row.win {
  border-left-color: #3f9448;
}
.rb-row.fled {
  border-left-color: #a09a90;
}
.rr-tag.ok {
  border-color: #9cc8a0;
  background: #eaf6ea;
  color: #2f6e38;
}
.rr-tag.wait {
  border-color: #c8c0b0;
  background: #f0ede6;
  color: #6a6458;
}
.rb-row .rr-tag.no {
  border-color: #d8a098;
  background: #fbe9e6;
  color: #a03828;
}
.rr-battles,
.rr-btns .small-btn,
.hi-btns .small-btn {
  padding: 1px 10px !important;
  min-height: 0 !important;
  font-size: 12px !important;
  line-height: 20px;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-link {
    font-size: 11px;
    padding: 2px 6px !important;
  }
  .road-link img {
    width: 16px;
    height: 16px;
  }
}
.board-row.tap {
  cursor: pointer;
}
.board-row.tap:hover {
  background: #fff6d6;
}
.board-row.tap:active {
  background: #ffefc0;
}
.board-nm {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.board-in {
  display: inline-flex;
  gap: 3px;
  flex: none;
}
.board-in i {
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  padding: 0 5px;
  border-radius: 7px;
  color: #fff;
  background: #d04838;
}
.board-in i.week {
  background: #4a6ab8;
}
.board-live-n {
  color: #c05028;
}
.dialog.player-dialog {
  --modal-w: 680px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .dialog.player-dialog {
    --modal-w: min(680px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 24px));
  }
}
.player-card {
  max-height: 560px;
  max-height: min(64vh, 560px);
  overflow: auto;
  text-align: left;
  padding-right: 4px;
}
.tc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 2px solid #e2c063;
  border-radius: 10px;
  background:
    linear-gradient(
      100deg,
      #fff7de,
      #fde9c8);
}
.tc-portrait {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
  filter: drop-shadow(0 2px 0 #30385044);
}
.tc-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tc-name {
  font-size: 22px;
  color: #303850;
}
.tc-id small {
  color: #7a6040;
  font-size: 12px;
}
.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tc-chip {
  font-size: 11px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  background: #303850;
  color: #fff;
}
.tc-chip.lv {
  background: #d04838;
}
.tc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 2px;
}
.tc-stat {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  background: #fffbec;
  border: 2px solid #d8d0b8;
  border-radius: 6px;
  min-width: 0;
}
.tc-stat b {
  font-size: 15px;
  color: #303850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-stat small {
  font-size: 11px;
  color: #7a7060;
}
.tc-stat.time {
  border-color: #9ab8d8;
  background: #eef4fb;
}
.tc-stat.shiny b {
  color: #b06a00;
}
.tc-stat.legend b {
  color: #7a3aa0;
}
.tc-stat.road b {
  color: #b02818;
}
.tc-mons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.tc-mon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 2px;
  background: #f6f3e6;
  border: 2px solid #d8d0b8;
  border-radius: 6px;
  min-width: 0;
}
.tc-mon.shiny {
  background: #fff4d8;
  border-color: #e8b040;
}
.tc-mon .pf-pic {
  display: block;
  width: 52px;
  height: 52px;
}
.tc-mon small {
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tc-mon i {
  font-style: normal;
  font-size: 10px;
  color: #7a7060;
}
.tc-empty {
  margin: 0;
  font-size: 12px;
}
@media (max-width:620px), (max-height:470px) and (orientation:landscape) {
  .tc-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tc-portrait {
    width: 56px;
    height: 56px;
  }
  .tc-name {
    font-size: 18px;
  }
}
@media (orientation:portrait) {
  .tc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tc-mons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.road-entry-warn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px !important;
  padding: 0 8px !important;
}
.menu-card.road-card.locked {
  filter: grayscale(.85);
  opacity: .75;
}
.menu-card.road-card.locked .road-logo {
  opacity: .7;
}
body[data-screen=champion] .adventure-layout > .panel.road-right {
  padding: 0 !important;
}
.road-tabs {
  padding: 0 2px;
}
.road-shop .mart-work > .shop-list.held-list {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
}
.road-shop .shop-item {
  grid-template-columns: 40px minmax(7em, 1fr) auto !important;
  column-gap: 8px !important;
}
.road-shop .shop-text {
  min-width: 0;
}
.road-shop .shop-text strong,
.road-shop .shop-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.road-shop .shop-buy {
  min-width: 0;
  align-items: flex-end;
}
.road-shop .shop-buy button {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
}
.road-status-head small.muted {
  font-size: 13px;
}
.road-link {
  font-size: 14px;
}
.road-stat > small:first-child {
  font-size: 12px;
}
.road-stat > b {
  font-size: 17px;
}
.road-entry-top b {
  font-size: 15px;
}
.road-entry-top .road-entry-no {
  font-size: 13px;
}
.road-entry-date {
  font-size: 12.5px;
}
.road-entry-time {
  font-size: 12px !important;
}
.road-entry-mark {
  font-size: 12px !important;
}
.road-entry-warn {
  font-size: 12.5px !important;
}
.road-entry.offline b {
  font-size: 14px;
}
.road-entry.offline small {
  font-size: 12.5px;
}
.road-tab {
  font-size: 16px;
}
.road-frame .board-main .small-btn,
.road-frame .board-sub .small-btn {
  font-size: 13px;
}
.road-frame .board-title {
  font-size: 17px;
}
.road-frame .board-title small {
  font-size: 12px;
}
.road-frame .board-note {
  font-size: 12px;
}
.road-frame .board-row {
  font-size: 14px;
}
.road-frame .board-name .board-run {
  font-size: 12px;
}
.road-frame .board-me {
  font-size: 13px;
}
.board-empty p {
  font-size: 14px;
}
.road-shop-say {
  font-size: 12.5px;
}
.road-shop .shop-text small {
  font-size: 12px;
}
.road-shop .shop-text strong {
  font-size: 14.5px;
}
.road-cal i {
  font-size: 10px;
}
.road-cal b {
  font-size: 15px;
}
.road-cal.week b {
  font-size: 12px;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-status-head small.muted {
    font-size: 11.5px;
  }
  .road-link {
    font-size: 12px;
  }
  .road-stat > small:first-child {
    font-size: 11.5px;
  }
  .road-stat > b {
    font-size: 15px;
  }
  .road-entry-top b {
    font-size: 14px;
  }
  .road-entry-top .road-entry-no,
  .road-entry-date {
    font-size: 12px;
  }
  .road-entry-time,
  .road-entry-mark,
  .road-entry-warn {
    font-size: 11.5px !important;
  }
  .road-tab {
    font-size: 14px;
  }
  .road-frame .board-main .small-btn,
  .road-frame .board-sub .small-btn {
    font-size: 12px;
  }
  .road-frame .board-title {
    font-size: 15px;
  }
  .road-frame .board-title small,
  .road-frame .board-note,
  .road-frame .board-name .board-run {
    font-size: 11.5px;
  }
  .road-frame .board-row {
    font-size: 13px;
  }
  .road-frame .board-me {
    font-size: 12px;
  }
  .road-shop-say,
  .road-shop .shop-text small {
    font-size: 11.5px;
  }
  .road-shop .shop-text strong {
    font-size: 13px;
  }
}
.item-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  max-width: 520px;
}
.item-info-icon {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: #f6f3e6;
  border: 2px solid #d8d0b8;
  border-radius: 8px;
}
.item-info-icon img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.item-info-main {
  min-width: 0;
  flex: 1;
}
.item-info-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}
.item-info-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  margin: 0;
  font-size: 13px;
}
.item-info-facts dt {
  color: #7a7060;
}
.item-info-facts dd {
  margin: 0;
  font-weight: 700;
  color: #303850;
}
.tm-move {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f6f3e6;
  border: 2px solid #d8d0b8;
  border-radius: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 520px;
}
.tm-move[hidden] {
  display: none;
}
.tm-move-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tm-move-head img {
  width: 20px;
  height: 20px;
}
.tm-move-head strong {
  font-size: 15px;
}
.tm-move .tm-move-stats {
  margin: 0;
  font-size: 12px;
  color: #505868;
}
.tm-move .tm-move-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.dx-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 560px;
  width: min(560px, 82vw);
}
.dx-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dx-pic {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #f6f3e6;
  border: 2px solid #d8d0b8;
  border-radius: 8px;
  overflow: hidden;
}
.dx-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dx-info .dx-ability {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dx-ability b {
  font-size: 13px;
  color: #b05048;
}
.dx-ability small {
  font-size: 12px;
  color: #687080;
  line-height: 1.4;
}
.dx-stats {
  max-width: 420px;
}
.dx-moves .set-h {
  margin: 2px 0;
}
.dx-info .dx-move-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #404858;
}
.dx-move-list span {
  white-space: nowrap;
}
.dx-info .dx-move-list small {
  display: inline;
  color: #8a7a60;
  margin-right: 3px;
  font-size: 11px;
}
.dex-panel .dex-icon[data-species]:not(.unseen) {
  cursor: pointer;
}
@media (max-height:470px) {
  .dx-info {
    gap: 5px;
  }
  .dx-pic {
    width: 56px;
    height: 56px;
  }
  .dx-ability small {
    font-size: 11px;
  }
  .dx-stats .sp-stat {
    font-size: 11px;
  }
}
.remote-summary li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.remote-summary li .rs-pic {
  flex: none;
  display: block;
  width: 34px;
  height: 34px;
}
.remote-summary li.down .rs-pic {
  filter: grayscale(1);
  opacity: .55;
}
.hi-team {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 8px;
  margin: 3px 0;
}
.hi-team > small {
  color: #7a7060;
  font-size: 12px;
}
.hi-mons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.hi-mon {
  display: block;
  width: 40px;
  height: 40px;
  background: #f6f3e6;
  border: 1px solid #d8d0b8;
  border-radius: 6px;
}
.hi-mon .pf-pic {
  display: block;
  width: 38px;
  height: 38px;
}
.other-profile .pf-recent {
  margin-top: 6px;
}
.net-corner {
  left: auto !important;
  bottom: auto !important;
  right: calc(var(--safe-right,0px) + 8px);
  top: calc(var(--safe-top,0px) + 8px);
}
.net-corner.in-hud {
  position: static !important;
  order: -1;
  align-self: center;
  margin: 0 4px 0 0;
}
.field-net {
  align-self: flex-start;
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(10, 16, 30, .62);
}
.field-net .net-badge {
  color: #e8eefc !important;
  font-size: 12px;
}
.field-pause-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.field-pause-col .field-net {
  align-self: center;
}
.me-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.me-pool-head h3 {
  margin: 0;
}
.me-sort {
  display: flex;
  gap: 4px;
}
.me-sort .small-btn {
  padding: 2px 8px !important;
  font-size: 12px;
}
.me-sort .on {
  background: #f0d898;
}
.road-watch-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  background: #fffbecb0;
  border: 2px solid #c8c0a8;
  cursor: pointer;
  flex: none;
}
.road-watch-opt input {
  width: 18px;
  height: 18px;
  accent-color: #c08018;
  flex: none;
  margin: 0;
}
.road-watch-opt span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.road-watch-opt b {
  font-size: 13px;
}
.road-watch-opt small {
  font-size: 10.5px;
  color: #6a6458;
}
.road-watch-opt.on {
  border-color: #c08018;
  background: #fff4cc;
}
.road-watchers-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #c08018;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.road-watchers-badge[hidden] {
  display: none;
}
.board-row .board-watch {
  margin-left: 0;
  flex: none;
  padding: 2px 8px;
  font-size: 12px;
  border: 2px solid #c08018;
  background: #fff4cc;
  color: #8a5a08;
  font-weight: 700;
}
.board-row .board-watch small {
  font-size: 10px;
  color: #a07028;
}
.board-in i {
  font-style: normal;
  white-space: nowrap;
}
.road-watch-state {
  margin: 6px 0;
  padding: 6px 9px;
  background: #eef6ff;
  border: 2px solid #9cb8d8;
  font-size: 13px;
  font-weight: 700;
  color: #30486a;
}
.road-watch-state.bad {
  background: #fff0ec;
  border-color: #d8a090;
  color: #8a3020;
}
.road-watch-party {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.road-watch-team {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.road-watch-team .party-thumb {
  position: relative;
}
.road-seats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.road-seat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 4px;
}
.road-seat-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fffbecb0;
  border: 2px solid #c8c0a8;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.road-seat-list li b {
  color: #c08018;
  font-size: 11px;
  flex: none;
}
.road-watch-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.road-watch-periods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.road-watch-periods i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  color: #fff;
  background: #8a8478;
}
.road-watch-periods i.day {
  background: #d04848;
}
.road-watch-periods i.week {
  background: #4868b0;
}
.board-row .board-best {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.board-row .board-watch {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
  padding: 0 6px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 18px;
}
.board-row .board-watch small {
  display: inline;
}
.board-note.one-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-row .board-nm {
  flex-wrap: wrap;
  row-gap: 1px;
}
@media (max-width:960px) {
  .board-row .board-watch small {
    display: none;
  }
}
.road-watching-field .field-caption {
  opacity: .85;
}
body.road-watching .pb-moves,
body.road-watching .pb-stick,
body.road-watching .pe-stick-zone,
body.road-watching .pb-dodge,
body.road-watching .escape-dock,
body.road-watching .auto-battle,
body.road-watching .auto-swap,
body.road-watching .pe-dpad {
  display: none !important;
}
.road-sum-boards {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 2px;
}
.road-sum-board {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.road-sum-board b {
  color: #fff;
  font-size: 12px;
  padding: 1px 7px;
  background: #d04848;
}
.road-sum-board.week b {
  background: #4868b0;
}
.road-sum-board span {
  font-size: 13px;
  color: #6a6458;
}
.road-sum-board span.ok {
  color: #303850;
  font-weight: 700;
}
.road-links .road-watch-link .road-watch-eye {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  image-rendering: pixelated;
}
.road-links .road-watch-link.on {
  border-color: #c08018;
  background: #fff4cc;
  color: #8a5a08;
}
.road-links {
  gap: 4px;
}
.road-links .road-link {
  padding-left: 4px;
  padding-right: 4px;
  min-width: 0;
}
.road-links .road-link-in {
  white-space: nowrap;
  gap: 2px;
  font-size: 11.5px;
}
.road-links .road-link-in img {
  width: 18px;
  height: 18px;
}
.road-links .road-watch-link .road-watch-eye {
  width: 16px;
  height: 16px;
}
.road-watch-side .road-side-row {
  align-items: center;
  gap: 6px;
}
.road-watch-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(10, 16, 30, .62);
  color: #e8eefc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.road-watch-pill:empty {
  display: none;
}
.road-watch-pill .net-badge {
  color: #e8eefc !important;
  font-size: 12px;
}
.road-watch-pause {
  min-width: 40px !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
}
.resource-pill.pill-link {
  cursor: pointer;
}
.resource-pill.pill-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.road-links {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.road-links .road-link {
  min-height: var(--ui-btn-sm-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-weight: 700;
}
.road-links .road-link-in {
  font-size: var(--ui-btn-sm-fs);
  max-width: 100%;
}
.road-actions .road-go {
  white-space: nowrap;
}
@media (orientation:portrait) {
  .road-actions .road-go {
    letter-spacing: 0;
  }
  .road-entry-time {
    white-space: normal !important;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  body[data-screen=champion] .adventure-layout > .panel.road-status {
    gap: 5px !important;
    padding-top: 6px !important;
  }
  .road-status-head {
    gap: 6px;
  }
  .road-status-logo {
    height: 30px;
  }
  .road-status-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }
  .road-status-title h2 {
    flex: none;
    font-size: var(--ui-fs-title) !important;
  }
  .road-status-head small.muted {
    flex: 1;
    min-width: 0;
    font-size: 11px;
  }
  .road-links .road-link-in {
    font-size: 11.5px;
    gap: 3px;
  }
  .road-links .road-link-in img,
  .road-links .road-watch-link .road-watch-eye {
    width: 16px;
    height: 16px;
  }
  .road-stats {
    gap: 4px;
  }
  .road-stat {
    padding: 1px 6px !important;
    gap: 0;
  }
  .road-stat > small:first-child {
    font-size: 10.5px;
  }
  .road-stat > b {
    font-size: var(--ui-fs-num);
    line-height: 1.2;
  }
  .road-entry {
    gap: 4px !important;
  }
  .road-entry-card {
    padding: 2px 6px 2px 4px !important;
    gap: 6px !important;
    min-height: 0;
  }
  .road-cal {
    width: 32px;
  }
  .road-cal i {
    font-size: 9px !important;
    line-height: 11px;
  }
  .road-cal b {
    font-size: 12px !important;
    line-height: 16px;
  }
  .road-cal.week b {
    font-size: 10px !important;
    letter-spacing: -.5px;
  }
  .road-entry-info {
    gap: 0 !important;
  }
  .road-entry-top b {
    font-size: 13px !important;
    line-height: 16px;
  }
  .road-entry-top .road-entry-no {
    font-size: 11px !important;
  }
  .road-entry-date {
    font-size: 11px !important;
  }
  .road-entry-time {
    font-size: 11px !important;
    line-height: 14px;
  }
  .road-entry-mark {
    height: 18px;
    line-height: 18px !important;
    font-size: 10.5px !important;
    padding: 0 7px 0 4px !important;
  }
  .road-entry-warn {
    line-height: 18px !important;
    font-size: 11px !important;
  }
  .road-entry.offline {
    padding: 3px 8px;
  }
  .road-entry.offline b {
    font-size: 12px;
  }
  .road-entry.offline small {
    font-size: 11px;
    line-height: 1.35;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  body[data-screen=champion] .adventure-layout > .panel.road-status {
    gap: 3px !important;
  }
  .road-entry {
    gap: 3px !important;
  }
  .road-actions .road-go,
  .road-actions .road-pack-btn {
    min-height: 36px !important;
  }
  .road-links .road-link {
    min-height: 24px !important;
  }
  .road-status-logo {
    height: 26px;
  }
  .road-entry-card {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
  }
  body[data-screen=champion] .adventure-layout > .panel.road-status {
    padding-top: 4px !important;
  }
}
.road-tab {
  border-radius: 0 !important;
  border-width: 3px !important;
  background: #e8dcbc !important;
  box-shadow:
    inset 0 3px 0 #fff8e8,
    inset 0 -3px 0 #c8b488,
    0 3px 0 #30385066 !important;
  text-shadow: none !important;
}
.road-tab.is-board.on {
  background: #f8d050 !important;
  border-color: #8a6418 !important;
  color: #5a3a00 !important;
  box-shadow:
    inset 0 3px 0 #fff0a0,
    inset 0 -3px 0 #d8a020,
    0 3px 0 #30385066 !important;
}
.road-tab.is-shop.on {
  background: #d85040 !important;
  border-color: #6a2a18 !important;
  color: #fff !important;
  box-shadow:
    inset 0 3px 0 #f08868,
    inset 0 -3px 0 #a83828,
    0 3px 0 #30385066 !important;
}
.road-tab:active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 0 #0000001a, 0 1px 0 #30385066 !important;
}
.road-frame.is-board {
  border-radius: 0;
  background: #fff4d0;
  box-shadow:
    inset 0 0 0 3px #fff9e4,
    inset 0 0 0 6px #e2c063,
    0 4px 0 #30385066;
}
.road-frame.is-board::after {
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 0;
  background:
    linear-gradient(#c89020, #c89020) 0 0/6px 6px no-repeat,
    linear-gradient(#c89020, #c89020) 100% 0/6px 6px no-repeat,
    linear-gradient(#c89020, #c89020) 0 100%/6px 6px no-repeat,
    linear-gradient(#c89020, #c89020) 100% 100%/6px 6px no-repeat;
}
.road-frame.is-board::before {
  background: #f8d050;
  border-radius: 0;
  box-shadow:
    inset 0 2px 0 #fff0a0,
    inset 0 -2px 0 #d8a020,
    0 2px 0 #6a4a1866;
  font-family: var(--font);
  image-rendering: pixelated;
}
.road-frame.is-shop {
  border-radius: 0;
  background-color: #fdf1df;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='36' height='24' shape-rendering='crispEdges'><rect x='0' y='0' width='6' height='5' fill='%23d85040'/><rect x='6' y='0' width='6' height='5' fill='%23fff4e4'/><rect x='0' y='5' width='6' height='1' fill='%23d85040'/><rect x='1' y='6' width='4' height='1' fill='%23d85040'/><rect x='2' y='7' width='2' height='1' fill='%23a83828'/><rect x='0' y='6' width='1' height='1' fill='%23a83828'/><rect x='5' y='6' width='1' height='1' fill='%23a83828'/><rect x='1' y='7' width='1' height='1' fill='%23a83828'/><rect x='4' y='7' width='1' height='1' fill='%23a83828'/><rect x='6' y='5' width='6' height='1' fill='%23fff4e4'/><rect x='7' y='6' width='4' height='1' fill='%23fff4e4'/><rect x='8' y='7' width='2' height='1' fill='%23c8a888'/><rect x='6' y='6' width='1' height='1' fill='%23c8a888'/><rect x='11' y='6' width='1' height='1' fill='%23c8a888'/><rect x='7' y='7' width='1' height='1' fill='%23c8a888'/><rect x='10' y='7' width='1' height='1' fill='%23c8a888'/></svg>");
  background-size: 36px 24px;
  background-position: 0 0;
  background-repeat: repeat-x;
  box-shadow: inset 0 0 0 2px #b07848, 0 4px 0 #30385066;
}
@media (max-height:470px) and (orientation:landscape) {
  .road-frame.is-shop {
    background-size: 27px 18px;
    background-position: 0 0;
    padding-top: 24px;
  }
}
.board-sub .small-btn {
  border-radius: 0 !important;
  box-shadow: 0 2px 0 #2a3c8a55 !important;
}
.board-sub .small-btn.on {
  box-shadow: inset 0 2px 0 #8aa0e0, 0 2px 0 #2a3c8a55 !important;
}
.road-frame .board-title small {
  border-radius: 0;
  border-width: 2px;
  box-shadow: 0 2px 0 #c8a05055;
}
.road-frame .board-list {
  border-radius: 0;
  border: 2px solid #e2c063;
  background: #fffdf3;
}
.road-frame .board-row {
  border-bottom: 2px solid #f0e2bc;
}
.road-frame .board-row:last-child {
  border-bottom: 0;
}
.road-frame .board-me {
  border-radius: 0;
  box-shadow: inset 0 2px 0 #fff8e0, 0 2px 0 #c8a05055;
}
.board-in i {
  border-radius: 0;
}
.board-row .board-watch {
  border-radius: 0 !important;
  box-shadow: 0 2px 0 #c0801855;
}
.board-help {
  border-radius: 0 !important;
}
.champion-sub button.selected {
  background: #f8d050 !important;
  box-shadow: inset 0 0 0 2px #b07818, inset 0 3px 0 #fff0a0 !important;
}
.road-entry-mark {
  border-radius: 0 !important;
  box-shadow: inset 0 2px 0 #ffffff40, inset 0 -2px 0 #00000026;
}
.road-cal {
  border-radius: 0;
}
.ticket-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.ticket-qty .ticket-step {
  width: 26px !important;
  min-width: 0 !important;
  height: 26px !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1;
}
.ticket-qty-n {
  min-width: 1.6em;
  text-align: center;
  font-size: 15px;
  color: #303850;
}
.ticket-row .ticket-buy {
  min-width: 7.5em;
}
.pull-results.many {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  width: min(100%, 1100px);
  max-width: none;
}
.pull-results.many .pcard {
  width: auto;
  min-width: 0;
  padding: 3px 2px 4px;
}
.pull-results.many .pcard .stars {
  font-size: 9px;
  gap: 2px;
}
.pull-results.many .pcard .stars img {
  width: 10px;
  height: 10px;
}
.pull-results.many .pcard-art {
  height: 44px;
}
.pull-results.many .pcard b {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pull-results.many .pcard .tag {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width:760px), (max-height:470px) {
  .gacha-back .dialog-actions {
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }
  .gacha-back .dialog-actions {
    gap: 3px !important;
  }
  .gacha-back .dialog-actions button {
    flex: none !important;
    padding: 0 5px !important;
    font-size: 12px !important;
    min-width: 0 !important;
    white-space: nowrap;
  }
  .gacha-back .dialog-actions .item-btn > :first-child {
    width: 14px !important;
    height: 14px !important;
  }
}
.gacha {
  position: relative;
}
.dialog .multi-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  color: #fff;
  border: 4px solid #0a1430;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 210, 63, .28),
      transparent 42%),
    radial-gradient(
      circle at 10% 90%,
      rgba(196, 123, 255, .3),
      transparent 50%),
    linear-gradient(
      135deg,
      var(--mc1),
      var(--mc2) 55%,
      var(--mc3));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
  animation: survivor-pop .18s ease-out both;
}
.multi-panel button {
  font-family: var(--font) !important;
  border-image: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  text-transform: none;
}
.multi-panel button:active:not(:disabled) {
  transform: translateY(2px);
}
.multi-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.multi-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.multi-title b {
  font-size: 24px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #0a1430;
}
.multi-title small {
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi-panel .multi-x {
  width: 32px !important;
  height: 32px !important;
  border: 3px solid #0a1430 !important;
  background: #fffaf0 !important;
  color: #0a1430 !important;
  font-size: 20px !important;
  line-height: 1;
  box-shadow: 0 3px 0 #0a1430 !important;
}
.multi-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: center;
}
.multi-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.multi-screen {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #140c26;
  border: 4px solid #0a1430;
  box-shadow: inset 0 0 0 2px #3a2c60, 0 4px 0 #0a1430;
}
.multi-led {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 4.6em;
  padding: 2px 6px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, .04) 0 2px,
      transparent 2px 4px);
}
.multi-digits {
  font: 700 46px/1 var(--font);
  color: #ffd23f;
  text-shadow: 0 0 10px rgba(255, 210, 63, .65), 3px 3px 0 #6a3a00;
}
.multi-led em {
  font-style: normal;
  font-size: 14px;
  color: #ffe9a8;
}
.multi-panel .multi-arrow {
  width: 38px !important;
  height: 48px !important;
  border: 3px solid #0a1430 !important;
  background: #ffd23f !important;
  color: #5a3a00 !important;
  font-size: 18px !important;
  box-shadow:
    inset 0 -4px 0 #c89a10,
    inset 0 3px 0 #fff0a0,
    0 3px 0 #0a1430 !important;
}
.multi-panel .multi-arrow:disabled {
  background: #6a6478 !important;
  color: #a8a4b4 !important;
  box-shadow: inset 0 -4px 0 #4a4458, 0 3px 0 #0a1430 !important;
  cursor: default;
}
.multi-quicks {
  display: flex;
  gap: 6px;
}
.multi-panel .multi-quick {
  width: 46px !important;
  height: 28px !important;
  border: 2px solid #0a1430 !important;
  background: rgba(255, 250, 240, .9) !important;
  color: #0a1430 !important;
  font-size: 14px !important;
  font-weight: 700;
  box-shadow: 0 2px 0 #0a1430 !important;
}
.multi-panel .multi-quick.on {
  background: #ffd23f !important;
  box-shadow: inset 0 -3px 0 #c89a10, 0 2px 0 #0a1430 !important;
}
.multi-pay {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.multi-pay-h {
  font-size: 12px;
  opacity: .9;
  letter-spacing: 1px;
}
.multi-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #fffaf0;
  color: #2a2440;
  border: 3px solid #0a1430;
  box-shadow: inset 0 -3px 0 #e2d8c0, 0 3px 0 #0a1430;
  min-width: 0;
}
.multi-card.zero {
  opacity: .55;
}
.multi-card.short {
  background: #ffe2dc;
  box-shadow: inset 0 -3px 0 #f0b0a4, 0 3px 0 #0a1430;
}
.multi-card-ic {
  flex: none;
  display: flex;
}
.multi-card-ic > * {
  image-rendering: pixelated;
}
.multi-card-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.multi-card-txt small {
  font-size: 11px;
  color: #6a6480;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi-card-txt i {
  font-style: normal;
  font-size: 11px;
  color: #8a8498;
}
.multi-count {
  font: 700 24px/1.1 var(--font);
  color: #2a2440;
}
.multi-adj {
  display: flex;
  align-items: center;
  gap: 8px;
}
.multi-panel .multi-adj-btn {
  width: 28px !important;
  height: 26px !important;
  border: 2px solid #0a1430 !important;
  background: #e8eefc !important;
  color: #2a3c8a !important;
  font-size: 16px !important;
  font-weight: 700;
  box-shadow: 0 2px 0 #0a1430 !important;
}
.multi-panel .multi-adj-btn:disabled {
  background: #e4e0d8 !important;
  color: #b0aca0 !important;
  cursor: default;
}
.multi-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: .92;
}
.multi-warn.bad {
  color: #ffd8cc;
  font-weight: 700;
  opacity: 1;
}
.multi-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
}
.multi-foot .multi-warn {
  text-align: center;
}
.multi-panel .multi-go {
  min-width: 240px !important;
  height: 46px !important;
  padding: 0 18px !important;
  border: 3px solid #0a1430 !important;
  background: #e8483a !important;
  color: #fff !important;
  font-size: 19px !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #7a1810;
  box-shadow:
    inset 0 -4px 0 #a8281c,
    inset 0 3px 0 #ff8a70,
    0 4px 0 #0a1430 !important;
}
.multi-panel .multi-go:disabled {
  background: #7a7488 !important;
  text-shadow: none;
  box-shadow: inset 0 -4px 0 #5a5468, 0 4px 0 #0a1430 !important;
  cursor: default;
}
.multi-open .dialog-actions {
  visibility: hidden;
}
.multi-open .dialog {
  position: relative;
  overflow: hidden !important;
  background: transparent !important;
  border-color: transparent !important;
  border-image: none !important;
  box-shadow: none !important;
}
.multi-open .dialog > :not(.multi-panel) {
  visibility: hidden;
}
@media (max-height:470px) {
  .dialog .multi-panel {
    padding: 6px 10px 8px;
    gap: 4px;
  }
  .multi-title b {
    font-size: 18px;
  }
  .multi-digits {
    font-size: 34px;
  }
  .multi-panel .multi-arrow {
    width: 30px !important;
    height: 38px !important;
  }
  .multi-card {
    padding: 3px 8px;
    gap: 8px;
  }
  .multi-count {
    font-size: 18px;
  }
  .multi-card-ic > * {
    width: 30px !important;
    height: 30px !important;
  }
  .multi-panel .multi-go {
    height: 36px !important;
    font-size: 16px !important;
  }
  .multi-dial {
    gap: 6px;
  }
}
@media (orientation:portrait) {
  .multi-body {
    grid-template-columns: 1fr;
  }
}
.multi-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  max-width: 213px;
  min-height: 18px;
}
.multi-balls img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 #0a1430);
}
.multi-balls img.t1 {
  opacity: .85;
}
.multi-balls-cap {
  font-size: 11px;
  opacity: .85;
  text-align: center;
}
@media (max-height:470px) {
  .multi-balls {
    max-width: 173px;
  }
  .multi-balls img {
    width: 14px;
    height: 14px;
  }
}
.multi-top small,
.multi-pay-h,
.multi-balls-cap {
  color: #efeaff !important;
  text-shadow: 1px 1px 0 rgba(10, 20, 48, .6);
}
.rpt-box {
  max-width: 560px;
}
.rpt-box .sub {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
}
.rpt-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.rpt-reasons .chip {
  padding: 4px 10px !important;
  font-size: 13px;
}
.rpt-detail {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border: 2px solid #8890a8;
  background: #f4f4e8;
  color: #404858;
  padding: 8px;
  font-size: 13px;
  line-height: 1.5;
  user-select: text;
  border-radius: 0;
}
.remote-report {
  opacity: .85;
}
.hb-panel {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-columns: clamp(132px, 18vw, 210px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  overflow: hidden !important;
  padding: 8px !important;
  box-sizing: border-box;
}
.hb-bar {
  display: none;
}
.hb-nav {
  grid-row: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px;
  background: #fffbec;
  border: 2px solid #d8ccaa;
  overscroll-behavior: contain;
}
.hb-main {
  grid-row: 1;
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 0 6px 10px 2px;
  overscroll-behavior: contain;
}
.hb-gh {
  margin: 6px 4px 1px;
  font-size: 11px;
  font-weight: 700;
  color: #8a6a40;
  letter-spacing: 1px;
}
.hb-gh:first-child {
  margin-top: 2px;
}
.hb-nav .hb-ni {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 3px 8px !important;
  min-height: 0 !important;
  height: auto !important;
  text-align: left;
  font-size: 12.5px !important;
  line-height: 1.35;
  font-weight: 400;
  color: #404858;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-nav .hb-ni:hover {
  background: #fff1c8 !important;
}
.hb-nav .hb-ni.on {
  background: #f0d898 !important;
  box-shadow: inset 3px 0 #c85848 !important;
  font-weight: 700;
  color: #303850;
}
.hb-multi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding-bottom: 2px;
}
.hb-multi.on > .hb-mt {
  background: #f0d898 !important;
  box-shadow: inset 3px 0 #c85848 !important;
  font-weight: 700;
}
.hb-gens {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 4px 0 10px;
}
.hb-nav .hb-gen {
  margin: 0 !important;
  padding: 0 5px !important;
  min-height: 0 !important;
  height: auto !important;
  min-width: 20px;
  font-size: 11px !important;
  line-height: 18px;
  background: #fff !important;
  border: 1px solid #d8ccaa !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #605848;
}
.hb-nav .hb-gen.on {
  background: #c85848 !important;
  border-color: #c85848 !important;
  color: #fff;
}
.hb-nav > * {
  flex: none;
}
.hb-wait {
  margin: 6px;
  font-size: 12px;
  color: #8a8478;
}
.hb-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 6px;
  padding-bottom: 3px;
  border-bottom: 2px solid #d8ccaa;
}
.hb-head h1 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25;
  color: var(--ui-c-title,#303850);
}
.hb-head small {
  font-size: 11px;
  color: #8a7a60;
}
.hb-doc {
  font-size: 13px;
  line-height: 1.5;
  color: #404858;
}
.hb-doc p {
  margin: 3px 0;
}
.hb-doc .hb-h {
  margin: 10px 0 3px;
  line-height: 1.3;
  color: #303850;
  scroll-margin-top: 4px;
}
.hb-doc h2.hb-h {
  font-size: 15.5px;
  padding-left: 6px;
  border-left: 4px solid #c85848;
}
.hb-doc h3.hb-h {
  font-size: 14px;
}
.hb-doc h4.hb-h,
.hb-doc h5.hb-h {
  font-size: 13px;
}
.hb-doc ul,
.hb-doc ol {
  margin: 2px 0;
  padding-left: 18px;
}
.hb-doc li {
  margin: 1px 0;
}
.hb-doc li > ul,
.hb-doc li > ol {
  margin: 0;
}
.hb-doc hr {
  border: 0;
  border-top: 2px dashed #d8ccaa;
  margin: 8px 0;
}
.hb-doc code {
  padding: 0 3px;
  font-size: 12px;
  background: #0000000d;
}
.hb-doc .hb-quote {
  margin: 4px 0;
  padding: 3px 8px;
  background: #fff6dc;
  border-left: 3px solid #c8a050;
  font-size: 12.5px;
}
.hb-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 4px 0;
}
.hb-table table {
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}
.hb-table th,
.hb-table td {
  padding: 2px 6px;
  border: 1px solid #d8ccaa;
  text-align: left;
  vertical-align: top;
}
.hb-table th {
  background: #efe4c4;
  white-space: nowrap;
}
.hb-table tr:nth-child(even) td {
  background: #fffbec;
}
.hb-link {
  color: #3a56a8;
  text-decoration: underline;
  cursor: pointer;
}
.hb-link.ext::after {
  content: "↗";
  font-size: 10px;
  margin-left: 1px;
}
.hb-mon {
  color: #b05048;
  border-bottom: 1px dotted #b05048;
  cursor: pointer;
}
.hb-flash {
  animation: hb-flash 1.6s ease-out;
}
@keyframes hb-flash {
  0%, 30% {
    background: #ffe08a;
  }
  100% {
    background: transparent;
  }
}
.hb-main .gen-tabs {
  margin: 2px 0 6px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.hb-main .gen-tab {
  min-width: 0;
}
.hb-main .gen-tab b {
  font-size: 9px;
  font-size: clamp(9px, 1.25vw, 12px);
}
.hb-main .gen-tab small {
  display: block;
  font-size: 8px;
  font-size: clamp(8px, 1.05vw, 10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-main .dex-sum {
  margin: 0 0 6px;
  font-size: 12px;
}
.hb-main .dex-regions {
  gap: 6px;
}
.hb-main .dex-national {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 4px;
  padding: 6px;
  background: #ffffff50;
  border: 2px solid #b8c0d0;
}
@media (orientation:portrait) {
  .hb-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px;
  }
  .hb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .hb-bar > b {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #303850;
  }
  .hb-bar .hb-toggle {
    flex: none;
    margin: 0 !important;
  }
  .hb-nav {
    grid-row: 2;
    display: none;
    max-height: 340px;
    max-height: min(46vh, 340px);
  }
  .hb-panel.nav-open .hb-nav {
    display: flex;
  }
  .hb-main {
    grid-row: 3;
  }
}
@media (orientation:portrait) {
  main.page > .hb-panel {
    height: calc(var(--game-height,var(--app-vh, 100vh)) - 150px) !important;
    max-height: none !important;
  }
}
@media (max-height:470px) {
  .hb-panel {
    padding: 6px !important;
    gap: 6px;
  }
  .hb-head h1 {
    font-size: 16px !important;
  }
  .hb-doc {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .hb-main .gen-tabs {
    margin: 0 0 4px;
  }
}
.hb-main {
  background: #fffdf3;
  border: 2px solid #d8ccaa;
  padding: 8px 12px 14px !important;
  box-shadow: inset 0 0 0 2px #fffaf0;
}
.hb-head {
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 4px 10px;
  border: 2px solid #c8a050;
  background: linear-gradient(#f6ebc8, #ecdcaa);
  box-shadow: inset 0 2px 0 #fff8e0, 0 2px 0 #c8a05055;
}
.hb-head h1 {
  color: #7a3a20 !important;
  letter-spacing: 1px;
}
.hb-head > .ui-pixel-icon {
  flex: none;
}
.hb-ver {
  margin-left: auto;
  padding: 0 8px;
  font-size: 11px;
  line-height: 18px;
  color: #fff;
  background: #5a6a90;
  border: 1px solid #3a4870;
  box-shadow: inset 0 1px 0 #8a9ac0;
  white-space: nowrap;
}
.hb-head small {
  color: #8a6a40;
}
.hb-doc h2.hb-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 6px;
  padding: 3px 9px;
  font-size: 15px;
  color: #fff;
  background: #5a6a90;
  border: 0;
  border-left: 0;
  box-shadow: inset 0 -2px 0 #3a4870, 0 2px 0 #3a487030;
}
.hb-doc h2.hb-h::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: #f0c040;
  box-shadow: inset -2px -2px 0 #c89020;
}
.hb-doc h2.hb-h .hb-ent {
  color: #fff;
  border-bottom-color: #ffffff80;
}
.hb-doc h3.hb-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 4px;
  padding-bottom: 2px;
  font-size: 14px;
  color: #a04830;
  border-bottom: 2px dotted #e0c890;
}
.hb-doc h3.hb-h::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: #c85848;
}
.hb-doc h4.hb-h,
.hb-doc h5.hb-h {
  color: #5a6a90;
}
.hb-doc strong {
  color: #8a3a20;
}
.hb-doc code {
  padding: 0 4px;
  color: #604020;
  background: #f3ead2;
  border: 1px solid #ddcfa8;
}
.hb-doc ul {
  list-style: none;
  padding-left: 14px;
}
.hb-doc ul > li {
  position: relative;
}
.hb-doc ul > li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: .62em;
  width: 5px;
  height: 5px;
  background: #c8a050;
}
.hb-doc ul ul > li::before {
  background: #9aa8c8;
}
.hb-doc ol > li::marker {
  color: #c85848;
  font-weight: 700;
}
ul.hb-def {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  margin: 4px 0;
}
ul.hb-def > li {
  margin: 0;
  padding: 4px 9px;
  background: #fff7e0;
  border: 1px solid #ead9aa;
  border-left: 4px solid #c8a050;
}
ul.hb-def > li::before {
  display: none;
}
ul.hb-def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.hb-doc .hb-quote {
  margin: 6px 0;
  padding: 5px 10px;
  background: #eef3fd;
  border: 1px solid #bccbe8;
  border-left: 4px solid #5a7ac0;
  font-size: 12.5px;
}
.hb-quote-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 10.5px;
  line-height: 16px;
  color: #fff;
  background: #5a7ac0;
  vertical-align: 1px;
}
.hb-quote > p {
  margin: 2px 0;
}
.hb-quote > p:first-of-type {
  display: inline;
}
.hb-table {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 2px solid #b8a070;
  box-shadow: 0 2px 0 #b8a07040;
  margin: 6px 0;
}
.hb-table th {
  color: #fff;
  background: #5a6a90 !important;
  border-color: #3a4870 !important;
  font-weight: 700;
}
.hb-table td {
  border-color: #e2d4ae;
}
.hb-table tr:nth-child(even) td {
  background: #fbf2d8;
}
.hb-table tr:hover td {
  background: #fff0c0;
}
.hb-table th.num,
.hb-table td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hb-ent {
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px dotted #c0a070;
}
.hb-ent.mon {
  color: #a04830;
}
.hb-ent.item {
  color: #5a4020;
}
.hb-ent:hover {
  background: #fff0c0;
}
.hb-ic {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  margin-right: 1px;
  vertical-align: -.32em;
  object-fit: contain;
  image-rendering: pixelated;
}
.hb-ent.mon .hb-ic {
  background: #f1ead4;
  border-radius: 2px;
}
.hb-mark {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: -.4em;
  image-rendering: pixelated;
}
.hb-nav .hb-ni {
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.hb-nav .hb-ni > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-nav .hb-ni .ui-pixel-icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.hb-gh {
  margin: 7px 0 2px !important;
  padding: 1px 6px;
  color: #7a5a30 !important;
  background: #efe2bc;
  border-left: 3px solid #c8a050;
}
.hb-nav .hb-ni.on,
.hb-multi.on > .hb-mt {
  background: #5a6a90 !important;
  color: #fff !important;
  box-shadow: inset 3px 0 #f0c040 !important;
}
@media (max-height:470px) {
  .hb-main {
    padding: 6px 9px 12px !important;
  }
  .hb-head {
    padding: 2px 8px;
    margin-bottom: 6px;
  }
  .hb-doc h2.hb-h {
    font-size: 14px;
    margin: 10px 0 4px;
    padding: 2px 8px;
  }
  .hb-doc h3.hb-h {
    font-size: 13px;
    margin: 8px 0 3px;
  }
  .hb-nav .hb-ni .ui-pixel-icon {
    width: 14px;
    height: 14px;
  }
}
.dx-back {
  padding: 8px !important;
}
.dx-back .dialog {
  --modal-w: 1000px;
  --modal-h:calc(var(--game-height,var(--app-vh, 100vh)) - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  padding: 10px 14px !important;
}
@supports (width: min(1px, 2px)) {
  .dx-back .dialog {
    --modal-w: min(1000px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 16px));
  }
}
.dx-back .dialog > .eyebrow {
  display: none;
}
.dx-back .dialog > h2 {
  flex: none;
  font-size: 18px !important;
  margin: 0 0 6px !important;
}
.dx-back .dialog .dialog-actions {
  flex: none;
  position: static;
  margin: 6px 0 0;
  padding: 0;
  background: none;
}
.dx-back .dx-info {
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  display: grid;
  grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
  gap: 12px;
}
.dx-side {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dx-body {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.dx-sec .set-h {
  margin: 0 0 3px !important;
  font-size: 13px !important;
}
.dx-own {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.dx-no {
  font-size: 11px;
  color: #8a7a60;
}
.dx-chip {
  font-size: 11px;
  line-height: 17px;
  padding: 0 6px;
  background: #eceae0;
  color: #687080;
  border: 1px solid #d0ccbc;
}
.dx-chip.got {
  background: #e2f2d8;
  color: #386828;
  border-color: #a8d090;
}
.dx-chip.shiny {
  background: #fff0c0;
  color: #9a6a08;
  border-color: #e0c060;
}
.dx-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.dx-spot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 18px;
  padding: 0 6px;
  background: #fffbec;
  border: 1px solid #d8ccaa;
  white-space: nowrap;
}
.dx-spot small {
  font-size: 10px;
  color: #8a7a60;
}
.dx-spot i {
  font-style: normal;
  font-size: 10px;
  padding: 0 4px;
  color: #fff;
  background: #8a9a78;
}
.dx-spot.tier1 i {
  background: #c07830;
}
.dx-spot.tier2 i {
  background: #4878b0;
}
.dx-spot.tier3 i {
  background: #8a48a8;
}
.dx-spot.tier4 i {
  background: #c04848;
}
.dx-spot.locked {
  opacity: .55;
}
.dx-spot.go {
  cursor: pointer;
}
.dx-spot.go:hover,
.dx-spot.go:focus-visible {
  border-color: #c07830;
  background: #fff3cf;
}
.dx-go-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8a7a60;
}
.dx-chip.had {
  background: #e8e0f4;
}
.field-dex {
  max-height: 420px;
  max-height: min(56vh, 420px);
  overflow-y: auto;
}
.field-dex .dex-icon {
  cursor: pointer;
}
.field-dex .dex-icon.unseen {
  cursor: default;
}
.shop-text strong.bag-name {
  display: flex;
  min-width: 0;
}
.shop-text strong.bag-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-text strong.bag-name > em {
  flex: none;
  font-style: normal;
  white-space: pre;
}
@media (max-height:400px) and (orientation:landscape) {
  .town-mode .briefing .brief-buttons, .wild-mode .briefing .brief-buttons {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: #f0f0e0;
    box-shadow: 0 -4px 0 #f0f0e0, 0 8px 0 #f0f0e0;
  }
  .town-mode .briefing .auto-clear-note, .wild-mode .briefing .auto-clear-note {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
html.no-net .net-corner,
html.no-net .field-net,
html.no-net .user-pill .net-badge {
  display: none !important;
}
.dx-evos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dx-evo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 4px;
  background: #fffbec;
  border: 1px solid #d8ccaa;
  cursor: pointer;
  min-width: 0;
}
.dx-evo:hover,
.dx-evo:focus-visible {
  background: #fff0c0;
  outline: none;
}
.dx-evo > i {
  font-style: normal;
  font-size: 10px;
  color: #8a7a60;
  min-width: 1em;
  text-align: center;
}
.dx-evo-pic {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dx-evo > span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dx-evo b {
  font-size: 12px;
  color: #a04830;
}
.dx-evo small {
  font-size: 10.5px;
  color: #687080;
}
.dx-tms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #404858;
}
.dx-tm {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  margin: 0 !important;
  min-height: 26px !important;
  height: auto !important;
  padding: 2px 7px !important;
  font-size: 12.5px !important;
  font-weight: 400;
  color: #404858;
  background: #f6f3e6 !important;
  border: 1px solid #c8c0a0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  cursor: pointer;
}
.dx-tm:hover {
  background: #fff0c0 !important;
}
.dx-tm.on {
  background: #5a6a90 !important;
  border-color: #3a4870 !important;
  color: #fff;
}
.dx-tm img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.dx-tm-info {
  margin-top: 6px;
  padding: 6px 10px;
  background: #fff7e0;
  border: 1px solid #ead9aa;
  border-left: 4px solid #c8a050;
}
.dx-tm-name {
  display: block;
  font-size: 12px;
  color: #8a6a40;
  margin-bottom: 2px;
}
.dx-none {
  margin: 0;
  font-size: 12px;
  color: #8a8478;
}
@media (orientation:portrait) {
  .dx-back .dx-info {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .dx-side {
    overflow: visible;
  }
}
@media (max-height:470px) {
  .dx-back .dialog {
    padding: 6px 10px !important;
  }
  .dx-back .dialog > h2 {
    font-size: 16px !important;
    margin: 0 0 4px !important;
  }
  .dx-back .dialog .dialog-actions {
    margin-top: 4px;
  }
  .dx-back .dx-info {
    gap: 8px;
  }
  .dx-side {
    gap: 4px;
  }
  .dx-back .dx-pic {
    width: 52px;
    height: 52px;
  }
  .dx-back .dx-top {
    gap: 8px;
  }
  .dx-back .dx-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 10px;
  }
  .dx-back .dx-stats .sp-stat {
    grid-template-columns: 30px 26px 1fr;
    gap: 4px;
    font-size: 11px;
  }
  .dx-back .dx-stats .sp-stat.total {
    grid-column: 1/-1;
  }
  .dx-back .dx-ability small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dx-back .dx-stats .sp-stat {
    min-height: 0;
  }
}
.remote-side .remote-bigs {
  flex: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 6px;
}
.remote-side button.remote-big {
  height: auto;
  min-height: 50px !important;
  padding: 5px 8px !important;
}
.remote-side .remote-big-text b {
  font-size: 16px;
  letter-spacing: 1px;
}
.remote-side .remote-big-text small {
  font-size: 11px;
}
.remote-side .remote-side-note {
  margin-top: auto;
}
.remote-lobby-cfg {
  flex-wrap: wrap;
}
.remote-panel-head > h2:empty,
.remote-panel-head > small:empty {
  display: none;
}
.remote-list-switch {
  display: inline-flex;
  gap: 4px;
}
.remote-list-switch .chip {
  padding: 2px 10px !important;
  font-size: 13px;
}
.remote-list-switch .chip.on {
  background: #f4e2a8 !important;
  color: #7a4e10;
}
.lounge-node-row {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
}
.lounge-node-row .lounge-node {
  font-size: 12px;
  color: #404858;
  padding: 0 8px;
  background: #fffbe8d0;
}
.lounge-node-row .remote-ping {
  font-size: 11px;
  padding: 0 5px;
}
.remote-node-row .set-chips {
  flex-wrap: wrap;
  gap: 4px;
}
.remote-node-row .chip {
  padding: 2px 8px !important;
  font-size: 12px;
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-side button.remote-big {
    min-height: 42px !important;
    padding: 3px 6px !important;
  }
  .remote-side .remote-big-text b {
    font-size: 14px;
  }
  .remote-side .remote-big-text small {
    font-size: 10px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .remote-side .remote-big-text small {
    display: none;
  }
  .remote-side button.remote-big {
    min-height: 34px !important;
  }
}
.remote-room-list-panel .remote-head-tools,
.remote-players-panel .remote-head-tools {
  margin-left: 0;
}
.lounge-auto {
  color: #2f6a40;
  font-size: 13px;
}
.hb-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 4px 0 6px;
}
.hb-tabs > small {
  color: #687080;
  margin-right: 2px;
}
.hb-tab {
  display: inline-block;
  padding: 1px 8px;
  border: 2px solid #b0b0b8;
  background: #f8f8ec;
  font-size: 12px;
  line-height: 1.5;
}
.hb-tab .hb-link {
  text-decoration: none;
}
.hb-tab.on {
  background: #f0d898;
  border-color: #a8822a;
  color: #7a4e10;
}
.team-switch {
  display: flex;
  gap: 3px;
  flex: none;
}
.team-switch .team-slot {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 24px !important;
  height: 20px !important;
  padding: 0 !important;
  font: 700 12px/1 var(--font) !important;
  border: 2px solid #2a3040 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: #e8ecf4 !important;
  color: #2a3040 !important;
  box-shadow: 0 2px 0 #2a3040 !important;
  text-shadow: none !important;
}
.team-switch .team-slot.on {
  background: #ffd23f !important;
  box-shadow: inset 0 -2px 0 #c89a10, 0 2px 0 #2a3040 !important;
}
.team-switch .team-slot:disabled {
  opacity: .45;
}
button.team-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0 !important;
  max-width: 9.5em;
  min-height: 0 !important;
  height: 22px;
  padding: 0 6px !important;
  font: 700 12px/1 var(--font) !important;
  border: 2px solid #2a3040 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: #ffd23f !important;
  color: #2a3040 !important;
  box-shadow: 0 2px 0 #2a3040 !important;
  text-shadow: none !important;
}
button.team-pick .tp-cur {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.team-pick::after {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #2a3040;
}
button.team-pick.open::after {
  border-top: 0;
  border-bottom: 5px solid #2a3040;
}
button.team-pick:disabled {
  opacity: .55;
}
.tm-tabs button.team-pick {
  height: 28px;
  max-width: 13em;
  font-size: 14px !important;
}
.team-pick-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(7.5em, max-content));
  gap: 4px;
  padding: 6px;
  background: #f4f0e0;
  border: 2px solid #2a3040;
  box-shadow: 0 3px 0 #2a3040, 0 6px 14px #0004;
}
.team-pick-menu .tp-item {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  max-width: 11em;
  height: 24px;
  padding: 0 8px;
  font: 700 12px/20px var(--font);
  color: #2a3040;
  background: #e8ecf4;
  border: 2px solid #2a3040;
  box-shadow: 0 2px 0 #2a3040;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-pick-menu .tp-item:hover,
.team-pick-menu .tp-item:focus-visible {
  background: #fff6d0;
}
.team-pick-menu .tp-item.on {
  background: #ffd23f;
  box-shadow: inset 0 -2px 0 #c89a10, 0 2px 0 #2a3040;
}
.pc-party .panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-team-switch {
  margin-left: auto;
}
@media (max-width:1000px) {
  .pc-party .panel-title small {
    display: none;
  }
  .pc-party .panel-title strong {
    white-space: nowrap;
  }
}
.box-cell,
.use-box-cell {
  position: relative;
}
.box-teams {
  position: absolute;
  left: 1px;
  top: 1px;
  display: flex;
  gap: 1px;
  z-index: 2;
  pointer-events: none;
}
.box-teams b {
  min-width: 11px;
  height: 11px;
  padding: 0 1px;
  font: 700 9px/11px var(--font);
  text-align: center;
  color: #2a3040;
  background: #e8ecf4;
  border: 1px solid #2a3040;
}
.box-teams b.on {
  background: #ffd23f;
}
.hb-nav .hb-search {
  flex: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12.5px;
  color: #303850;
  background: #fff;
  border: 2px solid #d8ccaa;
  border-radius: 0;
  outline: none;
}
.hb-nav .hb-search:focus {
  border-color: #5a6a90;
}
.hb-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hb-res {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 5px 9px !important;
  min-height: 0 !important;
  height: auto !important;
  text-align: left;
  background: #fff7e0 !important;
  border: 1px solid #ead9aa !important;
  border-left: 4px solid #c8a050 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
}
.hb-res:hover {
  background: #fff0c0 !important;
}
.hb-res b {
  display: block;
  font-size: 13px;
  color: #303850;
}
.hb-res-h {
  color: #a04830;
  font-weight: 400;
}
.hb-res small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #605848;
  white-space: normal;
}
mark.hb-hit {
  background: #ffe08a;
  color: inherit;
  padding: 0 1px;
  box-shadow: 0 0 0 1px #e0b040;
}
.hb-sec-tabs {
  position: sticky;
  top: -8px;
  z-index: 1;
  margin: 6px 0 4px !important;
  padding: 4px 0;
  background: #fffdf3;
}
.hb-sec-tabs .hb-tab {
  cursor: pointer;
  user-select: none;
}
.hb-sec-tabs .hb-tab:hover {
  border-color: #c85848;
}
.hb-sec-tabs .hb-tab.on {
  background: #5a6a90;
  border-color: #3a4870;
  color: #fff;
}
.glog-back .dialog {
  --modal-w: 820px;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 24px);
  overflow: auto;
}
@supports (width: min(1px, 2px)) {
  .glog-back .dialog {
    --modal-w: min(820px,calc(100vw - 24px));
  }
}
.glog-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.glog-stat {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  background: #eceadc;
  box-shadow: inset 0 0 0 1px #c8c8b8;
}
.glog-stat b {
  font-size: 18px;
  color: #303850;
}
.glog-stat small {
  font-size: 11px;
  color: #687080;
}
.glog-rar {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 0 1px 0 #30385066;
}
.glog-since {
  grid-column: 1/-1;
  margin: 0;
  font-size: 11.5px;
}
.glog-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.glog-batch {
  padding: 4px 8px;
  background: #f8f8e8;
  box-shadow: inset 0 0 0 1px #d8d8c8;
}
.glog-head {
  font-size: 12px;
  color: #586070;
  margin-bottom: 3px;
}
.glog-mons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.glog-mon {
  padding: 0 5px;
  font-size: 12px;
  line-height: 18px;
  background: #fff;
  border: 2px solid;
  border-radius: 3px;
  color: #303850;
}
.glog-shiny {
  color: #d09000;
  font-style: normal;
  margin-left: 2px;
}
.glog-new {
  font-style: normal;
  margin-left: 3px;
  padding: 0 3px;
  font-size: 10px;
  color: #fff;
  background: #c85848;
}
@media (max-width:700px) {
  .glog-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.gacha-note-btn.hb-help,
.gacha-note-btn.gacha-log-btn {
  width: auto !important;
  padding: 0 8px !important;
}
.top-actions .top-hb-btn {
  min-width: 0 !important;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px 0 -2px !important;
}
@media (max-height:470px) {
  .top-actions .top-hb-btn {
    width: 28px;
    height: 28px;
  }
  .top-actions .top-hb-btn img {
    width: 18px;
    height: 18px;
  }
}
.pc-party .panel-title .pc-team-share {
  flex: none;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 26px !important;
  height: 20px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a3040 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: #e8ecf4 !important;
  box-shadow: 0 2px 0 #2a3040 !important;
}
.pc-party .panel-title .pc-team-share svg,
.pc-party .panel-title .pc-team-share img,
.pc-party .panel-title .pc-team-share canvas {
  width: 14px;
  height: 14px;
}
.pc-screen-head {
  position: relative;
}
.pc-screen-head .pc-mon-share {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 28px !important;
  height: 24px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a3040 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: #e8ecf4 !important;
  box-shadow: 0 2px 0 #2a3040 !important;
}
.pc-screen-head .pc-mon-share img,
.pc-screen-head .pc-mon-share svg {
  width: 16px;
  height: 16px;
}
@media (max-width:900px) {
  .pc-party .panel-title {
    gap: 4px;
  }
  .pc-party .panel-title .pc-team-share {
    width: 22px !important;
  }
  .team-switch {
    gap: 2px;
  }
  .team-switch .team-slot {
    width: 21px !important;
  }
  button.team-pick {
    max-width: 7.5em;
  }
}
.share-pick-back {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  background: #202838a0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.share-pick {
  background: #f8f8e8;
  border: 4px solid #303850;
  box-shadow: 0 4px 0 #202838;
  padding: 12px 16px;
  max-width: 560px;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 24px);
  overflow: auto;
}
.share-pick h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #303848;
}
.share-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.share-theme {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px !important;
  min-height: 0 !important;
  background: #eceadc !important;
  border: 2px solid #c8c8b8 !important;
  border-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.share-theme.on {
  border-color: #c04838 !important;
  background: #f8ecd8 !important;
}
.share-theme b {
  font-size: 13px;
  color: #303848;
}
.share-theme-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background-size: 64px auto;
  image-rendering: pixelated;
}
.share-theme-swatch i {
  display: block;
  width: 62%;
  height: 62%;
  border: 3px solid;
  position: relative;
}
.share-theme-swatch em {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 16%;
}
.share-pick-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
@media (max-height:420px) {
  .share-theme-swatch {
    height: 38px;
  }
  .share-pick {
    padding: 8px 12px;
  }
  .share-pick h3 {
    margin-bottom: 6px;
  }
}
.pull-fx .pull-share {
  position: absolute;
  bottom: calc(14px + var(--safe-bottom,0px));
  right: calc(16px + var(--safe-right,0px));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pull-share > span,
.hb-share > span,
.rs-share > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hb-head .hb-share {
  margin-left: auto;
  min-height: 0 !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
}
.remote-summary .rs-share {
  margin-top: 6px;
  align-self: flex-start;
}
.pc-head-left {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pc-screen-head .pc-head-btns {
  position: static;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.pc-screen-head .pc-head-btns .pc-mon-share {
  position: static;
}
.pc-screen-head .pc-mon-lock {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 28px !important;
  height: 24px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a3040 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: #e8ecf4 !important;
  box-shadow: 0 2px 0 #2a3040 !important;
}
.pc-screen-head .pc-mon-lock.on {
  background: #ffd23f !important;
}
.pc-screen-head .pc-mon-lock img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
.box-cell .box-lockmark {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
  pointer-events: none;
}
.box-cell.release-locked {
  opacity: .45;
}
.box-cell.viewing {
  outline: 2px dashed #ffd23f;
  outline-offset: -2px;
}
.box-cell.search-dim {
  opacity: .3;
}
.box-cell.search-hit {
  outline: 2px solid #ffd23f;
  outline-offset: -2px;
}
.box-head .box-search-btn {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pc-search-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
}
.pc-search-head .pc-search-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  padding: 3px 6px;
  border: 2px solid #2a3040;
  background: #fffef4;
}
.pc-search-head .pc-search-close {
  min-width: 0 !important;
  padding: 0 8px !important;
}
.pc-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  background: #f8f8e8;
  border: 2px solid #2a3040;
  box-shadow: 0 3px 0 #2a3040;
}
@supports (width: min(1px, 2px)) {
  .pc-search-results {
    max-height: min(260px, calc(var(--game-height,var(--app-vh, 100vh)) * .55));
  }
}
.pc-search-results:empty {
  display: none;
}
.pc-search-count {
  margin: 4px 8px;
  font-size: 12px;
  color: #687080;
}
.pc-search-hit {
  display: grid !important;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  width: 100%;
  text-align: left;
  padding: 2px 8px !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #e0dccb !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.pc-search-hit .pc-search-pic {
  grid-row: span 2;
  width: 36px;
  height: 30px;
}
.pc-search-hit b {
  font-size: 13px;
  color: #303848;
}
.pc-search-hit small {
  font-size: 11px;
  color: #687080;
}
.release-rule .rule-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 14px;
}
.release-rule .rule-scope {
  display: flex;
  gap: 16px;
}
.release-rule .rule-lv {
  width: 72px;
  font: inherit;
  padding: 2px 4px;
}
.rk {
  width: 100%;
  width: min(680px, 100%);
  min-width: 0;
  box-sizing: border-box;
}
.rk-season {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}
.rk-season small {
  opacity: .75;
}
.rk-mes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.rk-me {
  border: 2px solid #c9b98f;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fffdf3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rk-tier {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--rk);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 0 #0005;
}
.rk-note {
  color: #2f9e5a;
}
.rk-leagues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rk-league {
  border: 2px solid #c9b98f;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fffdf3;
}
.rk-league.bad {
  border-color: #e0a090;
}
.rk-league.closed {
  opacity: .55;
}
.rk-lh {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.rk-lh small {
  opacity: .7;
}
.rk-rules {
  margin: 4px 0;
  padding-left: 16px;
  font-size: 12px;
}
.rk-bad {
  margin: 4px 0;
  padding-left: 16px;
  font-size: 12px;
  color: #b23a3a;
}
.rk-foot {
  font-size: 12px;
  margin-top: 8px;
}
.rk-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 420px;
  max-height: min(50vh, 420px);
  overflow: auto;
}
.rk-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 3px 6px;
  border-bottom: 1px solid #e8dcb8;
}
.rk-rank {
  width: 2.2em;
  text-align: right;
}
@media (max-height:420px) {
  .rk-mes,
  .rk-leagues {
    gap: 5px;
  }
  .rk-rules {
    display: none;
  }
}
.rk-league .lan-row {
  flex-wrap: wrap;
  gap: 4px;
}
@media (orientation:landscape) and (min-width:560px) {
  .rk-back .dialog {
    width: calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 32px) !important;
    max-width: 820px !important;
  }
}
.upd-bar {
  position: fixed;
  left: 50%;
  top: calc(8px + var(--safe-top,0px));
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  max-width: min(620px, calc(100vw - 24px));
  padding: 6px 8px 6px 12px;
  background: #f8f8e8;
  border: 3px solid #303850;
  border-radius: 8px;
  box-shadow: 0 4px 0 #30385080;
  color: #404858;
  animation: updin .25s ease-out;
}
.upd-bar.out {
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: .25s;
}
.upd-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.upd-text b {
  font-size: 14px;
}
.upd-text small {
  font-size: 12px;
  opacity: .8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upd-online {
  color: #b05030;
  opacity: 1 !important;
}
.upd-bar button.upd-go {
  flex: none;
  min-height: 0 !important;
  padding: 4px 10px !important;
  font-size: 13px;
}
.upd-bar button.upd-x {
  flex: none;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1;
}
@keyframes updin {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.remote-side .remote-head-tools .remote-lobby-cfg {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}
.remote-lobby-cfg button.small-btn {
  min-height: 30px !important;
  height: 30px;
  padding: 0 8px !important;
  font-size: 13px;
  background: #f8f8e8 !important;
  color: #404858 !important;
  border: 2px solid #6878a0 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 0 #30385060 !important;
}
.remote-lobby-cfg button.small-btn:hover {
  border-color: #c05048 !important;
}
.remote-lobby-cfg button.icon-btn {
  width: 30px;
  min-width: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.remote-lobby-cfg button.icon-btn img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  pointer-events: none;
}
.remote-lobby-cfg button.remote-visible.on {
  background: #f4e2a8 !important;
  border-color: #c09030 !important;
}
.remote-side button.remote-ranked {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 58px !important;
  padding: 6px 10px !important;
}
.remote-side button.remote-ranked .remote-big-text b {
  font-size: 20px;
  letter-spacing: 4px;
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-side button.remote-ranked {
    min-height: 44px !important;
    padding: 3px 8px !important;
  }
  .remote-side button.remote-ranked .remote-big-text b {
    font-size: 16px;
  }
}
@media (max-height:420px) {
  .remote-side button.remote-ranked .remote-big-text small {
    display: none;
  }
}
.rk-pane {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  width: auto;
}
.rk-pane .rk-top {
  max-height: none;
  overflow: visible;
}
.rk-pane .rk-leagues {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.rk-side .rk-back-btn {
  min-height: 30px !important;
  height: 30px;
  padding: 0 10px !important;
  font-size: 13px;
}
.rk-dist {
  margin: 0 0 4px;
}
.rk-pane .rk-lh {
  flex-wrap: wrap;
  column-gap: 6px;
}
.rk-pane .rk-lh b,
.rk-pane .rk-lh small {
  white-space: nowrap;
}
.share-lbl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.pc-party .panel-title .pc-team-share {
  width: auto !important;
  padding: 0 6px !important;
}
.pc-screen-head .pc-mon-share {
  width: auto !important;
  padding: 0 6px !important;
}
.pc-party .party-slot.lead {
  position: relative;
}
.pc-party .party-slot.lead::after {
  content: "首发";
  position: absolute;
  left: 3px;
  bottom: 2px;
  z-index: 1;
  padding: 0 4px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #fff8e8;
  background: #c05048;
  border-radius: 3px;
  pointer-events: none;
}
@media (max-width:900px) {
  .pc-party .panel-title {
    flex-wrap: nowrap;
    gap: 3px;
  }
  .pc-party .panel-title .pc-team-share {
    width: 22px !important;
    padding: 0 !important;
  }
}
.tm-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(var(--app-vh, 100vh) - 150px);
  min-height: 0;
}
.tm-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tm-tabs button {
  min-height: 0 !important;
  padding: 4px 12px !important;
  font-size: 14px;
}
.tm-tabs .tm-tab.on {
  background: #f0d898 !important;
  color: #404858 !important;
}
.tm-tabs .tm-rename {
  margin-left: 6px;
}
.tm-tabs .tm-pc {
  margin-left: auto;
}
.tm-hint {
  margin: 0;
  font-size: 12px;
}
.tm-cards {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.tm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 0;
  padding: 6px;
  background: #f8f8e8;
  border: 3px solid #6878a0;
  border-radius: 8px;
  box-shadow: 0 3px 0 #30385060;
  cursor: pointer;
  overflow: hidden;
  color: #404858;
}
.tm-card:hover {
  border-color: #c05048;
}
.tm-card.lead {
  border-color: #c05048;
  background: linear-gradient(#fff4e0, #f8f8e8 40%);
}
.tm-card.shiny .tm-name {
  color: #b07020;
}
.tm-card.empty {
  justify-content: center;
  border-style: dashed;
  background: #e8ecf0;
}
.tm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tm-empty b {
  font-size: 30px;
  line-height: 1;
}
.tm-top {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.tm-no {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #6878a0;
  border-radius: 4px;
  padding: 0 5px;
}
.tm-card.lead .tm-no {
  background: #c05048;
}
.tm-top .type-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tm-top .type-tag {
  font-size: 10px;
  padding: 0 3px;
}
.tm-top .type-tag img {
  width: 12px;
  height: 12px;
}
.tm-pic {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-name {
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}
.tm-lv {
  font-size: 12px;
  opacity: .75;
}
.tm-rows {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
}
.tm-rows small {
  display: flex;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-rows i {
  font-style: normal;
  opacity: .6;
  flex: none;
}
.tm-moves {
  align-self: stretch;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
}
.tm-moves li {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
}
.tm-moves img {
  width: 14px;
  height: 14px;
  flex: none;
}
.tm-stats {
  align-self: stretch;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px 4px;
  font-size: 10px;
}
.tm-st {
  display: flex;
  justify-content: space-between;
}
.tm-st small {
  opacity: .6;
}
.tm-st.up b {
  color: #c0392b;
}
.tm-st.down b {
  color: #2e6fb7;
}
.tm-menu-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tm-name-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  padding: 6px 8px;
}
@media (max-height:420px) {
  .tm-page {
    height: calc(var(--app-vh, 100vh) - 92px);
    gap: 4px;
  }
  .tm-pic {
    width: 52px;
    height: 52px;
  }
  .tm-name {
    font-size: 12px;
  }
  .tm-rows,
  .tm-moves {
    font-size: 10px;
  }
  .tm-moves img {
    width: 11px;
    height: 11px;
  }
  .tm-stats {
    display: none;
  }
  .tm-card {
    padding: 4px;
    gap: 1px;
  }
  .tm-hint {
    display: none;
  }
  .tm-tabs button {
    padding: 2px 8px !important;
    font-size: 12px;
  }
}
.tm-head {
  background: #f8f8e8;
  border: 3px solid #6878a0;
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 3px 0 #30385060;
}
.tm-no {
  white-space: nowrap;
  flex: none;
}
.tm-card .tm-pic {
  width: 100%;
  height: 96px;
  background: #c8d8e8;
  border-radius: 6px;
}
@media (max-height:420px) {
  .tm-head {
    padding: 3px 6px;
  }
  .tm-card .tm-pic {
    height: 52px;
  }
}
@media (min-height:600px) {
  .tm-card .tm-pic > *:not(.mon-sprite) {
    transform: scale(1.8);
  }
}
.tm-card[data-slot] {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .15s;
}
.tm-dragging .tm-card[data-slot] {
  cursor: grabbing;
}
.tm-card.dragging {
  opacity: .25;
  transform: scale(.96);
}
.tm-card.drop {
  outline: 3px solid #ffd23f;
  outline-offset: -3px;
  z-index: 1;
}
.tm-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  pointer-events: none;
  margin: 0 !important;
  box-shadow: 0 12px 24px #0005;
  will-change: transform;
  transition: box-shadow .15s;
}
.tm-ghost.landing {
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
  box-shadow: 0 2px 4px #0003;
}
.pc-name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.pc-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-ball {
  width: 24px;
  height: 24px;
  flex: none;
  image-rendering: pixelated;
}
.pc-name .pc-rename {
  flex: none;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 24px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1;
}
.ball-face {
  display: inline-block;
  background-repeat: no-repeat !important;
  background-size: 100% 300% !important;
  background-position: 0 0 !important;
  image-rendering: pixelated;
}
.slot-ball.ball-face {
  width: 24px;
  height: 24px;
  opacity: 1;
}
.lab-stage .desk-hint-wrap {
  z-index: 5;
}
.desk-hint {
  background: #eef4ff !important;
  color: #30508a !important;
}
main.page > .od-room {
  flex: 1 1 0 !important;
  height: auto !important;
  max-height: none !important;
}
.od-room {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  container-type: size;
  --od-mon: 58px;
}
@supports (width: min(1px, 2px)) and (width: 1cqw) {
  .od-room {
    --od-mon: min(58px,calc((100cqh - 34px) / 6 - 6px));
  }
}
.od-stage {
  position: relative;
  flex: none;
  aspect-ratio: 2/1;
  --ar: 2/1;
  width: calc(100% - var(--od-mon) - 34px);
  height: calc((100vw - var(--od-mon) - 34px) / 2);
  box-sizing: border-box;
  border: 3px solid #303850;
  border-radius: 6px;
  box-shadow: 0 4px 0 #30385080;
  background: #6a4a30 url(/_expedition/assets/ui/oak-desk.jpg) center/100% 100% no-repeat;
  overflow: hidden;
  --u: 1vw;
}
@supports (width: min(1px, 2px)) and (width: 1cqw) {
  .od-stage {
    width: min(calc(100cqw - var(--od-mon) - 34px), 200cqh);
    height: min(calc((100cqw - var(--od-mon) - 34px) / 2), 100cqh);
    --u: min(1cqw,2cqh);
  }
}
.od-stage .od-slot {
  position: absolute;
  top: 47%;
  width: 14%;
  aspect-ratio: 1;
  --ar: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  cursor: pointer;
}
.od-stage .od-slot:hover,
.od-stage .od-slot:focus-visible,
.od-stage .od-slot.od-over {
  background: #fff3 !important;
  outline: 2px dashed #fff8;
  outline-offset: 2px;
}
.od-left {
  left: 28.2%;
}
.od-right {
  left: 71.8%;
}
.od-plus {
  font-size: calc(var(--u)*4);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 #303850, 0 0 6px #000a;
  animation: od-pulse 1.4s ease-in-out infinite;
}
@keyframes od-pulse {
  50% {
    opacity: .45;
    transform: scale(.9);
  }
}
.od-ball {
  display: block;
  width: 62%;
  aspect-ratio: 1;
  --ar: 1;
  background-repeat: no-repeat;
  background-size: 100% 300%;
  background-position: 0 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #0006);
  transform: translateY(-12%);
  transition: filter .05s;
}
.od-ball.lit {
  filter: brightness(2.4) drop-shadow(0 0 calc(var(--u)*1.2) #fff);
}
.od-ball.open {
  background-position: 0 50%;
}
.od-ball.gone {
  opacity: 0;
  transform: translateY(-12%) scale(.6);
  transition: opacity .5s, transform .5s;
}
.od-ball.glow {
  animation: od-glow 1.2s ease-out;
}
@keyframes od-glow {
  0% {
    filter: brightness(3) drop-shadow(0 0 calc(var(--u)*2) #fff6a0);
    transform: translateY(-12%) scale(1.25);
  }
  100% {
    filter: drop-shadow(0 3px 0 #0006);
    transform: translateY(-12%) scale(1);
  }
}
.od-puff {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 34%;
  aspect-ratio: 1;
  --ar: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 40%,
      #fafafa,
      #c8c8cc 60%,
      #9a9aa2);
  opacity: 0;
  pointer-events: none;
  animation: od-puff 1.1s var(--d) ease-out forwards;
}
@keyframes od-puff {
  0% {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.3);
    opacity: .95;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--u)*-6)) scale(1.5);
    opacity: 0;
  }
}
.od-star {
  position: absolute;
  left: 50%;
  top: 38%;
  font-style: normal;
  font-size: calc(var(--u)*2.4);
  line-height: 1;
  color: #ffe860;
  text-shadow: 0 0 calc(var(--u)*.8) #fff8c0;
  pointer-events: none;
  opacity: 0;
  animation: od-star 1s var(--d) ease-out forwards;
}
@keyframes od-star {
  0% {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--u)*-8)) scale(1);
    opacity: 0;
  }
}
.od-happy {
  position: absolute;
  left: 50%;
  bottom: 58%;
  transform: translateX(-50%);
  animation: od-pop .5s ease-out both, od-hop .45s .5s ease-in-out 4 alternate;
  pointer-events: none;
  line-height: 0;
}
.od-happy .mon-sprite {
  zoom: 2.2;
}
@media (max-height:470px) {
  .od-happy .mon-sprite {
    zoom: 1.3;
  }
}
@keyframes od-pop {
  0% {
    transform: translate(-50%, 60%) scale(.2);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -8%) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
  }
}
@keyframes od-hop {
  to {
    transform: translate(-50%, -18%);
  }
}
.od-heart {
  position: absolute;
  right: -30%;
  top: -10%;
  font-size: calc(var(--u)*3);
  line-height: 1;
  color: #ff5a7a;
  text-shadow: 0 2px 0 #fff;
  animation: od-heart 1s ease-in-out infinite alternate;
}
@keyframes od-heart {
  to {
    transform: translateY(-30%) scale(1.15);
  }
}
.od-say {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: calc(var(--u)*.7) calc(var(--u)*1.6);
  background: #fffdf3;
  border: 3px solid #303850;
  border-radius: 8px;
  box-shadow: 0 3px 0 #30385080;
  font-size: calc(var(--u)*2);
  font-weight: 700;
  color: #404858;
  animation: od-pop-say .3s ease-out both;
}
@keyframes od-pop-say {
  from {
    transform: translateX(-50%) scale(.6);
    opacity: 0;
  }
}
.od-tag {
  position: absolute;
  top: 69%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 14%;
  padding: calc(var(--u)*.4) calc(var(--u)*1.2);
  background: #fffbe8ee;
  border: 2px solid #303850;
  border-radius: 6px;
  box-shadow: 0 2px 0 #30385066;
  text-align: center;
  line-height: 1.25;
  pointer-events: none;
}
.od-tag-left {
  left: 28.2%;
}
.od-tag-right {
  left: 71.8%;
}
.od-tag span {
  display: flex;
  flex-direction: column;
}
.od-tag b {
  font-size: 12px;
  color: #303848;
  white-space: nowrap;
}
@supports (width: min(1px, 2px)) {
  .od-tag b {
    font-size: max(12px, calc(var(--u)*1.7));
  }
}
.od-tag small {
  font-size: 10px;
  color: #687080;
  white-space: nowrap;
}
@supports (width: min(1px, 2px)) {
  .od-tag small {
    font-size: max(10px, calc(var(--u)*1.25));
  }
}
.od-card {
  position: absolute;
  left: 1.5%;
  top: 3%;
  max-width: 34%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: calc(var(--u)*.7) calc(var(--u)*1.2);
  background: #fffbe8ee;
  border: 2px solid #303850;
  border-radius: 6px;
  box-shadow: 0 2px 0 #30385066;
}
.od-card b {
  font-size: 13px;
  color: #a84840;
}
@supports (width: min(1px, 2px)) {
  .od-card b {
    font-size: max(13px, calc(var(--u)*1.9));
  }
}
.od-card small {
  font-size: 10px;
  color: #404858;
  line-height: 1.35;
}
@supports (width: min(1px, 2px)) {
  .od-card small {
    font-size: max(10px, calc(var(--u)*1.3));
  }
}
.od-wallet {
  position: absolute;
  right: 1.5%;
  top: 3%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(var(--u)*.5) calc(var(--u)*1.2);
  background: #fffbe8ee;
  border: 2px solid #303850;
  border-radius: 6px;
  box-shadow: 0 2px 0 #30385066;
  font-size: 11px;
  color: #404858;
}
@supports (width: min(1px, 2px)) {
  .od-wallet {
    font-size: max(11px, calc(var(--u)*1.4));
  }
}
.od-wallet img {
  image-rendering: pixelated;
}
.od-wallet b {
  font-size: 13px;
  color: #303848;
}
@supports (width: min(1px, 2px)) {
  .od-wallet b {
    font-size: max(13px, calc(var(--u)*1.8));
  }
}
.od-go-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.od-stage button.od-go {
  pointer-events: auto;
  min-width: 24%;
  min-height: 0 !important;
  padding: calc(var(--u)*.6) calc(var(--u)*2) !important;
  transform: none !important;
}
.od-stage button.od-go:not(:disabled):active,
.od-stage button.od-go.shake {
  animation: od-shake .32s linear;
}
@keyframes od-shake {
  0%, 100% {
    translate: 0 0;
  }
  15% {
    translate: -3px 1px;
  }
  30% {
    translate: 3px -1px;
  }
  45% {
    translate: -2px 1px;
  }
  60% {
    translate: 2px 0;
  }
  75% {
    translate: -1px 0;
  }
}
.od-go-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.od-go-text b {
  font-size: 14px;
  letter-spacing: 2px;
}
@supports (width: min(1px, 2px)) {
  .od-go-text b {
    font-size: max(14px, calc(var(--u)*2.1));
  }
}
.od-go-text small {
  font-size: 10px;
  font-weight: 400;
  opacity: .85;
}
@supports (width: min(1px, 2px)) {
  .od-go-text small {
    font-size: max(10px, calc(var(--u)*1.2));
  }
}
.od-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 520px;
  width: min(520px, 80vw);
}
.od-pick-balls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.od-pick button.od-pick-btn {
  min-height: 0 !important;
  padding: 6px !important;
}
.od-pick button.od-pick-btn.on {
  background: #f8d050 !important;
}
.od-pick-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.od-pick-inner b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.od-pick-inner small {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  opacity: .8;
  white-space: nowrap;
}
.od-pick-inner .mon-sprite {
  max-height: 64px;
}
.od-pick-ball.ball-face {
  width: 16px;
  height: 16px;
}
.od-pick-ball.big.ball-face {
  width: 32px;
  height: 32px;
}
@media (max-height:470px) {
  .od-pick-inner .mon-sprite {
    zoom: .7;
  }
  .od-pick {
    gap: 5px;
  }
}
.od-team {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  background: #162a5ce6;
  border: 3px solid #303850;
  border-radius: 10px;
  box-shadow: 0 3px 0 #30385080;
  touch-action: none;
}
.od-team.od-over {
  border-color: #ffd23a;
  box-shadow: 0 0 0 3px #ffd23a88;
}
.od-team-title {
  font-size: 12px;
  color: #dfe8ff;
  letter-spacing: 2px;
}
.od-mon {
  position: relative;
  width: var(--od-mon);
  height: var(--od-mon);
  box-sizing: border-box;
  border-radius: 50%;
  background: #0e1d44;
  border: 2px solid #9fb6e8;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.od-mon:hover {
  border-color: #ffd23a;
}
.od-mon.od-lifted {
  opacity: .35;
}
.od-mon-pic {
  width: 78%;
  height: 78%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}
.od-pic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.od-mon-ball.ball-face {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 #0008);
}
.od-mon.out {
  cursor: default;
  border-style: dashed;
  border-color: #9fb6e880;
  background: transparent;
}
.od-left.full,
.od-right.full {
  cursor: grab;
  touch-action: none;
}
.od-slot.od-lifted .od-ball {
  opacity: .35;
}
.od-ghost {
  position: fixed;
  z-index: 9500;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  pointer-events: none;
  transform: none;
  filter: drop-shadow(0 4px 0 #0007);
}
.od-ball.od-home {
  animation: od-bob 1.2s ease-in-out infinite;
}
@keyframes od-bob {
  50% {
    transform: translateY(-22%);
  }
}
.od-wires {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.od-stage.running .od-wire {
  animation: od-zap .36s steps(1) infinite;
  animation-delay: calc(var(--i) * .12s);
}
@keyframes od-zap {
  50% {
    filter: brightness(1.7) saturate(1.2);
  }
}
.od-bag-dialog {
  width: 640px !important;
  width: min(640px, 92vw) !important;
}
.od-bag-note {
  margin: 0 0 6px;
}
.od-bag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
  max-height: 420px;
  max-height: min(56vh, 420px);
  overflow: auto;
  padding: 2px;
}
.od-bag-grid button.od-bag-cell {
  min-height: 0 !important;
  padding: 5px 4px !important;
}
.od-bag-grid button.od-bag-cell:disabled {
  opacity: .4;
  filter: grayscale(1);
}
.od-bag-grid button.od-bag-cell.ball:not(:disabled) {
  background: #fff6d8 !important;
  border-color: #c09030 !important;
}
.od-bag-grid button.od-bag-cell.on {
  background: #f8d050 !important;
}
.od-bag-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.od-bag-inner img {
  image-rendering: pixelated;
}
.od-bag-inner b {
  font-size: 12px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-bag-inner small {
  font-size: 11px;
  opacity: .75;
}
@media (max-height:470px) {
  .od-room {
    gap: 6px;
  }
  .od-team {
    gap: 3px;
    padding: 4px 5px;
  }
  .od-team-title {
    display: none;
  }
  .od-room {
    --od-mon: 44px;
  }
  @supports (width: min(1px, 2px)) and (width: 1cqw) {
    .od-room {
      --od-mon: min(44px,calc((100cqh - 16px) / 6 - 4px));
    }
  }
  .od-mon-ball.ball-face {
    width: 16px;
    height: 16px;
    right: -3px;
    bottom: -3px;
  }
  .od-bag-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    max-height: 50vh;
  }
}
.od-mon {
  border-radius: 4px !important;
  background: #f8f8e8;
  border: 3px solid #6878a0;
  box-shadow: 0 3px 0 #30385060;
}
.od-mon:hover {
  border-color: #c05048;
}
.od-mon-pic {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}
.od-mon.out {
  background: #e8ecf0;
  border: 3px dashed #6878a0;
  box-shadow: none;
}
.od-team {
  background: #c8d0e0e8;
  border-radius: 6px;
}
.od-team-title {
  color: #303848;
}
.od-team.od-over {
  background: #fff3c8e8;
}
.od-prof {
  position: absolute;
  right: 1.5%;
  bottom: 3%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 34%;
  padding: calc(var(--u)*.7) calc(var(--u)*1.4);
  background: #fffdf3;
  border: 3px solid #303850;
  border-radius: 8px;
  box-shadow: 0 3px 0 #30385080;
  animation: od-prof-in .3s ease-out both;
}
.od-prof b {
  font-size: 11px;
  color: #a84840;
}
@supports (width: min(1px, 2px)) {
  .od-prof b {
    font-size: max(11px, calc(var(--u)*1.3));
  }
}
.od-prof span {
  font-size: 13px;
  font-weight: 700;
  color: #404858;
}
@supports (width: min(1px, 2px)) {
  .od-prof span {
    font-size: max(13px, calc(var(--u)*1.8));
  }
}
@keyframes od-prof-in {
  from {
    transform: translateY(30%);
    opacity: 0;
  }
}
.od-go-wrap {
  align-items: center;
}
.od-stage button.od-go:disabled {
  opacity: 1 !important;
  filter: none !important;
  background: #c4c8d0 !important;
  color: #5c606a !important;
  border-color: #8a8e98 !important;
  box-shadow: 0 3px 0 #6a6e78 !important;
  cursor: not-allowed;
}
.od-stage button.od-go:disabled .od-go-text small {
  opacity: 1;
  color: #4a4e58;
}
@supports not (width:1cqw) {
  .od-room {
    --od-mon:44px;
  }
  .od-stage {
    width: calc((100vh - 80px) * 2);
    height: calc(100vh - 80px);
    max-width: calc(100vw - 84px);
    --u:1vw;
  }
}
.od-stage.running .od-slot,
.od-stage.running .od-go {
  pointer-events: none;
}
.rk-side-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rk-emblem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
}
.rk-emblem-img {
  flex: none;
  width: 38%;
  width: min(200px, 34cqh, 38%);
  aspect-ratio: 1;
  --ar: 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 #30385055);
  animation: rk-float 3s ease-in-out infinite;
}
@keyframes rk-float {
  50% {
    transform: translateY(-4px);
  }
}
.rk-emblem-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rk-emblem-name {
  font-size: 26px;
  letter-spacing: 4px;
  color: #303848;
}
.rk-emblem-div {
  font-family:
    "Cinzel",
    "Trajan Pro",
    "Times New Roman",
    Georgia,
    serif;
  font-weight: 900;
  font-style: normal;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 2px;
  background:
    linear-gradient(
      180deg,
      #fff6c8 0%,
      #f8d050 45%,
      #c8901c 55%,
      #f0c040 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #6a4410;
  filter: drop-shadow(0 3px 0 #30385066);
}
.rk-emblem-text > small {
  font-size: 13px;
  color: #687080;
}
.rk-prog {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}
.rk-bar {
  height: 10px;
  background: #e0dccb;
  border: 2px solid #303850;
  border-radius: 6px;
  overflow: hidden;
}
.rk-bar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #f0b030,
      #f8d860);
}
.rk-prog small {
  font-size: 12px;
  color: #404858;
}
.rk-rule {
  margin: 0;
  font-size: 12px;
}
.rk-bad-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 8px;
  border: 2px solid #e0a090;
  border-radius: 6px;
  background: #fff4f0;
}
.rk-side button.rk-go {
  width: 100%;
  min-height: 58px !important;
  flex: none;
}
.rk-side button.rk-go .remote-big-text b {
  font-size: 22px;
  letter-spacing: 6px;
}
.rk-side button.rk-go.rk-cancel {
  background: #f4e2a8 !important;
}
.rk-foot {
  margin: 0;
  font-size: 11px;
}
.rk-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: #eaf6ea;
  border: 2px solid #3a8a4a;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2a6a38;
  white-space: nowrap;
}
.rk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3cc05a;
  box-shadow: 0 0 0 2px #3cc05a55;
  animation: od-pulse 1.4s ease-in-out infinite;
}
.rk-tier {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rk-tier img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.rk-row.top1 {
  background: #fff3c4;
}
.rk-row.top2 {
  background: #eef0f4;
}
.rk-row.top3 {
  background: #f8e4d4;
}
.rk-pts {
  min-width: 3.2em;
  text-align: right;
}
@media (max-height:470px) {
  .rk-emblem {
    gap: 8px;
    padding: 0;
  }
  .rk-emblem-name {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .rk-emblem-div {
    font-size: 34px;
  }
  .rk-side button.rk-go {
    min-height: 42px !important;
  }
  .rk-side button.rk-go .remote-big-text b {
    font-size: 17px;
  }
  .rk-side-body {
    gap: 4px;
  }
  .rk-rule {
    font-size: 11px;
  }
}
.rk-emblem-img {
  width: 90px;
  width: clamp(90px, 24vh, 180px);
}
.rk-side-body .rk-go {
  margin-top: auto;
}
.rk-side button.rk-go {
  height: auto !important;
}
.rk-side-body {
  overflow: hidden;
  justify-content: space-between;
}
.rk-bad-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 2px solid #e0a090;
  border-radius: 6px;
  background: #fff4f0;
  font-size: 12px;
  color: #b23a3a;
  min-width: 0;
}
.rk-bad-line > span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-bad-line small {
  flex: none;
  opacity: .8;
}
.rk-bad-line button.small-btn {
  flex: none;
  min-height: 0 !important;
  padding: 2px 8px !important;
  font-size: 12px;
}
.rk-side button.rk-go {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  min-height: 52px !important;
}
.rk-side .rk-rules-btn {
  min-height: 30px !important;
  height: 30px;
  padding: 0 10px !important;
  font-size: 13px;
}
.rk-rules-box {
  max-width: 560px;
  max-width: min(560px, 86vw);
}
.rk-rules-box p {
  margin: 0 0 6px;
}
@media (max-height:470px) {
  .rk-side button.rk-go {
    font-size: 17px;
    min-height: 40px !important;
  }
  .rk-emblem-img {
    width: 80px;
    width: clamp(80px, 26vh, 130px);
  }
}
.rk-emblem-btn {
  position: relative;
  flex: none;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0;
}
.rk-emblem-btn:hover .rk-emblem-img {
  filter: brightness(1.08) drop-shadow(0 4px 0 #30385055);
}
.rk-emblem-hint {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 22px;
  height: 22px;
  line-height: 20px;
  border-radius: 50%;
  background: #3a56a8;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 #0005;
}
.rk-rules-dialog {
  width: 620px !important;
  width: min(620px, 92vw) !important;
}
.rk-tier-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
}
.rk-tier-row {
  display: grid;
  grid-template-columns: 34px 4.5em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 13px;
}
.rk-tier-row img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.rk-tier-row small {
  color: #687080;
  font-family:
    "Times New Roman",
    Georgia,
    serif;
  font-weight: 700;
}
.rk-tier-row.on {
  background: #fff3c4;
  border-color: #d8a830;
}
.rk-tier-pts {
  font-variant-numeric: tabular-nums;
  color: #404858;
}
@media (max-height:470px) {
  .rk-tier-row {
    padding: 0 6px;
  }
  .rk-tier-row img {
    width: 24px;
    height: 24px;
  }
  .rk-tier-table {
    gap: 1px;
  }
  .rk-rules-box .rk-rules {
    font-size: 11px;
    margin: 2px 0;
  }
}
.remote-me .remote-news {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  align-self: stretch;
  overflow: hidden;
}
.remote-me .remote-news:empty {
  display: none;
}
.remote-me .remote-status {
  margin: 0;
  font-size: 12px;
  color: #687080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.remote-me .remote-acts {
  gap: 2px;
}
.remote-me .remote-act {
  padding: 1px 4px 1px 8px;
  border-width: 2px;
  border-radius: 6px;
  gap: 6px;
  min-height: 0;
}
.remote-me .remote-act .grow {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.remote-me .remote-act .grow b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remote-me .remote-act .grow small {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remote-me .remote-act button.small-btn {
  min-height: 0 !important;
  padding: 1px 8px !important;
  font-size: 12px;
}
.remote-me .remote-act .start-spin {
  width: 12px;
  height: 12px;
  border-width: 2px;
}
.remote-me:has(.remote-act) .remote-team {
  display: none;
}
@media (max-height:470px) {
  .remote-me .remote-act .grow small {
    display: none;
  }
}
.remote-me .remote-act .grow b {
  flex: none;
}
.remote-me .remote-act .grow small {
  flex: 1 1 auto;
  min-width: 0;
}
.party-thumb {
  position: relative;
}
.party-thumb .thumb-ball.ball-face {
  position: absolute;
  right: 2px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  z-index: 1;
  filter: drop-shadow(0 1px 0 #0007);
}
.tm-name {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}
.tm-ball.ball-face {
  width: 20px;
  height: 20px;
  flex: none;
}
.mi-ball.ball-face {
  width: 22px;
  height: 22px;
  vertical-align: -3px;
  margin-right: 4px;
}
@media (max-height:470px) {
  .party-thumb .thumb-ball.ball-face {
    width: 14px;
    height: 14px;
    bottom: 4px;
  }
  .tm-ball.ball-face {
    width: 16px;
    height: 16px;
  }
}
.tm-name {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}
.tm-name .tm-ball.ball-face {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: 3px;
  transform: translateY(-50%);
}
.bl-body b {
  font-weight: 700;
}
.bl-body b.hl-red {
  color: #c0392b;
}
.mega-toggle {
  position: relative;
  padding: 2px 10px !important;
  min-height: 0 !important;
  border: 2px solid #3a1860 !important;
  background:
    linear-gradient(
      90deg,
      #ff5a8a,
      #ffb03a,
      #ffe85a,
      #5ad88a,
      #5aa8ff,
      #b06aff,
      #ff5a8a) !important;
  background-size: 300% 100% !important;
  animation: mega-flow 3s linear infinite;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow:
    1px 1px 0 #3a1860,
    -1px -1px 0 #3a1860,
    1px -1px 0 #3a1860,
    -1px 1px 0 #3a1860;
  box-shadow: none !important;
}
.mega-toggle.on {
  outline: 2px solid #fff;
  outline-offset: 1px;
  filter: saturate(1.2);
}
@keyframes mega-flow {
  to {
    background-position: 300% 0;
  }
}
@media (prefers-reduced-motion:reduce) {
  .mega-toggle {
    animation: none;
  }
}
.stat-row.mega b {
  color: #a03ac0 !important;
}
.stat-row.mega .stat-bar i {
  background:
    linear-gradient(
      90deg,
      #b06aff,
      #ff5ab4);
}
.mi-stats-h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.remote-big.remote-match-cancel {
  background: #f4e2a8 !important;
}
.remote-big .remote-big-text small .start-spin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-width: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.match-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.rk-side button.rk-go .rk-go-text {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.rk-side button.rk-go .rk-go-text .match-clock {
  font-size: .8em;
  letter-spacing: 1px;
}
.rk-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff4d0;
  border: 2px solid #d0a050;
  border-radius: 6px;
  color: #504030;
}
.rk-wait > div {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.rk-wait b {
  font-size: 14px;
  flex: none;
}
.rk-wait small {
  font-size: 12px;
  color: #706050;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-wait {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}
.rk-side-body > .rk-go {
  flex: none;
}
.rk-wait .start-spin {
  width: 14px;
  height: 14px;
  border-width: 3px;
  flex: none;
}
@media (max-height:470px) {
  .rk-wait {
    padding: 3px 8px;
  }
  .rk-wait small {
    font-size: 11px;
  }
}
.rk-side-body {
  overflow: hidden;
}
.rk-side-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rk-side-scroll > * {
  flex: none;
}
.rk-side-scroll > .rk-wait {
  flex: none;
  min-height: auto;
}
.rk-side-body > .rk-go {
  flex: none;
  margin-top: 0;
}
.rk-emblem-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-height:470px) {
  .rk-side-scroll {
    gap: 4px;
  }
  .rk-emblem-div {
    font-size: 30px;
  }
}
.rk-side-body > .rk-wait {
  flex: none;
  min-height: auto;
}
.tm-card .tm-pic {
  position: relative;
}
.tm-held {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fffc;
  border: 2px solid #6878a0;
  border-radius: 50%;
  box-shadow: 0 2px 0 #30385040;
  pointer-events: none;
}
.tm-held img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  object-fit: contain;
}
.tm-top {
  min-width: 0;
}
.tm-top .type-row {
  flex-wrap: nowrap;
  min-width: 0;
}
.tm-top .type-tag {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  gap: 1px;
  padding: 0 3px 0 1px;
}
.tm-top .type-row:has(.type-tag + .type-tag) .type-tag {
  font-size: 9px;
  letter-spacing: -.5px;
}
.tm-top .type-row:has(.type-tag + .type-tag) .type-tag img {
  width: 11px;
  height: 11px;
}
body[data-screen=tasks] .mega-event {
  width: 100% !important;
  width: min(100%, 1180px) !important;
}
.mega-event .mge-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      115deg,
      #2a1f5c 0%,
      #5b2d8e 38%,
      #c0408a 72%,
      #f0a040 100%);
  border: 2px solid #20184a;
  box-shadow: 0 3px 0 #20184a55;
}
.mega-event .mge-hero:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 22px,
      #ffffff10 22px 24px);
  pointer-events: none;
}
.mega-event .mge-hero:after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 60px;
  left: -80px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #ffffff40,
      transparent);
  transform: skewX(-20deg);
  animation: mge-shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mge-shine {
  0%, 55% {
    left: -80px;
  }
  100% {
    left: 110%;
  }
}
.mega-event .mge-hero-art {
  position: relative;
  width: 112px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    radial-gradient(
      circle at 50% 55%,
      #fff6c8 0,
      #ffd86a55 30%,
      transparent 62%);
}
.mega-event .mge-hero-mon {
  position: relative;
  z-index: 1;
  display: flex;
  cursor: pointer;
}
.mega-event .mge-hero-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mge-pop .5s cubic-bezier(.3, 1.6, .5, 1);
}
.mega-event .mge-hero-pop .mon-sprite {
  filter: drop-shadow(0 0 6px #ffe9a0) drop-shadow(2px 3px 0 #20184a88);
}
.mega-event .mge-hero-pop small {
  margin-top: -4px;
  padding: 1px 6px;
  font-size: 10px;
  background: #20184acc;
  border: 1px solid #ffd86a;
  white-space: nowrap;
  color: #fff;
}
@keyframes mge-pop {
  from {
    transform: scale(.4) translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.mega-event .mge-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  left: calc(50% + var(--x) * 1px);
  top: calc(50% + var(--y) * 1px);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transform: scale(0);
  animation: mge-twinkle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .34s);
}
.mega-event .mge-spark:nth-child(1) {
  --x:-48;
  --y:-30;
}
.mega-event .mge-spark:nth-child(2) {
  --x:40;
  --y:-38;
}
.mega-event .mge-spark:nth-child(3) {
  --x:50;
  --y:10;
}
.mega-event .mge-spark:nth-child(4) {
  --x:-52;
  --y:18;
}
.mega-event .mge-spark:nth-child(5) {
  --x:-20;
  --y:-44;
}
.mega-event .mge-spark:nth-child(6) {
  --x:24;
  --y:34;
}
.mega-event .mge-spark:nth-child(7) {
  --x:-34;
  --y:38;
}
.mega-event .mge-spark:nth-child(odd) {
  width: 9px;
  height: 9px;
  background: #ffe27a;
}
@keyframes mge-twinkle {
  0%, 100% {
    transform: scale(0) rotate(0);
  }
  40% {
    transform: scale(1.4) rotate(45deg);
  }
  70% {
    transform: scale(.6) rotate(90deg);
  }
}
.mega-event .mge-hero-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.mega-event .mge-eyebrow {
  font-family: ExpeditionPixel, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #ffe27a;
}
.mega-event .mge-hero h1 {
  margin: 1px 0 3px !important;
  font-size: 18px !important;
  font-size: clamp(18px, 4.6vh, 28px) !important;
  color: #fff;
  text-shadow: 2px 2px 0 #20184a, 0 0 12px #ff9ad5aa;
  letter-spacing: 1px;
}
.mega-event .mge-hero-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #fff3fb;
}
.mega-event .mge-hero-text p.mge-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.mega-event .mge-next-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.mega-event .mge-next-row b {
  font-size: 11px;
  padding: 1px 6px;
  margin-right: 2px;
  border: 1px solid #ffd86a;
  background: #20184a99;
  color: #ffe27a;
  white-space: nowrap;
}
.mega-event .mge-next-row.leave b {
  border-color: #ff9a9a;
  color: #ffc0c0;
}
.mega-event .mge-next-stone {
  width: 28px;
  height: 28px;
  min-height: 0 !important;
  padding: 2px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff22 !important;
  border: 1px solid #ffffff55 !important;
  box-shadow: none !important;
}
.mega-event .mge-next-stone.have {
  border-color: #7ce08a !important;
}
.mega-event .mge-next-note {
  flex-basis: 100%;
  font-size: 10px;
  color: #e8d8f0;
}
.mega-event .mge-meter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #fff3fb;
}
.mega-event .mge-meter em {
  font-style: normal;
  font-size: 10px;
  padding: 0 6px;
  background: #20184a99;
  border: 1px solid #ffd86a;
  color: #ffe27a;
}
.mega-event .mge-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background:
    radial-gradient(
      closest-side,
      #2a1f5c 78%,
      transparent 80% 100%),
    conic-gradient(#ffe27a calc(var(--p) * 360deg), #ffffff38 0);
}
.mega-event .mge-ring b {
  font-family: ExpeditionPixel, monospace;
  font-size: 20px;
  color: #ffe27a;
}
.mega-event .mge-ring small {
  font-size: 10px;
  color: #e8d8f0;
}
.mega-event .mge-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.mega-event .mge-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 11px;
  color: #505870;
  flex-wrap: wrap;
}
.mega-event .mge-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mega-event .mge-key-note {
  margin-left: auto;
  color: #8088a0;
}
.mega-event .mge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border: 2px solid #b8bcc8;
  background: #fff;
  color: #fff;
  box-sizing: border-box;
}
.mega-event .have > .mge-mark {
  background: #3aa860;
  border-color: #2a8048;
}
.mega-event .pending > .mge-mark {
  background: #f0a030;
  border-color: #c07818;
}
.mega-event .mge-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.mega-event .mge-mode {
  --c:#3870b8;
  --c2:#e8f0fa;
  --c3:#3870b866;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 7px 8px;
  background:
    linear-gradient(
      180deg,
      var(--c2),
      #ffffff 60%);
  border: 2px solid var(--c);
  box-shadow: 0 3px 0 var(--c3);
}
.mega-event .mge-mode.dungeon {
  --c:#3a9a5c;
  --c2:#e2f4e6;
  --c3:#3a9a5c66;
}
.mega-event .mge-mode.royale {
  --c:#c8443c;
  --c2:#fbe4e0;
  --c3:#c8443c66;
}
.mega-event .mge-mode.road {
  --c:#c8901c;
  --c2:#fbf0d4;
  --c3:#c8901c66;
}
.mega-event .mge-mode.ranked {
  --c:#6a48b8;
  --c2:#ece4fa;
  --c3:#6a48b866;
}
.mega-event .mge-mode header {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mega-event .mge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--c);
  transform: rotate(-6deg);
}
.mega-event .mge-mode h2 {
  margin: 0 !important;
  font-size: 14px !important;
  color: #283048;
}
.mega-event .mge-mode header small {
  font-size: 10px;
  color: #707890;
}
.mega-event .mge-how {
  margin: 5px 0 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #404858;
}
.mega-event .mge-odds {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.mega-event .mge-odds > small {
  font-size: 10px;
  color: #808898;
}
.mega-event .mge-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  font-size: 10px;
  color: #fff;
  background: #78a868;
  border: 1px solid #0002;
}
.mega-event .mge-pill b {
  font-family: ExpeditionPixel, monospace;
  font-size: 11px;
  color: #fff8c0;
}
.mega-event .mge-pill.lv1 {
  background: #d89a28;
}
.mega-event .mge-pill.lv2 {
  background: #d05040;
}
.mega-event .mge-week {
  flex-wrap: nowrap;
}
.mega-event .mge-week b {
  font-size: 11px;
  color: var(--c);
  white-space: nowrap;
}
.mega-event .mge-bar {
  flex: 1;
  height: 8px;
  background: #fff;
  border: 2px solid var(--c);
}
.mega-event .mge-bar i {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--c) 0 6px,
      #fff6 6px 8px);
  transition: width .6s;
}
.mega-event .mge-stones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding: 3px;
  align-content: start;
}
.mega-event .mge-stone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 !important;
  min-height: 0 !important;
  background: #fff;
  border: 2px solid #d0d4dc;
  box-shadow: none;
}
.mega-event .mge-stone img {
  image-rendering: pixelated;
}
.mega-event .mge-stone.todo img {
  filter: grayscale(.85) brightness(.8);
  opacity: .6;
}
.mega-event .mge-stone.have {
  background:
    radial-gradient(
      circle,
      #fff8d0,
      #ffffff 70%);
  border-color: #3aa860;
}
.mega-event .mge-stone.pending {
  border-color: #f0a030;
  animation: mge-pulse 1.6s ease-in-out infinite;
}
@keyframes mge-pulse {
  50% {
    box-shadow: 0 0 0 3px #f0a03055;
  }
}
.mega-event .mge-stone .mge-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  font-size: 9px;
  border-width: 1px;
}
.mega-event .mge-stone.todo .mge-mark {
  display: none;
}
.mega-event .mge-stone:hover {
  transform: translateY(-2px);
  border-color: var(--c);
}
.mega-event .mge-none {
  margin: auto 0;
  padding: 10px;
  font-size: 11px;
  color: #909098;
  text-align: center;
  border: 2px dashed #d0d4dc;
}
.mega-event .mge-mode.empty {
  filter: saturate(.45);
}
.mega-event .mge-offline {
  padding: 16px;
  text-align: center;
  border: 2px dashed #b0a0d8;
  background: #f4f0fc;
  color: #404858;
}
.mega-event .mge-offline p {
  font-size: 12px;
  margin: 6px 0 0;
}
.mge-detail {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
}
.mge-detail-art {
  position: relative;
  width: 120px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mge-detail-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(
      circle,
      #fff3b0,
      #ffcf6a55 40%,
      transparent 70%);
  animation: mge-glow 2s ease-in-out infinite;
}
@keyframes mge-glow {
  50% {
    transform: scale(1.1);
    opacity: .7;
  }
}
.mge-detail-art .mon-sprite {
  position: relative;
}
.mge-detail-stone {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px;
  background: #fff;
  border: 2px solid #c8a040;
  display: flex;
}
.mge-detail-text p {
  margin: 6px 0;
  font-size: 13px;
}
.mge-state {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  color: #fff;
  background: #9098a8;
}
.mge-state.have {
  background: #3aa860;
}
.mge-state.pending {
  background: #f0a030;
}
.mge-where {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 12px;
}
.mge-where li {
  margin: 2px 0;
}
@media (max-height:470px) {
  .mega-event .mge-hero {
    padding: 3px 10px 3px 4px;
    gap: 10px;
    margin-bottom: 4px;
  }
  .mega-event .mge-hero-art {
    width: 84px;
    height: 60px;
  }
  .mega-event .mge-hero-pop .mon-sprite {
    zoom: .7;
  }
  .mega-event .mge-hero-pop small {
    font-size: 9px;
  }
  .mega-event .mge-eyebrow {
    font-size: 8px;
  }
  .mega-event .mge-hero-text p {
    font-size: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mega-event .mge-ring {
    width: 44px;
    height: 44px;
  }
  .mega-event .mge-ring b {
    font-size: 14px;
  }
  .mega-event .mge-meter {
    font-size: 10px;
  }
  .mega-event .mge-legend {
    margin-bottom: 3px;
    font-size: 10px;
  }
  .mega-event .mge-mode {
    padding: 4px 6px;
  }
  .mega-event .mge-badge {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .mega-event .mge-mode h2 {
    font-size: 12px !important;
  }
  .mega-event .mge-how {
    margin: 2px 0;
    font-size: 10px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mega-event .mge-odds {
    margin-bottom: 3px;
  }
  .mega-event .mge-stones {
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 3px;
  }
  .mega-event .mge-stone {
    height: 30px;
  }
  .mega-event .mge-stone img {
    width: 22px;
    height: 22px;
  }
  .mge-detail-art {
    width: 90px;
    height: 84px;
  }
  .mge-detail-art .mon-sprite {
    zoom: .8;
  }
  .mge-detail-text p {
    font-size: 11px;
    margin: 3px 0;
  }
}
@media (orientation:portrait) and (max-width:600px) {
  .mega-event .mge-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mega-event .mge-meter {
    display: none;
  }
}
.mega-event .mge-hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mega-event .mge-countdown {
  font-size: 11px;
  padding: 1px 8px;
  color: #20184a;
  background: #ffe27a;
  border: 2px solid #20184a;
  box-shadow: 2px 2px 0 #20184a88;
  white-space: nowrap;
}
.mega-event .mge-countdown:empty {
  display: none;
}
.mega-event .mge-countdown.soon {
  animation: mge-pulse-cd 1.2s ease-in-out infinite;
}
@keyframes mge-pulse-cd {
  50% {
    background: #fff6c8;
  }
}
@media (max-height:470px) {
  .mega-event .mge-countdown {
    font-size: 9px;
    padding: 0 5px;
    border-width: 1px;
  }
}
.mega-event .mge-mode > header,
.mega-event .mge-how,
.mega-event .mge-odds,
.mega-event .mge-legend,
.mega-event .mge-hero {
  flex-shrink: 0;
}
.mega-event .mge-stones {
  flex: 1 1 auto;
}
@media (max-height:470px) {
  .mega-event .mge-hero-art {
    width: 76px;
    height: 56px;
  }
  .mega-event .mge-hero-pop .mon-sprite {
    zoom: .62;
  }
  .mega-event .mge-hero-text p {
    -webkit-line-clamp: 1;
  }
  .mega-event .mge-hero h1 {
    font-size: 17px !important;
    margin: 0 !important;
  }
}
.mega-event .mge-stone {
  overflow: visible;
}
.mega-event .mge-mon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.mega-event .mge-spr {
  zoom: .42;
}
.mega-event .mge-stone.todo .mge-mon {
  filter: grayscale(1) opacity(.55);
}
.mega-event .mge-stone.todo {
  background:
    repeating-linear-gradient(
      45deg,
      #f4f4f8 0,
      #f4f4f8 4px,
      #ececf2 4px,
      #ececf2 8px);
}
.mega-event .mge-chip-stone {
  position: absolute;
  left: -3px;
  top: -3px;
  display: flex;
  padding: 0;
  background: #fff;
  border: 1px solid #c8c0a0;
  border-radius: 50%;
  pointer-events: none;
}
.mega-event .mge-chip-stone img {
  width: 14px;
  height: 14px;
}
.mega-event .mge-stone.todo .mge-chip-stone {
  opacity: .7;
}
.mega-event .mge-stones {
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  padding: 4px;
}
.mega-event .mge-stone {
  height: 44px;
}
@media (max-height:470px) {
  .mega-event .mge-stones {
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
    gap: 4px;
  }
  .mega-event .mge-stone {
    height: 34px;
  }
  .mega-event .mge-spr {
    zoom: .34;
  }
  .mega-event .mge-chip-stone img {
    width: 11px;
    height: 11px;
  }
}
@media (max-height:470px) {
  .mega-event .mge-hero-text p {
    display: none;
  }
  .mega-event .mge-hero-art {
    height: 48px;
  }
}
.mega-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-pv-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mega-pv-mon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
}
.mega-pv-mon small {
  font-size: 11px;
  color: #505870;
  white-space: nowrap;
}
.mega-pv-mon.base .mon-sprite {
  zoom: .75;
  filter: saturate(.8);
}
.mega-pv-mon.mega small {
  color: #8a3aa8;
  font-weight: 700;
}
.mega-pv-glow {
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  background:
    radial-gradient(
      circle,
      #fff3b0,
      #ffcf6a66 40%,
      transparent 70%);
  animation: mge-glow 2s ease-in-out infinite;
  pointer-events: none;
}
.mega-pv-mon.mega .mon-sprite {
  position: relative;
}
.mega-pv-arrow {
  font-size: 20px;
  color: #c0408a;
  text-shadow: 1px 1px 0 #fff;
  animation: mega-pv-go 1.2s ease-in-out infinite;
}
@keyframes mega-pv-go {
  50% {
    transform: translateX(4px);
  }
}
.mega-pv-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.mega-pv-box .sub {
  max-width: 420px;
}
.mge-detail-art {
  width: auto !important;
  height: auto !important;
  min-width: 0;
}
.mge-detail .mge-detail-stone {
  right: -4px;
  bottom: -4px;
}
.mega-event .mge-mode > header {
  position: relative;
}
.mega-event .mge-help-btn {
  margin-left: auto;
  width: 24px;
  height: 24px;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--c);
}
.mega-event .mge-mode > header > div {
  min-width: 0;
}
.mge-help p {
  font-size: 13px;
  line-height: 1.6;
}
.mega-event .mge-pill b {
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
}
@media (max-height:470px) {
  .mega-pv-mon {
    min-width: 64px;
  }
  .mega-pv-mon .mon-sprite {
    zoom: .7;
  }
  .mega-pv-mon.base .mon-sprite {
    zoom: .55;
  }
  .mega-event .mge-help-btn {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}
.mge-detail-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mge-detail-head img {
  image-rendering: pixelated;
}
@media (min-height:600px) {
  .mega-event .mge-stones {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
  .mega-event .mge-stone {
    height: 56px;
  }
  .mega-event .mge-spr {
    zoom: .5;
  }
}
.mega-event .mge-stone > img {
  width: 30px;
  height: 30px;
}
.mega-event .mge-stone.todo > img {
  filter: grayscale(.7);
  opacity: .7;
}
.mega-event .mge-thumb {
  position: absolute;
  right: -4px;
  top: -5px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c8c0d8;
  pointer-events: none;
}
.mega-event .mge-thumb .mge-spr {
  zoom: .2;
}
.mega-event .mge-stone.todo .mge-thumb {
  filter: grayscale(1);
  opacity: .75;
}
.mega-event .mge-new {
  position: absolute;
  left: -4px;
  top: -6px;
  padding: 0 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  color: #fff;
  background: #e04848;
  border: 1px solid #fff;
  transform: rotate(-8deg);
  pointer-events: none;
}
@media (min-height:600px) {
  .mega-event .mge-stone > img {
    width: 40px;
    height: 40px;
  }
  .mega-event .mge-thumb {
    width: 28px;
    height: 28px;
  }
  .mega-event .mge-thumb .mge-spr {
    zoom: .26;
  }
}
@media (max-height:470px) {
  .mega-event .mge-stone > img {
    width: 24px;
    height: 24px;
  }
  .mega-event .mge-thumb {
    width: 17px;
    height: 17px;
    right: -3px;
    top: -4px;
  }
  .mega-event .mge-thumb .mge-spr {
    zoom: .15;
  }
}
.mega-event .mge-hero-stone {
  position: relative;
  display: flex;
  filter: drop-shadow(0 0 8px #ffe9a0) drop-shadow(2px 3px 0 #20184a88);
  animation: mge-float 2.4s ease-in-out infinite;
}
.mega-event .mge-hero-stone > img {
  image-rendering: pixelated;
}
@keyframes mge-float {
  50% {
    transform: translateY(-4px);
  }
}
.mega-event .mge-hero-thumb {
  position: absolute;
  right: -26px;
  bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffffd0;
  border: 2px solid #ffd86a;
}
.mega-event .mge-hero-thumb .mon-sprite {
  zoom: .38;
}
@media (max-height:470px) {
  .mega-event .mge-hero-stone > img {
    width: 36px;
    height: 36px;
  }
  .mega-event .mge-hero-thumb {
    width: 26px;
    height: 26px;
    right: -18px;
    bottom: -4px;
  }
  .mega-event .mge-hero-thumb .mon-sprite {
    zoom: .25;
  }
}
@media (max-height:470px) {
  .mega-event .mge-hero {
    padding: 2px 8px 2px 4px;
    gap: 8px;
    margin-bottom: 3px;
  }
  .mega-event .mge-hero-art {
    width: 58px;
    height: 38px;
  }
  .mega-event .mge-hero-pop small {
    display: none;
  }
  .mega-event .mge-hero-stone > img {
    width: 28px;
    height: 28px;
  }
  .mega-event .mge-hero-thumb {
    width: 20px;
    height: 20px;
    right: -14px;
    bottom: -3px;
  }
  .mega-event .mge-hero-thumb .mon-sprite {
    zoom: .19;
  }
  .mega-event .mge-hero-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .mega-event .mge-hero-top {
    order: 2;
  }
  .mega-event .mge-eyebrow {
    display: none;
  }
  .mega-event .mge-hero h1 {
    font-size: 15px !important;
    order: 1;
  }
  .mega-event .mge-meter {
    flex-direction: row;
    gap: 5px;
  }
  .mega-event .mge-ring {
    width: 32px;
    height: 32px;
  }
  .mega-event .mge-ring b {
    font-size: 11px;
  }
  .mega-event .mge-ring small {
    font-size: 8px;
  }
  .mega-event .mge-spark {
    display: none;
  }
}
.mega-event .mge-modes {
  grid-auto-rows: auto auto minmax(0, 1fr);
  row-gap: 0;
}
.mega-event .mge-mode {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 5px;
}
.mega-event .mge-mode .mge-odds {
  margin: 0;
  align-content: flex-start;
  align-self: start;
}
.mega-event .mge-stones {
  --sz:52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--sz));
  grid-auto-rows: var(--sz);
  justify-content: center;
  align-content: center;
  gap: 8px;
  padding: 8px;
  margin: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffffc8;
  border: 2px solid var(--c);
  box-shadow: inset 0 0 0 2px #fff, inset 0 2px 6px var(--c3);
}
.mega-event .mge-stones .mge-stone {
  width: var(--sz);
  height: var(--sz);
}
.mega-event .mge-stones .mge-stone > img {
  width: calc(var(--sz) - 14px);
  height: calc(var(--sz) - 14px);
}
.mega-event .mge-none {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (orientation:portrait) and (max-width:600px) {
  .mega-event .mge-modes {
    grid-auto-rows: auto auto minmax(80px, 1fr);
    row-gap: 8px;
  }
}
@media (max-height:470px) {
  .mega-event .mge-mode {
    row-gap: 3px;
  }
  .mega-event .mge-stones {
    --sz:36px;
    gap: 6px;
    padding: 4px;
  }
}
@media (min-height:600px) {
  .mega-event .mge-stones {
    --sz:64px;
    gap: 10px;
  }
}
.mega-event .mge-hero-pop .mon-sprite {
  zoom: 1;
}
@media (max-height:470px) {
  .mega-event .mge-hero {
    padding: 4px 10px 4px 4px;
    gap: 10px;
    margin-bottom: 5px;
  }
  .mega-event .mge-hero-art {
    width: 76px;
    height: 54px;
  }
  .mega-event .mge-hero-pop .mon-sprite {
    zoom: .58;
  }
  .mega-event .mge-hero-pop small {
    display: block;
    font-size: 8px;
    margin-top: -6px;
  }
  .mega-event .mge-spark {
    display: block;
  }
  .mega-event .mge-hero-text {
    display: block;
  }
  .mega-event .mge-hero-top {
    order: 0;
  }
  .mega-event .mge-hero h1 {
    font-size: 16px !important;
    margin: 1px 0 !important;
  }
  .mega-event .mge-hero-text p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    font-size: 10px;
  }
  .mega-event .mge-meter {
    flex-direction: column;
    gap: 1px;
  }
  .mega-event .mge-ring {
    width: 40px;
    height: 40px;
  }
  .mega-event .mge-ring b {
    font-size: 13px;
  }
  .mega-event .mge-ring small {
    font-size: 9px;
  }
}
.mega-event .mge-modes {
  align-content: start;
}
.mega-event .mge-modes {
  grid-auto-rows: auto auto auto;
}
.mega-event .mge-stones {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: var(--sz);
  justify-content: center;
  align-self: start;
  overflow-x: auto;
  overflow-y: hidden;
}
.mega-event .mge-none {
  align-self: start;
}
@media (orientation:portrait) and (max-width:600px) {
  .mega-event .mge-modes {
    grid-auto-rows: auto auto auto;
  }
}
.mega-event .mge-modes {
  align-content: stretch;
  grid-auto-rows: auto auto minmax(0, 1fr);
}
.mega-event .mge-stones {
  align-self: stretch;
  align-content: center;
  justify-content: safe center;
  grid-auto-columns: minmax(28px, var(--sz));
  grid-auto-rows: auto;
}
.mega-event .mge-stones .mge-stone {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  --ar: 1;
}
.mega-event .mge-stones .mge-stone > img {
  width: 72%;
  height: 72%;
}
@media (min-height:600px) {
  .mega-event .mge-stones {
    --sz:76px;
    gap: 12px;
  }
}
@media (orientation:portrait) and (max-width:600px) {
  .mega-event .mge-modes {
    grid-auto-rows: auto auto minmax(70px, 1fr);
  }
}
.mon-got {
  font-style: italic;
  color: #7a6a50 !important;
}
.pc-info-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 1px;
  margin: 3px 0 5px;
  padding: 4px 6px;
  background: #0000000a;
  border-radius: 6px;
}
.pc-info-row > p {
  margin: 0 !important;
}
.pc-info-row > .mon-got {
  flex-basis: 100%;
}
@keyframes mega-rainbow {
  to {
    background-position: 200% 0;
  }
}
.menu-card[data-destination=tasks] {
  position: relative;
  overflow: visible;
}
.mega-flair {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 2;
  padding: 1px 6px;
  font: 700 10px/14px ExpeditionPixel, monospace;
  font-style: normal;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 1px 1px 0 #20184a;
  background:
    linear-gradient(
      90deg,
      #ff4d6d,
      #ffb347,
      #ffe94d,
      #4dff88,
      #4dc3ff,
      #a14dff,
      #ff4d6d);
  background-size: 200% 100%;
  animation: mega-rainbow 2.4s linear infinite;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #20184a, 0 0 10px #ff9ad5aa;
  transform: rotate(6deg);
  pointer-events: none;
}
.task-tab.mega-tab {
  color: #fff !important;
  text-shadow: 1px 1px 0 #20184a;
  border-color: #20184a !important;
  background:
    linear-gradient(
      90deg,
      #ff4d6d,
      #ffb347,
      #ffe94d,
      #4dff88,
      #4dc3ff,
      #a14dff,
      #ff4d6d) !important;
  background-size: 200% 100% !important;
  animation: mega-rainbow 3s linear infinite;
}
.task-tab.mega-tab:not(.on) {
  filter: saturate(.75) brightness(.95);
}
.task-tab.mega-tab.on {
  box-shadow: 0 0 0 2px #fff, 0 0 12px #ff9ad5;
}
@media (max-height:470px) {
  .mega-flair {
    font-size: 8px;
    line-height: 11px;
    padding: 0 4px;
    top: -6px;
    right: -4px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .mega-flair,
  .task-tab.mega-tab {
    animation: none;
  }
}
.type-row.mega-on,
.pc-sub.mega-on,
.mi-row.mega-on b,
.tm-rows .mega-on {
  background-image:
    linear-gradient(
      90deg,
      #ff4d6d,
      #ffb347,
      #ffe94d,
      #4dff88,
      #4dc3ff,
      #a14dff);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}
.tm-card .tm-pic {
  position: relative;
}
.tm-mega-row {
  align-self: stretch;
  display: flex;
  justify-content: center;
  margin: 1px 0 2px;
}
.tm-mega-row .tm-mega {
  margin: 0;
  transform: scale(.85);
}
.mega-event .mge-meter.clickable {
  cursor: pointer;
}
.mega-event .mge-meter.clickable:hover .mge-ring {
  transform: scale(1.06);
}
.mega-event.mge-all {
  width: auto !important;
  max-height: 460px;
  max-height: min(62vh, 460px);
  overflow: auto;
}
.mge-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  padding: 6px 2px;
}
.mge-all-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mge-all-cell small {
  font-size: 10px;
  color: #505870;
  text-align: center;
  line-height: 1.2;
}
.mge-all .mge-stone {
  width: 52px;
  height: 52px;
}
.mge-all .mge-stone > img {
  width: 36px;
  height: 36px;
}
@media (max-height:470px) {
  .mge-all-grid {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 5px;
  }
  .mge-all .mge-stone {
    width: 40px;
    height: 40px;
  }
  .mge-all .mge-stone > img {
    width: 28px;
    height: 28px;
  }
  .mega-event.mge-all {
    max-height: 54vh;
  }
}
.stone-img {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}
.stone-img > img {
  width: 100%;
  height: 100%;
}
.stone-thumb {
  position: absolute;
  right: -3px;
  top: -4px;
  width: 52%;
  height: 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c8c0d8;
  pointer-events: none;
}
.inv-icon .stone-img {
  width: 100% !important;
  height: 100% !important;
}
.rk-cols5 .rk-row {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) 9.6em 3.6em 6.2em;
  column-gap: 10px;
  align-items: center;
}
.rk-cols5 .rk-rank {
  width: auto;
  text-align: right;
}
.rk-cols5 .rk-nm {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-cols5 .rk-tc {
  justify-self: start;
  min-width: 0;
}
.rk-cols5 .rk-pts {
  min-width: 0;
  text-align: right;
}
.rk-cols5 .rk-wl {
  text-align: right;
  white-space: nowrap;
}
.rk-cols5 .rk-head {
  border-bottom: 2px solid #e0cfa0;
  padding-top: 0;
  padding-bottom: 2px;
}
.rk-cols5 .rk-head small {
  font-size: 11px;
  color: #8a8070;
}
@media (max-height:470px) {
  .rk-cols5 .rk-row {
    grid-template-columns: 1.8em minmax(0, 1fr) 8.2em 3em 5.2em;
    column-gap: 6px;
  }
}
.menu-card[data-destination=tasks] .menu-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e04848;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #a02828;
  z-index: 3;
}
.act-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.act-top h1 {
  margin: 0 !important;
}
.act-top small {
  font-size: 11px;
}
.act-bars {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 5px 10px;
  background: #fffaf0;
  border: 2px solid #e8d8b0;
  flex-shrink: 0;
}
.act-rows {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.act-row {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 22px;
}
.act-label {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 12px;
  white-space: nowrap;
  color: #5a4a30;
}
.act-label b {
  font-size: 13px;
  color: #c06a10;
  margin-left: 2px;
}
.act-label small {
  font-size: 10px;
  color: #9a8a70;
}
.act-track {
  position: relative;
  height: 8px;
  margin: 0 12px 0 4px;
  background: #efe4c8;
  border: 1px solid #c8b080;
}
.act-track > i {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      90deg,
      #f6c445,
      #f08a2a);
}
.act-row.week .act-track {
  height: 5px;
}
.act-row.week .act-track > i {
  background:
    linear-gradient(
      90deg,
      #8ac0f0,
      #5a7ae0);
}
.act-chest {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 18px;
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.act-chest-ico {
  display: block;
  width: 18px;
  height: 15px;
  background: #a8743a;
  border: 2px solid #5a3a18;
  border-radius: 3px 3px 2px 2px;
  box-shadow: inset 0 4px 0 #c8904a;
}
.act-chest.ready .act-chest-ico {
  background: #f0b030;
  box-shadow: inset 0 4px 0 #ffd870, 0 0 6px #ffc840;
  animation: act-pulse 1.2s infinite;
}
.act-chest.opened .act-chest-ico {
  background: #d8d0c0;
  border-color: #a89e88;
  box-shadow: inset 0 4px 0 #e8e2d6;
  opacity: .7;
}
.act-row.week .act-chest-ico {
  width: 15px;
  height: 12px;
}
@keyframes act-pulse {
  50% {
    box-shadow: 0 0 0 3px #f0a03055;
  }
}
.act-help {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.act-claim-all {
  flex-shrink: 0;
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-weight: 700;
  font-size: 13px;
}
.act-claim-all.ready {
  background: #f0a030 !important;
  color: #fff !important;
  border-color: #a06010 !important;
}
.act-help-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.6;
}
.act-help-list b {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 6px;
}
.act-pts {
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  color: #c06a10;
  font-weight: 700;
}
.sign-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.sign-head h1 {
  margin: 0 !important;
}
.sign-head small {
  font-size: 11px;
}
.sign-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}
.sign-card {
  display: grid;
  grid-template-rows: auto 34px 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  background: #fffdf3;
  border: 2px solid #d8c8a0;
  text-align: center;
  min-height: 0;
}
.sign-card.star {
  border-color: #e0a820;
  background:
    linear-gradient(
      180deg,
      #fff3c4,
      #fffdf3 60%);
  box-shadow: inset 0 0 0 1px #fff6d0;
}
.sign-card.got {
  opacity: .55;
}
.sign-card.now {
  border-color: #f08a2a;
  box-shadow: 0 0 0 2px #f8c890;
}
.sign-day {
  font-size: 13px;
  color: #4a3a20;
}
.sign-icons {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.sign-icons img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}
.sign-text {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 1px;
  font-size: 10px;
  line-height: 1.3;
  color: #605040;
}
.sign-foot {
  font-size: 11px;
  color: #a09080;
  height: 22px;
  display: flex;
  align-items: center;
}
.sign-foot.got {
  color: #3a8a50;
  font-weight: 700;
}
.sign-go {
  min-height: 0 !important;
  padding: 0 12px !important;
  font-size: 12px;
}
.sign-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sign-pop .sign-card {
  width: 140px;
}
@media (max-height:470px) {
  .act-top {
    margin-bottom: 2px;
  }
  .act-top h1 {
    font-size: 15px !important;
  }
  .act-top small {
    display: none;
  }
  .act-bars {
    padding: 3px 8px;
    margin-bottom: 5px;
    gap: 6px;
  }
  .act-row {
    height: 18px;
    grid-template-columns: 5.8em minmax(0, 1fr);
  }
  .act-label {
    font-size: 11px;
  }
  .sign-cards {
    gap: 5px;
    margin-top: 6px;
  }
  .sign-card {
    padding: 5px 3px 4px;
    gap: 2px;
    grid-template-rows: auto 28px 1fr auto;
  }
  .sign-icons img {
    width: 22px;
    height: 22px;
  }
  .sign-text {
    font-size: 9px;
  }
  .sign-head small {
    font-size: 10px;
  }
}
body[data-screen=tasks] .tasks-panel.act-page {
  overflow: hidden;
}
.act-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
body[data-screen=tasks] .act-scroll .task-list {
  overflow: visible;
  min-height: auto;
}
.act-bars {
  padding: 8px 12px;
}
.act-row {
  height: 44px;
  grid-template-columns: 7em minmax(0, 1fr);
}
.act-row.week {
  height: 38px;
}
.act-track {
  margin: 0 20px 10px 8px;
}
.act-chest {
  width: auto;
  height: auto;
  transform: translate(-50%, -62%);
}
.act-chest-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.act-chest img {
  width: 30px;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 1px 0 #0003);
}
.act-row.week .act-chest img {
  width: 24px;
}
.act-chest small {
  font-size: 9px;
  line-height: 10px;
  color: #806a40;
  margin-top: -1px;
}
.act-chest.ready img {
  animation: act-bob 1s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #ffd040);
}
.act-chest.opened img {
  opacity: .8;
}
.act-chest:not(.ready):not(.opened) img {
  filter: grayscale(.35) brightness(.95);
}
@keyframes act-bob {
  50% {
    transform: translateY(-2px);
  }
}
@media (max-height:470px) {
  .act-row {
    height: 38px;
  }
  .act-row.week {
    height: 34px;
  }
  .act-chest img {
    width: 26px;
  }
  .act-row.week .act-chest img {
    width: 21px;
  }
  .act-top small {
    display: inline;
  }
}
.act-scroll {
  padding-bottom: 10px;
}
.act-chest-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 30px;
}
.act-chest img {
  width: auto !important;
  height: 30px;
  animation: none;
}
.act-chest:not(.ready):not(.opened) img {
  height: 22px;
  filter: none;
}
.act-chest.opened img {
  opacity: 1;
}
.act-chest.ready img {
  filter: drop-shadow(0 0 4px #ffd040);
}
.act-chest.ready .act-chest-pic {
  animation: act-bob 1s ease-in-out infinite;
}
.act-row.week .act-chest-pic {
  height: 24px;
}
.act-row.week .act-chest img {
  height: 24px;
}
.act-row.week .act-chest:not(.ready):not(.opened) img {
  height: 18px;
}
@media (max-height:470px) {
  .act-chest-pic {
    height: 26px;
  }
  .act-chest img {
    height: 26px;
  }
  .act-chest:not(.ready):not(.opened) img {
    height: 19px;
  }
  .act-row.week .act-chest-pic,
  .act-row.week .act-chest img {
    height: 21px;
  }
  .act-row.week .act-chest:not(.ready):not(.opened) img {
    height: 16px;
  }
}
.start-modes.lic-row {
  grid-template-columns: minmax(0, 380px) minmax(0, 300px);
  justify-content: center;
  align-items: stretch;
  grid-gap: 18px;
}
.lic-slot {
  position: relative;
  min-height: 168px;
  min-width: 0;
}
.lic {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f8f0d8;
  color: #3a2a18;
  border: 4px solid #283048;
  box-shadow: inset 0 0 0 2px #e0cfa0, 4px 5px 0 #0a1430;
  overflow: hidden;
  text-shadow: none;
}
.lic-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  background: #c84838;
  color: #fff8e0;
  border-bottom: 3px solid #283048;
}
.lic-head > b {
  font-size: 16px;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 #7a2018 !important;
}
.lic-head > small {
  margin-left: auto;
  font: 700 11px SurvivorPixel, monospace;
  letter-spacing: 2px;
  color: #f8d870;
}
button.lic-manage {
  padding: 1px 8px !important;
  min-height: 0 !important;
  font-size: 11px;
  background: #fff8e0 !important;
  color: #7a2018 !important;
  border: 2px solid #7a2018 !important;
  box-shadow: none !important;
}
.lic-ball {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid #283048;
  border-radius: 50%;
  background:
    linear-gradient(
      #f8f0d8 0,
      #f8f0d8 44%,
      #283048 44%,
      #283048 56%,
      #f8f0d8 56%);
}
.lic-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 12px;
  align-items: center;
}
.lic-photo {
  width: 88px;
  height: 88px;
  background: #b8d8f0;
  border: 3px solid #283048;
  box-shadow: inset 0 -18px 0 #98c0a0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.lic-photo img.slot-art {
  width: 80px;
  height: 80px;
  margin: 0;
  image-rendering: pixelated;
  filter: none;
}
.lic-info {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-right: 86px;
}
.lic-name {
  font-size: 22px;
  font-weight: 700;
  color: #283048;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lic-line {
  font-size: 12px;
  color: #605040;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.45;
}
.lic-line b {
  color: #283048;
}
.lic-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 2px dashed #c8b888;
  font-size: 12px;
  color: #605040;
  background: #f0e6c8;
}
.lic-foot b {
  color: #283048;
}
.lic-stamp {
  position: absolute;
  right: 12px;
  top: 42px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px double #c83030;
  color: #c83030;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  opacity: .88;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  background: #f8f0d8cc;
  pointer-events: none;
}
.lic-stamp b {
  font-size: 15px;
  letter-spacing: 1px;
}
.lic-stamp small {
  font-size: 9px;
  color: inherit;
  margin-top: 2px;
}
.lic-stamp.off {
  border-color: #686868;
  color: #686868;
}
.lic.gray {
  background: #b9b9b9 !important;
  border-color: #5a5a5a !important;
}
.lic.gray > :not(.lic-foot),
.lic.gray > .lic-foot > :not(.lic-foot-lost) {
  filter: grayscale(1) brightness(.8);
}
.lic.gray > .lic-foot {
  background: #bfbfbf;
  border-top-color: #8c8c8c;
}
.lic-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 3px dashed #f8f0d888;
  background: #0c183099;
  color: #e8e0c8;
  text-align: center;
  padding: 14px;
}
.lic-empty > i {
  width: 56px;
  height: 40px;
  border: 3px dashed #f8f0d870;
  display: block;
  position: relative;
}
.lic-empty > i:after {
  content: "?";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 20px SurvivorPixel, monospace;
  color: #f8f0d870;
}
.lic-empty b {
  font-size: 16px;
  color: #fff8e0;
}
.lic-empty small {
  color: #c8d0e0;
  font-size: 12px;
}
.lic-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 10px;
  border-top: 3px solid #283048;
  font-size: 12px;
  min-height: 36px;
}
.lic-mode.on {
  background: #dcefd4;
  color: #24502a;
}
.lic-mode.off {
  background: #fbe2b8;
  color: #7a4410;
}
.lic-mode.sync {
  background: #d8e4f6;
  color: #20406a;
}
.lm-t {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.lm-t b {
  font-size: 14px;
  letter-spacing: 1px;
}
.lm-t small {
  font-size: 11px;
  color: inherit;
  opacity: .85;
}
.lic-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: #30a050;
  box-shadow: 0 0 0 2px #fff8;
}
.lic-dot.off {
  background: #e09020;
}
.lic-dot.sync {
  background: #3a70c0;
  animation: lic-blink .8s steps(2) infinite;
}
@keyframes lic-blink {
  50% {
    opacity: .3;
  }
}
button.lic-switch {
  margin-left: auto;
  flex: none;
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 13px;
  font-weight: 700;
  background: #3a9a50 !important;
  color: #fff8e0 !important;
  border: 2px solid #1a5028 !important;
  box-shadow: inset 0 -2px 0 #1a6a30, 2px 2px 0 #28304880 !important;
  text-shadow: none !important;
}
button.lic-switch.lic-foot-lost {
  order: 2;
  background: #fff8e8 !important;
  color: #8a3a28 !important;
  border-color: #b06048 !important;
  box-shadow: 1px 2px 0 #28304860 !important;
  font-weight: 400;
}
.lic-empty > button.lic-foot-act {
  margin: 4px 0 0 auto;
}
.lic-manage-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  width: min(560px, 100%);
  margin: 0 auto;
}
.lic-manage-page .lic-slot {
  min-height: 0;
}
.lic-foot.lic-foot-manage {
  flex-wrap: wrap;
  row-gap: 2px;
}
.lic-foot-manage > small {
  flex-basis: 100%;
  color: #9a3a20;
}
.lic-manage-acts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.lic-manage-acts button {
  min-width: 110px;
}
.rk-match-back {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #18203899;
}
.remote-page {
  position: relative;
}
.rk-match {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  width: min(620px, 100%);
  height: 100%;
  height: min(330px, 100%);
  padding: 10px 14px 12px;
  background: #e8d6a8 url(/_expedition/assets/ui/lounge-arena.jpg) center 70%/cover no-repeat;
  border: 4px solid #303850;
  box-shadow: 0 0 0 3px #f8f0d8, 0 8px 0 #10182880;
  overflow: hidden;
}
.rk-match-title {
  align-self: center;
  padding: 2px 22px;
  font-size: 20px;
  letter-spacing: 4px;
  color: #fff;
  background: #d03a32;
  border: 3px solid #303850;
  box-shadow: 0 3px 0 #30385080;
  text-shadow: 0 2px 0 #7a1c18;
}
.rk-match-field {
  flex: 1 1 auto;
  align-items: center;
}
.rk-match-seat {
  min-height: 110px;
}
.rk-match-seat:not(.you) {
  border-color: #4a6ab8;
  background: #eef2ffee;
}
.rk-match-seat .rk-match-rec {
  color: #fff;
  background: #4a6ab8;
}
.rk-match-seat.you .rk-match-rec {
  background: #d06050;
}
.rk-match-foot {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 3px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #303850;
  background: #fffbe8ee;
  border: 2px solid #303850aa;
  box-shadow: 0 2px 0 #30385055;
}
.rk-match.enter {
  animation: rkMatchIn .35s ease-out;
}
.rk-match.enter .rk-match-seat.you {
  animation: rkSeatL .45s ease-out;
}
.rk-match.enter .rk-match-seat:not(.you) {
  animation: rkSeatR .45s ease-out;
}
.rk-match.enter .lounge-vs {
  animation: rkVs .5s .2s ease-out both;
}
@keyframes rkMatchIn {
  from {
    transform: scale(.85);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rkSeatL {
  from {
    transform: translateX(-60px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rkSeatR {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rkVs {
  from {
    transform: scale(2.2);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.rk-match-team {
  align-self: stretch;
  margin-top: 6px;
  gap: 3px;
  pointer-events: none;
}
.rk-match-team .pf-pic {
  height: 36px;
  font-weight: 700;
  color: #8890a4;
}
.rk-match-team .pf-mon small {
  display: none;
}
.rk-match-seat:not(.you) .rk-match-team .pf-mon.lead .pf-pic {
  background: #c8d4f4;
  box-shadow: inset 2px 0 #4a6ab8;
}
.rk-match-team.loading .pf-pic {
  animation: rkTeamWait 1s ease-in-out infinite alternate;
}
.rk-match-count {
  display: inline-block;
  min-width: 1.2em;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  color: #d03a32;
}
.rk-match-go {
  font-size: 20px;
  letter-spacing: 3px;
  color: #d03a32;
}
.rk-match-foot.pop > b {
  animation: rkCount .35s ease-out;
}
@keyframes rkCount {
  from {
    transform: scale(1.9);
    opacity: .3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rkTeamWait {
  from {
    opacity: .5;
  }
  to {
    opacity: 1;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .rk-match {
    height: 100%;
    height: min(300px, 100%);
  }
  .rk-match-team .pf-pic {
    height: 28px;
  }
  .rk-match-seat {
    min-height: 86px;
  }
  .rk-match-title {
    font-size: 17px;
  }
}
button.lic-switch.wait {
  background: #d8d0c0 !important;
  color: #706858 !important;
  border-color: #a09888 !important;
  box-shadow: none !important;
}
button.lic-switch.to-off {
  background: #fff8e8 !important;
  color: #24502a !important;
  border-color: #4a8a50 !important;
  box-shadow: 1px 2px 0 #28304860 !important;
  font-weight: 400;
}
button.lic-switch.ready {
  animation: lic-pulse 1s ease-in-out infinite;
}
@keyframes lic-pulse {
  50% {
    box-shadow: inset 0 -2px 0 #1a6a30, 0 0 0 4px #3a9a5055;
  }
}
.lic-btns {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-width: 0;
}
.lic-btns > .lic-act {
  justify-self: center;
  margin-top: -4px;
}
button.lic-go {
  min-height: 0;
  padding: 8px 14px !important;
  text-align: center;
}
.lic-go-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lic-go-in > b {
  font-size: 26px;
  letter-spacing: 4px;
  line-height: 1.2;
}
.lic-go-in > small {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
  line-height: 1.35;
  color: inherit;
  opacity: .85;
  font-weight: 400;
}
button.lic-sec {
  --ac:#c84838;
  position: relative;
  padding: 7px 12px 7px 14px !important;
  text-align: left;
  background: linear-gradient(#fffaf0, #f3e8cc) !important;
  color: #283048 !important;
  border: 3px solid #283048 !important;
  border-radius: 0 !important;
  box-shadow:
    inset 5px 0 0 var(--ac),
    inset 0 -3px 0 #e0cfa0,
    3px 4px 0 #0a1430 !important;
  text-shadow: none !important;
}
button.lic-sec:hover:enabled {
  background: linear-gradient(#fffdf6, #f8eed6) !important;
}
button.lic-sec:active:enabled {
  transform: translate(2px, 3px);
  box-shadow:
    inset 5px 0 0 var(--ac),
    inset 0 -3px 0 #e0cfa0,
    1px 1px 0 #0a1430 !important;
}
button.lic-sec.take {
  --ac:#3a9a50;
}
button.lic-sec.login {
  --ac:#2860b0;
}
.lic-sec-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.ls-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.ls-txt > b {
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.2;
  color: #283048;
}
.ls-txt > small {
  font-size: 11px;
  line-height: 1.3;
  color: #806a50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-go {
  font: 700 18px SurvivorPixel, monospace;
  color: var(--ac);
  line-height: 1;
  font-style: normal;
}
.ls-ico {
  position: relative;
  width: 34px;
  height: 26px;
  flex: none;
  display: block;
}
.ls-card {
  position: absolute;
  left: 0;
  top: 3px;
  width: 28px;
  height: 20px;
  background: #f8f0d8;
  border: 2px solid #283048;
  box-shadow: 1px 2px 0 #28304860;
}
.ls-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: #c84838;
}
.ls-card:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #98b8d8;
  box-shadow: 9px 0 0 -1px #c8b888, 9px 3px 0 -1px #c8b888;
}
.ls-arr {
  position: absolute;
  right: -2px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  background: var(--ac);
  border: 2px solid #283048;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-arr:after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff8e8;
  clip-path: polygon(50% 0, 100% 55%, 68% 55%, 68% 100%, 32% 100%, 32% 55%, 0 55%);
}
.take .ls-arr:after {
  transform: rotate(180deg);
}
.login .ls-arr:after {
  transform: rotate(90deg);
}
button.start-more-btn.start-guest {
  background: #e8e0f0;
  border-color: #7a6a9a;
  color: #4a3a6a;
}
.dialog .warn-text {
  color: #b03020;
  font-weight: 700;
}
.lic-slot.drop .lic {
  animation: lic-drop .7s cubic-bezier(.3, 1.4, .5, 1) both;
}
.lic-slot.fetch .lic {
  animation: lic-color .6s .1s ease-out both;
}
.lic-slot.fetch.drop .lic {
  animation: lic-drop .7s cubic-bezier(.3, 1.4, .5, 1) both;
}
.lic-slot.fetch .lic-stamp {
  animation: lic-stamp .35s .7s cubic-bezier(.2, 1.6, .5, 1) both;
}
.lic-slot.giveback .lic {
  animation: lic-gray .8s ease-in both;
}
@keyframes lic-drop {
  from {
    transform: translateY(-70vh) rotate(-10deg);
  }
  to {
    transform: none;
  }
}
@keyframes lic-color {
  from {
    filter: grayscale(1) brightness(.8);
  }
  to {
    filter: none;
  }
}
@keyframes lic-gray {
  from {
    filter: none;
  }
  to {
    filter: grayscale(1) brightness(.8);
  }
}
@keyframes lic-stamp {
  from {
    transform: rotate(-14deg) scale(2.6);
    opacity: 0;
  }
  to {
    transform: rotate(-14deg) scale(1);
    opacity: .88;
  }
}
@media (prefers-reduced-motion:reduce) {
  .lic-slot .lic,
  .lic-slot .lic-stamp,
  button.lic-switch.ready,
  .lic-dot.sync {
    animation: none !important;
  }
}
@media (max-height:470px) {
  .lic-slot {
    min-height: 136px;
  }
  .lic-body {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 5px 10px;
    gap: 10px;
  }
  .lic-photo {
    width: 62px;
    height: 62px;
  }
  .lic-photo img.slot-art {
    width: 56px;
    height: 56px;
  }
  .lic-name {
    font-size: 17px;
  }
  .lic-line {
    font-size: 11px;
    line-height: 1.35;
  }
  .lic-head {
    padding: 2px 6px 2px 8px;
  }
  .lic-head > b {
    font-size: 13px;
  }
  .lic-stamp {
    width: 64px;
    height: 64px;
    top: 30px;
  }
  .lic-stamp b {
    font-size: 12px;
  }
  .lic-info {
    padding-right: 60px;
  }
  .lic-mode {
    min-height: 30px;
    padding: 3px 8px;
  }
  .lm-t b {
    font-size: 12px;
  }
  .lic-go-in > b {
    font-size: 22px;
  }
  .lic-go-in > small {
    font-size: 11px;
  }
  .ls-txt > b {
    font-size: 14px;
  }
  button.lic-sec {
    padding: 4px 10px 4px 12px !important;
  }
}
@media (orientation:portrait), (max-width:560px) {
  .start-modes.lic-row {
    grid-template-columns: minmax(0, 380px);
  }
  button.lic-go {
    min-height: 76px;
  }
}
.lic-btns button.lic-go.need-lic {
  filter: saturate(.45) brightness(.92);
}
button.lic-sec.flash {
  animation: lic-flash .4s ease-in-out 3;
}
@keyframes lic-flash {
  50% {
    transform: translateY(-3px);
    box-shadow:
      inset 5px 0 0 var(--ac),
      0 0 0 4px #3a9a5088,
      3px 4px 0 #0a1430;
  }
}
.lic-wait {
  height: 8px;
  background: #e8dcc0;
  border: 2px solid #283048;
  margin: 10px 0;
  overflow: hidden;
}
.lic-wait > i {
  display: block;
  height: 100%;
  width: 40%;
  background: #94c6a5;
  animation: lic-wb 1.2s linear infinite;
}
@keyframes lic-wb {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
button.start-more-btn.start-home-logout.off,
button.lic-manage.off {
  opacity: .55;
}
.sign-panel .week-bars {
  margin-top: 12px;
}
.sign-panel .week-bars .act-row.week {
  height: 44px;
}
.sign-panel .week-bars .act-row.week .act-track {
  height: 8px;
}
.sign-panel .week-bars .act-row.week .act-chest-pic {
  height: 30px;
}
.sign-panel .week-bars .act-row.week .act-chest img {
  height: 30px;
}
.sign-panel .week-bars .act-row.week .act-chest:not(.ready):not(.opened) img {
  height: 22px;
}
@media (max-height:470px) {
  .sign-panel .week-bars {
    margin-top: 6px;
    padding: 5px 12px;
  }
  .sign-panel .week-bars .act-row.week {
    height: 38px;
  }
  .sign-panel .week-bars .act-row.week .act-chest-pic,
  .sign-panel .week-bars .act-row.week .act-chest img {
    height: 26px;
  }
  .sign-panel .week-bars .act-row.week .act-chest:not(.ready):not(.opened) img {
    height: 19px;
  }
}
body[data-screen=tasks] .act-page .act-top {
  flex-shrink: 0;
}
body[data-screen=tasks] .act-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
}
body[data-screen=tasks] .act-layout .act-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 6px;
}
.act-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
  gap: 8px;
  background: #fffaf0;
  border: 2px solid #e8d8b0;
}
.act-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
}
.act-sw {
  min-height: 0 !important;
  padding: 4px 2px !important;
  background: #f3ead4 !important;
  border: 2px solid #d8c8a0 !important;
  color: #7a6a48 !important;
  box-shadow: none !important;
}
.act-sw.on {
  background: #fff !important;
  border-color: #f08a2a !important;
  color: #4a3a20 !important;
}
.act-side.week .act-sw.on {
  border-color: #5a7ae0 !important;
}
.act-sw-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
}
.act-sw-in > span {
  position: relative;
  font-size: 11px;
  white-space: nowrap;
}
.act-sw-in b {
  font-size: 15px;
  color: #c06a10;
}
.act-side.week .act-sw.on .act-sw-in b {
  color: #3a5ac0;
}
.act-sw-in b small {
  font-size: 10px;
  font-weight: 400;
  color: #a08a60;
}
.act-dot {
  position: absolute;
  top: 0;
  right: -8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e04030;
}
.act-vbar {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 16px 0 8px;
}
.act-vtrack {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: #efe4c8;
  border: 1px solid #c8b080;
}
.act-vtrack > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(
      0deg,
      #f0a030,
      #f8d060);
}
.act-side.week .act-vtrack > i {
  background:
    linear-gradient(
      0deg,
      #5a7ae0,
      #8ac0f0);
}
.act-vchest {
  position: absolute;
  left: 52px;
  transform: translateY(50%);
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.act-vchest::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  border-top: 1px dashed #c8b080;
}
.act-vchest-in {
  display: flex;
  align-items: center;
  gap: 4px;
}
.act-vchest img {
  width: auto;
  height: 26px;
  image-rendering: auto;
  filter: drop-shadow(0 1px 0 #0003);
}
.act-vchest:not(.ready):not(.opened) img {
  height: 20px;
}
.act-vchest small {
  font-size: 11px;
  font-weight: 700;
  color: #806a40;
}
.act-vchest.ready .act-vchest-in {
  animation: act-bob 1s ease-in-out infinite;
}
.act-vchest.ready img {
  filter: drop-shadow(0 0 4px #ffd040);
}
.act-side-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.act-side-foot .act-claim-all {
  flex: 1;
  padding: 4px 6px !important;
}
.sign-back .dialog {
  --modal-w: 860px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .sign-back .dialog {
    --modal-w: min(860px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.sign-pop {
  align-items: stretch;
  gap: 6px;
}
.sign-pop .sign-card {
  width: auto;
}
.sign-pop .sign-cards {
  margin-top: 0;
  gap: 6px;
}
.sign-foot.today {
  color: #e07010;
  font-weight: 700;
}
@media (max-height:470px) {
  body[data-screen=tasks] .act-layout {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 8px;
  }
  .act-side {
    padding: 6px;
    gap: 5px;
  }
  .act-vbar {
    margin: 12px 0 6px;
  }
  .act-vchest img {
    height: 22px;
  }
  .act-vchest:not(.ready):not(.opened) img {
    height: 17px;
  }
  .sign-pop .sign-card {
    padding: 5px 3px 4px;
    gap: 2px;
  }
  .sign-pop .sign-text {
    font-size: 9px;
  }
  .sign-back .dialog .sub {
    display: none;
  }
}
body[data-screen=tasks] .act-page .act-top {
  align-items: center;
}
.act-top-acts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.act-top-acts .act-claim-all {
  padding: 4px 12px !important;
}
@media (max-height:470px) {
  .act-sw {
    padding: 3px 2px !important;
  }
  .act-sw-in > span {
    font-size: 10px;
  }
  .act-sw-in b {
    font-size: 13px;
  }
  .act-vbar {
    margin: 12px 0 26px;
  }
}
.act-sw-in b {
  white-space: nowrap;
}
.act-sw-in b small {
  display: inline !important;
  margin-left: 1px;
}
.act-vbar {
  margin: 14px 0 6px;
}
@media (max-height:470px) {
  .act-vbar {
    margin: 12px 0 12px;
  }
}
body[data-screen=tasks] .act-layout .task-list {
  margin-top: 0 !important;
}
.remote-mode-tabs {
  display: flex;
  gap: 6px;
  flex: none;
}
.remote-mode-tabs .task-tab {
  position: relative;
  padding: 5px 18px !important;
  min-height: 0 !important;
  font-size: 13px;
  background: #ffffff80;
  color: #404858;
  border: 2px solid #c0c0b0;
  box-shadow: none;
}
.remote-mode-tabs .task-tab.on {
  background: #3870b8;
  color: #fff;
  border-color: #285890;
}
.remote-mode-tabs .ranked-tab:not(.on) {
  border-color: #c89820;
  color: #7a5200;
  background: #fff4d0;
}
.remote-mode-tabs .task-tab .bl-dot {
  position: absolute;
  top: -4px;
  right: -4px;
}
.remote-mine {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  padding: 4px 6px;
  background: #ffffff70;
  border: 2px solid #d8d8c8;
}
.remote-mine-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.remote-mine .remote-me-text {
  flex: 1 1 auto;
  min-width: 0;
}
.remote-mine .remote-me-actions {
  display: flex;
  gap: 4px;
  flex: none;
}
.remote-mine .remote-me-text small {
  min-width: 0;
}
.remote-mine .remote-me-text b {
  flex: none;
  white-space: nowrap;
}
.remote-mine .remote-team {
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.remote-mine .remote-acts,
.remote-mine .remote-status {
  margin: 0;
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-mode-tabs .task-tab {
    padding: 3px 14px !important;
    font-size: 12px;
  }
  .remote-mine {
    padding: 2px 4px;
    gap: 2px;
  }
  .remote-mine .remote-avatar {
    width: 28px;
    height: 28px;
  }
  .remote-mine .remote-me-text b {
    font-size: 13px;
  }
  .remote-mine .remote-me-text small {
    font-size: 11px;
  }
  .remote-mine .remote-me-actions .small-btn {
    padding: 1px 8px !important;
    font-size: 12px;
  }
}
.menu-card[data-destination=lan] {
  position: relative;
  overflow: visible;
}
.mega-flair.rank-flair {
  background:
    linear-gradient(
      90deg,
      #7a3cff,
      #c89820,
      #ffe27a,
      #c89820,
      #7a3cff);
  background-size: 200% 100%;
  letter-spacing: 0;
}
.remote-panel-head h2 .remote-mode-tabs {
  gap: 4px;
}
.remote-panel-head h2 .remote-mode-tabs .task-tab {
  padding: 3px 12px !important;
  font-size: 14px;
  font-weight: 700;
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-panel-head h2 .remote-mode-tabs .task-tab {
    padding: 2px 9px !important;
    font-size: 12px;
  }
}
.remote-side .remote-bigs {
  flex: 1 1 0;
  min-height: 0;
  max-height: 300px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}
.remote-mine .remote-team-show {
  gap: 4px;
}
.remote-mine .remote-team-show .pf-pic {
  height: 40px;
}
.remote-mine .remote-team-show small {
  font-size: 10px;
  line-height: 1.2;
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-mine .remote-team-show {
    gap: 2px;
  }
  .remote-mine .remote-team-show .pf-pic {
    height: 28px;
  }
  .remote-mine .remote-team-show .pf-mon small:not(.pf-mon-name) {
    display: none;
  }
  .remote-mine .remote-team-show .pf-mon-name {
    font-size: 9px;
  }
}
.rk-board-panel .rk-board-frame {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
}
.rk-board-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 10px 8px;
  border: 3px solid #3a3480;
  border-radius: 10px;
  background: linear-gradient(#f6f4ff, #ebe7fb);
  box-shadow:
    inset 0 0 0 3px #f6f4ff,
    inset 0 0 0 5px #a99be6,
    0 3px 0 #30385055;
  overflow: hidden;
}
.rk-board-frame:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      #e04848 0,
      #e04848 16.6%,
      #3d74d8 0,
      #3d74d8 33.3%,
      #f0c838 0,
      #f0c838 50%,
      #2c2c34 0,
      #2c2c34 66.6%,
      #2fa0d8 0,
      #2fa0d8 83.3%,
      #8a44d8 0);
}
.rk-board-frame .board-title {
  flex: none;
  justify-content: space-between;
  margin: 2px 2px 0;
  font-size: 16px;
  color: #3a2a8a;
}
.rk-board-frame .board-title small {
  padding: 1px 9px;
  border-radius: 9px;
  background: #e4ddff;
  border: 1px solid #a99be6;
  color: #4a3a9a;
  font-size: 11px;
}
.rk-board-frame .board-note {
  flex: none;
  margin: 2px 2px 4px;
  color: #5a5480;
}
.rk-board-frame .board-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfc6f2;
  border-radius: 6px;
}
.rk-board-frame .board-row {
  padding: 4px 8px;
  border-bottom: 1px solid #ece8fb;
  cursor: pointer;
}
.rk-board-frame .board-row:hover {
  background: #f1edff;
}
.rk-board-frame .board-row:focus-visible {
  outline: 3px solid #6a5ad0;
  outline-offset: -3px;
}
.rk-board-frame .board-nm {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-board-frame .board-run {
  color: #7a7498;
  font-size: 11px;
}
.rk-board-frame .rk-best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #3a2a8a;
}
.rk-board-frame .rk-best small {
  color: #7a7498;
}
.rk-board-frame .board-me {
  flex: none;
  margin: 6px 2px 0;
  color: #3a2a8a;
}
.rk-board-frame .board-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5a5480;
}
@media (max-height:470px) and (orientation:landscape) {
  .rk-board-frame {
    padding: 9px 6px 5px;
  }
  .rk-board-frame .board-row {
    padding: 2px 6px;
  }
  .rk-board-frame .board-title {
    font-size: 14px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-side .remote-bigs {
    flex: none;
    max-height: none;
    grid-template-rows: repeat(2, 42px);
    grid-auto-rows: 42px;
  }
  .remote-side .remote-mine .remote-team-show {
    gap: 3px;
  }
  .remote-side .remote-mine .remote-team-show .pf-pic {
    height: 40px;
  }
  .remote-side .remote-mine .remote-team-show .pf-mon small:not(.pf-mon-name) {
    display: block;
    font-size: 9px;
  }
  .remote-side .remote-mine .remote-team-show .pf-mon-name {
    font-size: 10px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .remote-side .remote-bigs .remote-big-text small {
    display: none;
  }
}
.rk-board-frame .rk-best {
  display: grid;
  grid-template-columns: 8.6em 4.6em;
  align-items: center;
  gap: 6px;
}
.rk-board-frame .rk-best-tier {
  justify-self: start;
  display: inline-flex;
}
.rk-board-frame .rk-best-pts {
  justify-self: end;
  white-space: nowrap;
}
.bot-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 4px;
  background: #6a7088;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
  white-space: nowrap;
}
.rk-bot-vs {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
}
.hi-rate {
  font-weight: 400;
  color: #687080;
  font-size: 11px;
}
.exp-battle-result > .panel.rs2-panel {
  --modal-w: 1080px;
  --modal-h:calc(var(--app-vh,100vh) - 12px);
  padding: 8px 12px !important;
  gap: 6px;
  text-align: left;
  overflow: hidden !important;
}
@supports (width: min(1px, 2px)) {
  .exp-battle-result > .panel.rs2-panel {
    --modal-w: min(1080px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 16px));
  }
}
.rs2-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rs2-words {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rs2-panel .rs2-words h1 {
  margin: 0 !important;
  font-size: 22px !important;
  white-space: nowrap;
}
.rs2-panel .rs2-words p {
  margin: 0 !important;
  font-size: 13px;
}
.rs2-acts {
  display: flex;
  gap: 6px;
  flex: none;
  align-items: center;
}
.rs2-acts button {
  margin: 0 !important;
  white-space: nowrap;
}
.rs2-acts .rs-share {
  margin: 0;
}
.remote-summary.rs2 {
  gap: 5px;
  min-height: 0;
}
.rs2 .rs-meta {
  margin: 0;
  font-size: 12px;
  color: #687080;
  text-align: left !important;
}
.rs2-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}
.rs2-side {
  background: #f0f0e0;
  border: 2px solid #b0b0b8;
  padding: 4px 6px;
  min-width: 0;
}
.rs2-side.me {
  border-color: #5a78b0;
}
.rs2-side.win {
  background: #fff4d8;
}
.rs2-sh {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rs2-sh > b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs2-sh > b small {
  font-weight: 400;
}
.rs2-tot {
  margin-left: auto;
  color: #586070;
  white-space: nowrap;
}
.rs2-cols,
.rs2-row {
  display: grid;
  grid-template-columns: 16px 30px minmax(52px, 1fr) minmax(24px, .9fr) 64px 34px 22px;
  align-items: center;
  gap: 4px;
}
.rs2-cols small {
  font-size: 10px;
  color: #8890a0;
  white-space: nowrap;
}
.rs2-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rs2-row {
  height: var(--rs2-row,32px);
  font-size: 12px;
  border-top: 1px solid #e0dcc8;
}
.rs2-row.bench {
  opacity: .55;
}
.rs2-row.down .rs2-pic {
  filter: grayscale(1);
  opacity: .6;
}
.rs2-ord {
  text-align: center;
  color: #5a78b0;
  font-size: 12px;
}
.rs2-pic {
  display: block;
  width: 30px;
  height: 30px;
}
.rs2-nm {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.rs2-nm b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs2-nm small {
  font-size: 10px;
  color: #687080;
}
.rs2-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.rs2-item small {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4a5060;
}
.rs2-item img,
.rs2-item .stone-img {
  flex: none;
}
.rs2-hp {
  position: relative;
  height: 14px;
  background: #d8d8cc;
  border: 1px solid #a8a898;
}
.rs2-hp i {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  background: #58b868;
}
.rs2-hp.low i {
  background: #e0a030;
}
.rs2-hp small {
  position: relative;
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  color: #283040;
}
.rs2-dmg {
  text-align: right;
  font-weight: 700;
  color: #a04838;
}
.rs2-ko {
  text-align: right;
  color: #586070;
  font-size: 11px;
}
.rs2-extra {
  font-size: 12px;
  font-weight: 700;
  color: #404858;
}
.rs2-chart {
  min-height: 0;
}
.rs2-chart-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rs2-chart-head small {
  font-size: 10px;
  color: #687080;
}
.rs2-key::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 3px;
  vertical-align: middle;
}
.rs2-key.a::before {
  background: #4a68b0;
}
.rs2-key.b::before {
  background: #c85848;
}
.rs2-time {
  margin-left: auto;
}
.rs2-svg {
  display: block;
  width: 100%;
  height: var(--rs2-chart,46px);
  background: #fafaf0;
  border: 1px solid #d8d8c8;
}
.rs2-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.rs2-line.a {
  stroke: #4a68b0;
}
.rs2-line.b {
  stroke: #c85848;
}
.rs2-grid {
  stroke: #e0e0d0;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.rs2-x {
  font-size: 11px;
  font-weight: 700;
}
.rs2-x.a {
  fill: #4a68b0;
}
.rs2-x.b {
  fill: #c85848;
}
@media (max-height:430px) {
  .rs2-panel {
    --rs2-row:26px;
    --rs2-chart:34px;
  }
  .rs2-pic {
    width: 24px;
    height: 24px;
  }
  .rs2-cols,
  .rs2-row {
    grid-template-columns: 14px 24px minmax(48px, 1fr) minmax(20px, .8fr) 56px 32px 20px;
  }
  .rs2-panel .rs2-words h1 {
    font-size: 18px !important;
  }
  .rs2-cols {
    display: none;
  }
}
@media (max-width:700px) {
  .rs2-item small {
    display: none;
  }
}
.rs2-dialog .dialog {
  --modal-w: 1080px !important;
  padding: 8px 12px !important;
}
@supports (width: min(1px, 2px)) {
  .rs2-dialog .dialog {
    --modal-w: min(1080px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 16px)) !important;
  }
}
.rs2-dialog .dialog h2 {
  margin: 0 0 4px !important;
  font-size: 18px !important;
}
.rk-bot-res {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rs2-row {
  overflow: hidden;
}
.rs2-pic {
  overflow: hidden;
  height: var(--rs2-row,32px) !important;
  max-height: var(--rs2-row,32px);
}
.rs2-dialog .rs2 {
  --rs2-row:29px;
  --rs2-chart:38px;
}
.rs2-dialog .dialog {
  gap: 4px !important;
}
.mon-face {
  image-rendering: pixelated;
  object-fit: contain;
}
.rs2-row .rs2-pic.mon-face {
  width: 26px;
  height: 26px !important;
  max-height: 26px;
  align-self: center;
  overflow: visible;
}
.rs2-lane {
  position: relative;
  height: 18px;
}
.rs2-in {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px #4a68b0;
}
.rs2-lane.b .rs2-in {
  box-shadow: 0 0 0 1.5px #c85848;
}
.rs2-dialog .rs2 {
  --rs2-row:28px;
  --rs2-chart:30px;
}
.rs2-sh > b {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rs2-sh > b small {
  display: inline;
  white-space: nowrap;
}
@media (max-height:430px) {
  .rs2-panel .rs2,
  .rs2-dialog .rs2 {
    --rs2-row:22px;
    --rs2-chart:20px;
  }
  .rs2-row .rs2-pic.mon-face {
    width: 20px;
    height: 20px !important;
    max-height: 20px;
  }
  .rs2-lane {
    height: 14px;
  }
  .rs2-in {
    width: 14px;
    height: 14px;
    margin-left: -7px;
  }
  .rs2-nm {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .rs2-side {
    padding: 2px 5px;
  }
  .rs2-dialog .dialog h2 {
    font-size: 16px !important;
    margin: 0 !important;
  }
  .rs2-dialog .dialog > p:first-child {
    display: none;
  }
  .rs2 .rs-meta {
    font-size: 11px;
  }
  .rs2-chart-head small {
    font-size: 9px;
  }
}
.dx-move-list span.later {
  opacity: .45;
}
.box-jump {
  cursor: pointer;
  text-decoration: underline dotted 1px;
  text-underline-offset: 3px;
}
.box-jump-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.bj-cell {
  padding: 2px 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  display: flex;
  justify-content: center;
}
.bj-cell > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.bj-cell b {
  font-size: 12px;
}
.bj-cell small {
  font-size: 10px;
  min-height: 10px;
  color: #687080;
}
.bj-cell.used {
  background: #e8f0d8;
}
.bj-cell.full {
  background: #f8e0c8;
}
.bj-cell.on {
  box-shadow: 0 0 0 2px #4a68b0 inset;
}
.bj-cell.locked b::after {
  content: "🔒";
  font-size: 8px;
  margin-left: 1px;
}
.qty-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.qty-row {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 6px 0;
}
.qty-input {
  width: 64px;
  text-align: center;
  font: inherit;
  padding: 4px;
}
.qty-price {
  font-size: 14px;
}
.shop-buy .buy-qty {
  min-width: 28px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.brief-team {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 4px 0;
}
.brief-team > small {
  color: #687080;
  font-size: 11px;
}
.bt-mon {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.bt-face {
  width: 26px;
  height: 26px;
}
.bt-mon small {
  font-size: 9px;
  color: #586070;
}
.rk-match-tier {
  font-weight: 700;
  color: #8a5a20;
  min-height: 1em;
}
.rs2-wait {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px;
}
.hi-btns {
  display: flex;
  gap: 6px;
  align-self: flex-end;
}
.rr-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}
.hi-btns {
  align-items: center;
}
.rk-go-q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  letter-spacing: 0;
  text-align: left;
}
.rk-go-q .start-spin {
  flex: none;
}
.rk-go-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.rk-go-main b {
  font-size: 16px;
  white-space: nowrap;
}
.rk-go-main small {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .85;
}
.rk-go-x {
  flex: none;
  font-size: 14px;
  padding: 2px 12px;
  border: 2px solid currentColor;
  border-radius: 6px;
}
.rk-side-tabs {
  display: inline-flex;
  gap: 4px;
}
.rk-side-tab {
  min-height: 0 !important;
  padding: 3px 12px !important;
  font-size: 14px;
}
.rk-side-tab.on {
  background: #4a68b0;
  color: #fff;
}
.rk-live {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.rk-live-row {
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}
.rk-live-vs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rk-live-vs b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rk-live-vs i {
  font-style: normal;
  font-weight: 700;
  color: #c85848;
  font-size: 12px;
}
.rk-live-meta {
  color: #687080;
  white-space: nowrap;
}
.ranked-badge {
  display: flex !important;
  align-items: center;
  gap: 4px;
}
.ranked-badge b {
  font-weight: 700;
}
.panel.rk-side {
  padding-bottom: 4px !important;
}
.rk-side-body {
  margin-bottom: 0 !important;
}
.share-pick.share-prev {
  width: 1240px;
  width: min(1240px, calc(100vw - 16px));
  max-width: none;
  height: calc(var(--app-vh,100vh) - 16px);
  max-height: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.share-prev-main {
  display: flex;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.share-prev-pic {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #00000018;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.share-prev-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.share-prev-img.busy {
  opacity: .45;
}
.share-prev-pic.full {
  align-items: flex-start;
  cursor: zoom-out;
}
.share-prev-pic.full .share-prev-img {
  max-height: none;
  width: 100%;
}
.share-prev-side {
  flex: none;
  width: 150px;
  width: clamp(150px, 19vw, 210px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.share-prev-side h3 {
  margin: 0;
  font-size: 15px;
}
.share-prev-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.share-prev-themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.share-prev-themes .share-theme {
  padding: 3px !important;
  gap: 2px;
}
.share-prev-themes .share-theme-swatch {
  height: 30px;
  background-size: 40px auto;
}
.share-prev-themes .share-theme b {
  font-size: 12px;
}
.share-prev .share-pick-foot {
  margin-top: 0;
  gap: 6px;
}
.share-prev .share-pick-foot > * {
  flex: 1;
  min-width: 0;
}
.share-prev-label {
  font-size: 12px;
  color: #687080;
  font-weight: 700;
}
.share-qr-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.share-qr-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.share-qr-hint {
  font-size: 11px;
  line-height: 1.35;
  color: #8a7a60;
}
.share-layouts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.share-layout {
  padding: 6px 4px !important;
  min-height: 0 !important;
  font-size: 13px;
  font-weight: 700;
  color: #303848;
  background: #eceadc !important;
  border: 2px solid #c8c8b8 !important;
  border-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.share-layout.on {
  border-color: #c04838 !important;
  background: #f8ecd8 !important;
}
.exp-battle-result > .panel.rs2-panel {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.rs2-dialog .dialog {
  overflow-x: hidden !important;
}
.remote-summary.rs2,
.rs2-teams,
.rs2-side,
.rs2-rows,
.rs2-row {
  min-width: 0;
  max-width: 100%;
}
.rs2-dialog .remote-summary.rs2 > .rs-share {
  display: none;
}
@media (max-width:760px) {
  .rs2-cols,
  .rs2-row {
    grid-template-columns: 14px 24px minmax(40px, 1fr) 22px 48px 34px 18px;
  }
  .rs2-item small {
    display: none;
  }
}
.profile .pf-stats.pf-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
}
.profile .pf-dense .pf-stat {
  padding: 3px 6px !important;
  min-height: 0 !important;
}
.profile .pf-dense .pf-stat small {
  font-size: 10px !important;
  line-height: 1.2;
}
.profile .pf-dense .pf-stat b {
  font-size: 13px !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.profile .pf-dense .pf-stat.wide {
  grid-column: span 2;
}
.profile .set-h {
  margin: 6px 0 3px !important;
}
.pf-h-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-h-row .pf-more {
  margin-left: auto;
}
.pf-more {
  min-height: 0 !important;
  padding: 2px 10px !important;
  font-size: 12px;
}
.pf-faces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pf-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  padding: 2px 0;
  background: #e6ecf2;
  border-radius: 4px;
}
.pf-face.shiny {
  background: #fff0c8;
}
.pf-face-img {
  width: 34px;
  height: 34px;
}
.pf-face small {
  font-size: 9px;
  color: #586070;
  line-height: 1;
}
.pf-more-panel {
  width: 640px;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(var(--app-vh,100vh) - 24px);
  display: flex;
  flex-direction: column;
}
.pf-more-list {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  margin: 6px 0;
}
.profile .road-runs-list .rr-row {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}
.dx-mega {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dx-mega-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  background: #fffbec;
  border: 1px solid #d8ccaa;
}
.dx-mega-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.3;
}
.dx-mega-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.dx-mega-head b {
  font-size: 12px;
  color: #a04830;
}
.dx-mega-head .type-row {
  gap: 2px;
}
.dx-mega-main small {
  font-size: 10.5px;
  color: #687080;
}
.dx-mega-stats {
  color: #8a7a60 !important;
}
.dx-mega-stone {
  display: flex;
  align-items: center;
  gap: 3px;
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-item:not(.expand-row) .shop-buy button {
    height: 28px !important;
    padding: 0 9px !important;
  }
}
.profile .pf-dense .pf-stat {
  min-height: 34px !important;
}
.profile .pf-head {
  margin-bottom: 2px;
}
.profile .pf-figure {
  width: 76px;
  height: 88px;
}
.profile .pf-name {
  font-size: 18px;
}
.profile .pf-id small {
  line-height: 1.3;
}
.profile .pf-team .pf-pic {
  height: 42px !important;
}
.profile .pf-team .pf-mon small {
  font-size: 10px;
}
.profile .road-runs-list .rr-row {
  min-height: 0 !important;
}
@media (max-height:470px) {
  .profile .pf-figure {
    width: 60px;
    height: 70px;
  }
  .profile .pf-team .pf-pic {
    height: 34px !important;
  }
}
.rk-side-body {
  justify-content: flex-start !important;
}
.rk-side-scroll {
  flex: 0 1 auto !important;
}
.rk-side-body .rk-go {
  margin-top: 8px !important;
}
.rk-board-panel .rk-board-frame {
  padding-top: 8px;
}
.rk-board-frame .board-title {
  margin: 0 2px !important;
}
.rk-board-frame .board-note {
  margin: 0 2px 3px !important;
  font-size: 11px;
}
.rk-board-frame .rk-best {
  grid-template-columns: 8.6em minmax(5.4em, auto) !important;
}
.rk-board-frame .rk-best-pts {
  display: inline-flex !important;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 5.4em;
}
.rk-board-frame .rk-best-pts b {
  font-size: 15px;
}
@media (max-height:470px) and (orientation:landscape) {
  .shop-panel .pocket-tabs {
    -webkit-mask-image:
      linear-gradient(
        90deg,
        #000 88%,
        transparent);
    mask-image:
      linear-gradient(
        90deg,
        #000 88%,
        transparent);
    padding-right: 24px;
  }
}
.hi-appeal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted,#9aa3b5);
}
.hi-appeal .rr-tag {
  font-size: 11px;
}
.hi-appeal-btn {
  margin-left: auto;
}
.appeal-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 420px;
  min-width: min(420px, 80vw);
}
.appeal-text {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .25);
  color: inherit;
}
.appeal-err {
  color: #ef5b5b;
  min-height: 1em;
  margin: 0;
}
.rk-appeal {
  margin-left: 8px;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work > .shop-list:not(.expand-list),
  .mart-work > .shop-list.held-list,
  .mart-work > .shop-list.held-list:not(.ball-list),
  .mart-work > .shop-list.held-list.charm-list {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)) !important;
    gap: 3px !important;
    row-gap: 3px !important;
    overflow-y: auto !important;
    align-content: start !important;
    grid-auto-rows: max-content !important;
    grid-template-rows: none !important;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) auto auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 4px !important;
    row-gap: 2px !important;
    height: auto !important;
    min-height: max-content !important;
    overflow: visible !important;
    padding: 3px 6px !important;
    align-items: center;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) > img {
    grid-column: 1 !important;
    grid-row: 1/3 !important;
    width: 22px !important;
    height: 22px !important;
    align-self: center;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text {
    grid-column: 2/4 !important;
    grid-row: 1 !important;
    min-width: 0;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text strong {
    display: block;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text small,
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text .owned {
    display: none !important;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy {
    display: contents !important;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button {
    grid-row: 2 !important;
    height: 20px !important;
    min-height: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 0 7px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:first-of-type {
    grid-column: 3 !important;
    justify-self: end;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:last-of-type {
    grid-column: 4 !important;
    justify-self: end;
  }
  .mart-work.mart-work .shop-list.shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:only-of-type {
    grid-column: 4 !important;
  }
}
.mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:not(.owned-charm) {
  min-width: 0 !important;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:not(:active) {
  box-shadow: 0 4px 0 rgba(48, 56, 80, .5) !important;
}
@media (min-height:471px) {
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy {
    display: grid !important;
    grid-template-columns: auto auto !important;
    grid-auto-flow: row !important;
    justify-content: end !important;
    justify-items: end !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy .price {
    grid-column: 1/-1 !important;
    grid-row: auto !important;
    text-align: right !important;
    font-size: 1em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-buy button:only-of-type {
    grid-column: 1/-1 !important;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mart-work.mart-work .shop-list.shop-list .shop-item.shop-item:not(.expand-row) .shop-text small {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: clip;
  }
}
.rocket-games {
  max-width: 900px;
  margin: 8px auto;
  padding: 14px 16px !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start;
}
.rocket-games > h2 {
  margin: 2px 0 4px;
}
.rocket-games > .muted {
  margin: 0 0 12px;
}
.rocket-game-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rocket-game {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px !important;
  min-height: 140px;
}
.rocket-game-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rocket-game strong {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rocket-game small {
  font-size: 12px;
  color: #b05048;
}
.rocket-game-desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
}
.rocket-game-tag {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #e85040;
  color: #fff;
}
@media (max-width:600px) {
  .rocket-game-list {
    grid-template-columns: 1fr;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .rocket-games {
    padding: 8px 10px !important;
    margin: 4px auto;
  }
  .rocket-games > .eyebrow {
    display: none;
  }
  .rocket-games > h2 {
    font-size: 18px;
    margin: 0;
  }
  .rocket-games > .muted {
    font-size: 12px;
    margin: 0 0 8px;
  }
  .rocket-game {
    min-height: 0;
    padding: 10px 14px !important;
  }
  .rocket-game strong {
    font-size: 17px;
  }
}
.rocket-games {
  display: flex;
  flex-direction: column;
}
.rocket-game-list {
  flex: 1;
}
.rocket-game {
  height: 100%;
}
.rocket-game-inner {
  justify-content: center;
  height: 100%;
}
.pf-stat.clickable {
  cursor: pointer;
}
.pf-stat.clickable:hover {
  filter: brightness(1.05);
}
.pf-stat.clickable b::after {
  content: " ›";
  font-size: .8em;
  opacity: .6;
}
.pf-mega-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  max-height: 320px;
  max-height: min(60vh, 320px);
  overflow: auto;
  padding: 2px;
}
.pf-mega-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f0f0e0;
  border: 2px solid #9098b0;
}
.pf-mega-row > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pf-mega-row b {
  font-size: 13px;
}
.pf-mega-row small {
  font-size: 11px;
  color: #687080;
}
@media (max-height:470px) {
  .mega-event .mge-hero-text p.mge-next {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px 8px;
    margin-top: 1px;
  }
  .mega-event .mge-next-row {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .mega-event .mge-next-row b {
    font-size: 10px;
    padding: 0 4px;
  }
  .mega-event .mge-next-stone {
    width: 20px;
    height: 20px;
    padding: 1px !important;
  }
  .mega-event .mge-next-stone img {
    width: 16px;
    height: 16px;
  }
  .mega-event .mge-next-note {
    flex-basis: auto;
    white-space: nowrap;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}
@media (max-height:470px) {
  .mega-event .mge-meter {
    display: grid;
    grid-template-columns: auto auto;
    grid-auto-rows: auto;
    align-items: center;
    justify-items: start;
    column-gap: 6px;
    row-gap: 1px;
  }
  .mega-event .mge-meter .mge-ring {
    grid-row: 1 / span 3;
    width: 44px;
    height: 44px;
  }
  .mega-event .mge-ring b {
    font-size: 15px;
  }
  .mega-event .mge-ring small {
    font-size: 8px;
  }
  .mega-event .mge-meter > span,
  .mega-event .mge-meter em {
    font-size: 9px;
    line-height: 1.2;
  }
}
@media (max-height:400px) {
  .mega-event .mge-odds {
    gap: 2px 3px;
  }
  .mega-event .mge-odds > small {
    display: none;
  }
  .mega-event .mge-pill {
    font-size: 9px !important;
    padding: 0 3px !important;
  }
  .mega-event .mge-pill b {
    font-size: 9px !important;
  }
}
.mega-event .mge-hero-pop small {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-height:470px) {
  .mega-event .mge-hero-pop small {
    max-width: 74px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work .shop-item .shop-buy button {
    position: relative;
  }
  .mart-work .shop-item .shop-buy button::after {
    content: "";
    position: absolute;
    left: -5px;
    right: -5px;
    top: -9px;
    bottom: -9px;
  }
}
.shop-panel:not(.mart) .shop-list .shop-item.picked .shop-text small {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
}
@media (max-height:540px) {
  .move-editor .me-pin {
    gap: 4px;
    padding: 4px 0;
  }
  .move-editor .me-pin .me-slots {
    gap: 3px !important;
  }
  .move-editor .me-slot {
    min-height: 28px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 14px;
  }
  .move-editor .me-slot .me-key {
    left: 3px;
    font-size: 10px;
  }
  .move-editor .me-slot .me-move {
    padding: 2px 3px;
    gap: 3px;
  }
  .move-editor .me-slot .me-move img {
    width: 16px;
    height: 16px;
  }
  .move-editor .me-slot .me-text b {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .move-editor > h3 small {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}
.move-demo-stage {
  z-index: 0;
}
.move-demo-wall .me-detail.me-float {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  width: 42%;
  width: min(42%, 230px);
  max-height: calc(100% - 44px);
  overflow: auto;
  box-sizing: border-box;
  padding: 4px 7px;
  background: rgba(248, 248, 240, .62);
  border-color: rgba(104, 120, 144, .7);
  box-shadow: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}
.move-demo-wall .me-float .me-detail-head {
  flex-wrap: wrap;
  row-gap: 2px;
}
@media (max-height:540px) {
  .move-demo-wall .me-detail.me-float {
    width: 46%;
    width: min(46%, 210px);
    padding: 3px 6px;
  }
  .move-demo-wall .me-float .me-detail-head strong {
    font-size: 12px;
  }
  .move-demo-wall .me-float .me-detail-head img {
    width: 16px;
    height: 16px;
  }
  .move-demo-wall .me-float .me-stats {
    font-size: 10px;
  }
  .move-demo-wall .me-float .me-desc {
    font-size: 11px;
    line-height: 1.35;
  }
}
.pc-screen > .pc-actions,
.pc-screen .pc-actions {
  background: #e4dcc6 !important;
  border-top: 2px solid #b8ac8c;
  padding: 6px 0 4px !important;
  bottom: 0 !important;
  box-shadow: 0 0 0 16px #e4dcc6;
  clip-path: inset(0 -16px -16px -16px);
}
.pc-screen.move-editor > * {
  flex-shrink: 0 !important;
}
.tm-card .tm-moves-box {
  position: relative;
  align-self: stretch;
  width: 100%;
}
.tm-card .tm-moves-box > .tm-moves {
  width: 100%;
}
.tm-card .tm-mega-row {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  z-index: 2;
  align-self: auto;
}
.tm-card .tm-mega-row .tm-mega {
  transform: scale(.75);
  transform-origin: right bottom;
  box-shadow: 0 2px 0 #30385055;
}
.mega-redeem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-redeem > p {
  margin: 0;
}
.mega-redeem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 2px solid #d8c8e8;
  border-radius: 6px;
  background: #faf6ff;
}
.mega-redeem-row img {
  image-rendering: pixelated;
  flex: none;
}
.mega-redeem-row .mega-pv-arrow {
  font-size: 16px;
}
.mega-redeem-from {
  font-size: 11px;
  color: #806a98;
  min-width: 5em;
}
.mega-redeem-to {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mega-redeem-to b {
  font-size: 13px;
  color: #5a2a8a;
}
.mega-redeem-to small {
  font-size: 11px;
  color: #806a98;
}
.shop-buy button.owned-where {
  opacity: .55;
  filter: grayscale(1);
}
.box-head .box-share-btn {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pc-search-head .pc-filter-btn {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 6px !important;
  font-size: 12px;
  white-space: nowrap;
}
.pc-search-head .pc-filter-btn.on {
  background: #f8d860 !important;
}
.pc-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.pc-filter-count {
  margin: 0;
  font-weight: 700;
}
.pc-filter-group > b {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  color: #404858;
}
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pc-chip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 3px 10px !important;
  font-size: 12px;
}
.pc-chip.on {
  background: #4a78c0 !important;
  color: #fff !important;
  border-color: #2a4878 !important;
}
.release-bar,
.pc-found-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 5px;
  font-size: 11px;
}
.pc-found-bar button {
  padding: 2px 8px !important;
  min-height: 0 !important;
  font-size: 11px;
}
.pc-page {
  font-size: 11px;
  min-width: 2.6em;
  text-align: center;
}
.bj-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.bj-rename {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 0;
}
.bj-rename > span {
  white-space: nowrap;
  font-weight: 700;
}
.bj-name-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  padding: 3px 6px;
  border: 2px solid #2a3040;
  background: #fffef4;
}
.bj-acts {
  display: flex;
  gap: 6px;
}
.bj-acts .on {
  background: #f8d860 !important;
}
.bj-cell > span {
  min-width: 0;
  max-width: 100%;
}
.bj-cell .bj-name {
  display: block;
  max-width: 100%;
  font-size: 9px;
  font-style: normal;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.box-jump-grid.swapping .bj-cell:not(.on) {
  outline: 2px dashed #d09020;
  outline-offset: -2px;
}
.pc-more .pc-move-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pc-move-num {
  width: 64px;
}
@media (max-height:520px) {
  .box-head .box-share-btn {
    display: none;
  }
}
.shard-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  align-self: stretch;
}
.shard-counts {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.shard-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--ui-fs-body,14px);
}
.shard-bar .shard-refresh {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 0;
  padding: 4px 12px !important;
  line-height: 1.2;
}
.shard-pay {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 420px;
  min-width: min(420px, 80vw);
}
.shard-pay-what {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.shard-pay-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}
.shard-pay-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 2px solid #c8d0d8;
  border-radius: 6px;
  background: #eef2ee;
}
.shard-pay-row.must {
  border-color: #e0a050;
}
.shard-pay-row.must .shard-pay-name {
  font-weight: 700;
}
.shard-pay-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shard-pay-name small {
  opacity: .75;
  font-size: 12px;
}
.shard-pay-n {
  min-width: 2em;
  text-align: center;
}
.shard-pay-status {
  margin: 0;
}
@media (max-height:470px) and (orientation:landscape) {
  .shard-bar .shard-refresh {
    padding: 2px 9px !important;
    font-size: 12px;
  }
  .shard-count img {
    width: 16px;
    height: 16px;
  }
  .shard-pay {
    gap: 3px;
  }
  .shard-pay-row img {
    width: 18px;
    height: 18px;
  }
}
.mart-work > .shard-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px;
}
.shard-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 2px solid #b8c4d0;
  border-radius: 6px;
  background: #e3e9e4;
  cursor: pointer;
  min-width: 0;
}
.shard-card.picked {
  border-color: #e07040;
  background: #f3ead8;
}
.shard-card.got {
  opacity: .6;
}
.shard-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.shard-card-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--ui-fs-body,15px);
}
.shard-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  align-items: center;
}
.shard-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4558;
  white-space: nowrap;
}
.shard-chip.short {
  color: #c03838;
}
.shard-chip img {
  width: 16px;
  height: 16px;
}
.shard-any {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 2px;
  border-radius: 50%;
  background:
    conic-gradient(
      #e05050 0,
      #e05050 25%,
      #4a78e0 0,
      #4a78e0 50%,
      #e8c030 0,
      #e8c030 75%,
      #40b060 0);
  box-shadow: 0 0 0 1px #3a4558;
}
.shard-card .shard-buy {
  min-height: 0;
  padding: 4px 12px !important;
  line-height: 1.2;
}
.shard-got {
  font-size: 12px;
  color: #687080;
  white-space: nowrap;
}
@media (max-height:470px) and (orientation:landscape) {
  .mart-work > .shard-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 3px;
  }
  .shard-card {
    padding: 2px 5px;
    gap: 4px;
  }
  .shard-card > img {
    width: 24px;
    height: 24px;
  }
  .shard-card-text strong {
    font-size: 12px;
  }
  .shard-chip {
    font-size: 10px;
  }
  .shard-chip img {
    width: 13px;
    height: 13px;
  }
  .shard-any {
    width: 9px;
    height: 9px;
    margin: 1px;
  }
  .shard-card .shard-buy {
    padding: 2px 8px !important;
    font-size: 12px;
  }
}
.shard-pay .shard-step {
  min-width: 30px;
  padding: 2px 8px !important;
  min-height: 0;
  line-height: 1.2;
}
.shard-bar .shard-star {
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 0;
  padding: 4px 10px !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
@media (max-height:470px) and (orientation:landscape) {
  .shard-bar .shard-star {
    padding: 2px 7px !important;
    font-size: 12px;
  }
  .shard-bar .shard-star img {
    width: 13px;
    height: 13px;
  }
  .shard-bar {
    gap: 5px;
  }
  .shard-counts {
    gap: 5px;
  }
}
.shard-wallet {
  align-self: stretch;
  margin: 4px 6px 8px;
  padding: 6px 10px 8px;
  background: #fffdf4;
  border: 3px solid #c8a868;
  border-radius: 8px;
  box-shadow: 0 3px 0 #b09050;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shard-wallet-title {
  font-size: 12px;
  color: #7a6040;
  font-weight: 700;
}
.shard-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}
.shard-wallet-item {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  color: #3a4558;
}
.shard-wallet-item > span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shard-wallet-item b {
  font-size: 15px;
}
.shard-wallet-item.star {
  grid-column: 1/-1;
  border-top: 2px dashed #e0cfa0;
  padding-top: 4px;
}
@media (max-height:470px) and (orientation:landscape) {
  .shard-wallet {
    margin: 2px 4px 4px;
    padding: 3px 6px 4px;
    gap: 2px;
    border-width: 2px;
  }
  .shard-wallet-title {
    display: none;
  }
  .shard-wallet-grid {
    grid-template-columns: repeat(5, auto);
    gap: 2px 6px;
    justify-content: space-between;
  }
  .shard-wallet-item {
    font-size: 11px;
    gap: 2px;
  }
  .shard-wallet-item img {
    width: 15px;
    height: 15px;
  }
  .shard-wallet-item > span {
    display: none;
  }
  .shard-wallet-item b {
    font-size: 12px;
  }
  .shard-wallet-item.star {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
  }
}
.mart-bubble .say-hl {
  color: #d0482a;
  font-weight: 700;
}
.mart-bubble .say-type {
  font-weight: 700;
}
.shard-card,
.road-shop .shop-item {
  position: relative;
}
button.tm-lock {
  position: absolute;
  left: 1px;
  top: 1px;
  z-index: 1;
  width: 18px;
  height: 18px;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button.tm-lock img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 0 #0006);
  opacity: .55;
  transition: transform .12s, opacity .12s;
}
button.tm-lock:hover img {
  opacity: .9;
  transform: scale(1.12);
}
button.tm-lock.on img {
  opacity: 1;
}
.shard-card.tm-locked,
.road-shop .shop-item.tm-locked {
  border-color: #e0a830 !important;
  box-shadow: inset 0 0 0 1px #ffd23f;
}
.road-shop .shop-item .sale-tag {
  display: inline-block;
  background: #e0483a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  margin-right: 4px;
}
.road-shop .shop-item .price-was {
  color: #9a9488;
  font-size: 12px;
  margin-right: 4px;
  opacity: .85;
}
.road-shop .shop-item .price-was img {
  filter: grayscale(1);
  opacity: .7;
}
.road-shop .shop-item.tm-sale {
  box-shadow: inset 0 0 0 1px #f08a7a;
}
.me-move .me-cd {
  flex: none;
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  background: #e4e8f0;
  color: #4a5468;
  border: 1px solid #b8c0d0;
  white-space: nowrap;
}
.me-slot .me-move .me-cd {
  font-size: 9px;
  padding: 1px 3px;
}
.pocket-tabs.bag-tabs {
  position: relative;
}
.bag-find-btn {
  margin-left: auto;
  min-width: 0 !important;
  padding: 3px 8px !important;
  display: inline-flex;
  align-items: center;
}
.pocket-tabs.bag-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.pocket-tabs.bag-tabs::-webkit-scrollbar {
  display: none;
}
.pocket-tabs.bag-tabs > button {
  flex: none;
}
.bag-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bag-tabs-row > .pocket-tabs.bag-tabs {
  flex: 1 1 auto;
  min-width: 0;
}
.bag-tabs-row > .bag-find-btn {
  flex: none;
  margin-left: 0;
  padding: 1px 12px !important;
  min-height: 0 !important;
  position: relative;
  overflow: visible;
}
.bag-tabs-row > .bag-find-btn::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: #a8a090;
  pointer-events: none;
}
.bag-find {
  position: fixed;
  z-index: 950;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f4e8;
  border: 2px solid #9098b0;
  border-radius: 6px;
  padding: 2px 6px;
}
.bag-find-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 4px 8px;
  border: 2px solid #b8c0d0;
  border-radius: 4px;
  background: #fff;
}
.bag-find-x {
  min-width: 0 !important;
  padding: 2px 8px !important;
}
.bag-find-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 220px;
  overflow: auto;
  background: #fffdf6;
  border: 2px solid #9098b0;
  border-radius: 6px;
  box-shadow: 0 4px 10px #0004;
  display: flex;
  flex-direction: column;
}
.bag-find-list:empty {
  display: none;
}
.bag-find-hit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #e0dccc !important;
  background: none !important;
  box-shadow: none !important;
  text-align: left;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.bag-find-hit:hover {
  background: #f3ead8 !important;
}
.bag-find-hit small {
  margin-left: auto;
  color: #687080;
}
.bag-find-none {
  padding: 6px 10px;
  margin: 0;
}
.shop-item.bag-flash {
  animation: bagFlash .45s ease-in-out 4;
}
@keyframes bagFlash {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 4px #ffd23f, 0 0 14px #ffd23f;
  }
}
.vault-lock {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  cursor: pointer;
  opacity: .45;
  flex: none;
  filter: drop-shadow(0 1px 0 #0006);
  transition: transform .12s, opacity .12s;
}
.vault-lock:hover {
  opacity: .8;
  transform: scale(1.12);
}
.vault-lock.on {
  opacity: 1;
}
.sell-pick.locked {
  opacity: .6;
  cursor: not-allowed;
}
.sell-pick .sell-lock {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  flex: none;
}
.stash-item {
  position: relative;
}
.stash-item.locked {
  opacity: .6;
}
.stash-item .stash-lock {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  pointer-events: none;
}
.me-move .me-cd {
  flex: none;
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
  background: #e4e8f0;
  color: #4a5468;
  border: 1px solid #b8c0d0;
  white-space: nowrap;
}
.me-slot .me-move .me-cd {
  font-size: 9px;
  padding: 1px 3px;
}
.mail-attach.mail-go {
  border: none;
  background: none;
  padding: 0;
}
.field-path::before {
  display: none;
}
.field-path > button.field-map-node {
  grid-area: auto;
}
.field-saved {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.field-saved-map {
  width: 34vw;
  width: min(34vw, 44vh);
  aspect-ratio: 1;
  --ar: 1;
  object-fit: cover;
  border: 3px solid #404858;
  image-rendering: pixelated;
  flex: none;
}
.field-saved-info {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-saved-info h2,
.field-saved-info p {
  margin: 0;
}
.field-saved-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.field-map-node .node-inner {
  background: linear-gradient(transparent 62%, #f8f8f0f0 78%);
}
.field-brief .field-brief-text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-height:470px) and (orientation:landscape) {
  .field-brief .gear-summary-btn {
    padding: 3px 10px !important;
    min-height: 0 !important;
    margin: 3px 0 !important;
  }
  .field-brief .briefing > .brief-actions {
    margin-top: auto;
  }
  .field-brief .pack-summary {
    margin: 3px 0 !important;
  }
}
.field-brief-map {
  width: 100%;
  flex: 1 1 0;
  min-height: 60px;
  max-height: 46vh;
  object-fit: cover;
  border: 3px solid #404858;
  image-rendering: pixelated;
}
.rocket-game-tag.saved {
  background: #e8a030 !important;
  color: #2a1800 !important;
}
@media (orientation:portrait) {
  .field-saved {
    flex-direction: column;
  }
  .field-saved-map {
    width: 60vw;
  }
  .field-brief-map {
    max-height: 30vh;
  }
}
.mon-sprite .legend-mark {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 14px;
  height: 14px;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
}
.mon-sprite .shiny-mark + .legend-mark {
  top: 12px;
}
.mon-sprite {
  overflow: visible !important;
  max-width: none !important;
}
.pb-team .pb-slot .legend-mark {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 2;
}
.mon-box {
  position: relative;
  display: inline-block;
  flex: none;
  width: 34px;
  height: 34px;
  vertical-align: middle;
}
.target-list .mon-box {
  width: 30px;
  height: 30px;
}
.pf-mega-row .mon-box {
  width: 40px;
  height: 40px;
  margin-left: auto;
}
.gacha-feat .mon-box {
  width: 76px;
  height: 76px;
}
.starter .mon-box {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 4px;
}
@media (max-height:520px) {
  .gacha-feat .mon-box {
    width: 52px;
    height: 52px;
  }
  .starter .mon-box {
    width: 56px;
    height: 56px;
  }
}
.hero-stage .hero-companion,
.hub .hero-card .hero-companion {
  display: block;
  width: calc(var(--portrait-size,150px)*.36);
  height: calc(var(--portrait-size,150px)*.36);
  transform: none;
}
.hb-nav .hb-ni.hb-videos-ni {
  background: #f8e0a0 !important;
  border: 2px solid #c88830 !important;
  margin: 2px 0 6px !important;
  font-weight: 700;
  color: #603810;
}
.hb-nav .hb-ni.hb-videos-ni > em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  padding: 0 5px;
  border-radius: 8px;
  background: #c88830;
  color: #fff;
}
.hb-nav .hb-ni.hb-videos-ni.on {
  background: #c88830 !important;
  color: #fff !important;
}
.hb-videos {
  margin: 0 0 12px;
}
.hb-videos > h2 {
  font-size: 15px;
  margin: 6px 0;
}
.hb-video {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 0 6px;
  background: #fffaf0;
  border: 2px solid #d8c8a0;
  border-radius: 6px;
}
.hb-video > div:first-child {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.hb-video b {
  font-size: 14px;
  line-height: 1.35;
}
.hb-video small {
  color: #787060;
  font-size: 11px;
}
.hb-video-go {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.hb-video-cover {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  background: #20283a;
}
@media (max-width:700px) {
  .hb-video {
    flex-wrap: wrap;
  }
  .hb-video-cover {
    width: 128px;
    height: 72px;
  }
}
.look-get {
  display: flex;
  align-items: center;
  gap: 14px;
}
.look-get p {
  margin: 0;
  font-size: 15px;
}
.look-get small {
  color: #6a7088;
}
.look-get-art {
  flex: none;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle,
      var(--c) 0 55%,
      transparent 56%);
  animation: lookGet .6s steps(6) both;
}
.look-get-art img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
}
@keyframes lookGet {
  from {
    transform: scale(.3) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.fm-drag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 560px;
  max-height: min(66vh, 560px);
  overflow: auto;
}
.dialog.fm-dialog {
  width: 860px !important;
  width: min(860px, 96vw) !important;
  max-width: none !important;
}
.fm-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.fm-drag.fm-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  height: 520px;
  height: min(62vh, 520px);
}
.fm-drag.fm-edit .fm-col {
  overflow: auto;
}
.fm-drag.fm-edit .me-slots {
  grid-template-columns: minmax(0, 1fr) !important;
}
.fm-drag .me-pool {
  min-height: 0;
}
.fm-drag h4 {
  margin: 2px 0 0;
  font-size: 12px;
}
.fm-drag h4 small {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}
.me-move.me-view {
  cursor: pointer;
}
.mart-work > .shop-list.expand-list {
  overflow-y: auto !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
}
.mart-work > .shop-list.expand-list > .expand-tabs {
  grid-column: 1/-1;
  display: flex;
  gap: 4px;
  margin: 0;
}
.expand-tabs .set-tab {
  padding: 2px 10px !important;
  font-size: 12px !important;
  min-height: 0 !important;
}
.mart-work > .shop-list.expand-list > .bag-busy-note {
  grid-column: 1/-1;
  margin: 6px 4px;
}
.mart-work > .shop-list.expand-list > .bag-row {
  grid-column: 1/-1;
}
.sling-row .sling-preview img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.bag-row .sling-preview img {
  width: 36px;
  height: 36px;
  image-rendering: auto;
}
.evolution-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #050b22df;
  touch-action: none;
}
.evolution-card.panel {
  width: 620px;
  max-width: 100%;
  max-height: 96vh;
  overflow: auto;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #496bb5,
      #1a3170 70%);
  border: 3px solid #f4f8ff;
  border-radius: 14px;
  box-shadow:
    0 0 0 3px #0b1838,
    inset 0 0 0 2px #7fa4f1,
    0 15px 60px #0008;
  padding: 24px;
}
.evolution-card h2 {
  font-size: 24px;
  margin: 8px 0 0;
}
.evolution-card .eyebrow {
  color: #ffd23f;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.evolution-stage {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(
      ellipse at center,
      #c3deff22,
      transparent 67%);
}
.evolution-before,
.evolution-after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  pointer-events: none;
}
.evolution-before .mon-sprite,
.evolution-after .mon-sprite {
  transform: scale(2);
  transform-origin: center;
  filter: drop-shadow(0 8px 0 #08143377);
}
.evolution-after {
  opacity: 0;
}
.evolution-ring {
  width: 160px;
  height: 160px;
  border: 3px solid #bce9ff66;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 25px #a2d9ff55, inset 0 0 25px #a2d9ff33;
  animation: evolution-orbit 1s ease-in-out infinite;
}
.evolution-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #d5f1ff;
  box-shadow: 0 0 8px #9bdbff;
  animation: evolution-particle 1s var(--delay) infinite ease-in;
  pointer-events: none;
}
.evolution-overlay[data-phase=transforming] .evolution-before {
  animation: evolution-flicker .18s steps(2, end) infinite;
  filter: brightness(0) invert(1);
  transform: scale(1.12);
}
.evolution-overlay[data-phase=transforming] .evolution-ring {
  animation: evolution-burst .4s infinite ease-out;
  border-color: #fff;
  box-shadow: 0 0 45px #d2edff;
}
.evolution-overlay[data-phase=revealed] .evolution-before {
  opacity: 0;
}
.evolution-overlay[data-phase=revealed] .evolution-after {
  opacity: 1;
  animation: evolution-reveal .45s ease-out;
}
.evolution-overlay[data-phase=revealed] .evolution-ring {
  border-color: #ffe37a;
  box-shadow: 0 0 30px #ffd23f55;
}
.evolution-overlay[data-phase=revealed] .evolution-spark {
  background: #ffe37a;
  animation: evolution-celebrate 1.1s var(--delay) ease-out infinite;
}
.evolution-caption {
  color: #d8e8ff;
  min-height: 26px;
  margin: 10px 0 16px;
  font-size: 16px;
}
.evolution-skip {
  min-width: 140px;
  padding: 8px 22px;
  border: 2px solid #c3d6ff;
  background: #17366e;
  color: #fff;
  border-radius: 8px;
}
@keyframes evolution-orbit {
  0%, 100% {
    transform: scale(.85) rotate(0deg);
    opacity: .5;
  }
  50% {
    transform: scale(1.06) rotate(180deg);
    opacity: 1;
  }
}
@keyframes evolution-particle {
  from {
    transform: translate(var(--x), var(--y)) scale(1);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  to {
    transform: translate(0, 0) scale(.3);
    opacity: 0;
  }
}
@keyframes evolution-flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .1;
  }
}
@keyframes evolution-burst {
  from {
    transform: scale(.3);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: .2;
  }
}
@keyframes evolution-reveal {
  from {
    transform: scale(.5);
    filter: brightness(3);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes evolution-celebrate {
  from {
    transform: translate(0, 0) scale(1.4);
    opacity: 1;
  }
  to {
    transform: translate(var(--x), var(--y)) scale(.4);
    opacity: 0;
  }
}
@media (max-height:500px) {
  .evolution-card.panel {
    width: 560px;
    padding: 16px 22px;
  }
  .evolution-card h2 {
    font-size: 20px;
  }
  .evolution-stage {
    height: 150px;
    margin: 8px 0;
  }
  .evolution-before .mon-sprite,
  .evolution-after .mon-sprite {
    transform: scale(1.6);
  }
  .evolution-ring {
    width: 120px;
    height: 120px;
  }
  .evolution-card .eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .evolution-caption {
    font-size: 13px;
    margin: 5px 0 10px;
    min-height: 20px;
  }
  .evolution-skip {
    padding: 6px 18px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .evolution-overlay * {
    animation: none !important;
    transition: none !important;
  }
  .evolution-spark {
    display: none;
  }
}
:root {
  --ink:#404858;
  --muted:#687080;
  --gold:#b84840;
  --navy:#303850;
  --blue:#687898;
  --edge:#9098b0;
  --green:#78b080;
  --font:SurvivorPixel,"Microsoft YaHei",sans-serif;
  --frame:url(/_expedition/assets/ui/handheld-frame.svg);
}
html,
body {
  background: #7888a0;
  color: var(--ink);
}
body,
body *,
body *:before,
body *:after {
  text-shadow: none !important;
}
button,
h1,
h2,
h3,
strong,
b {
  font-weight: 700;
}
h1,
h2,
h3 {
  color: var(--ink);
}
small,
.muted {
  color: var(--muted);
}
.panel,
.resource-pill,
button,
.pc-box,
.pc-screen,
.scene-art,
.route-art,
.toast {
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  border-radius: 0;
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
  color: var(--ink);
}
.panel {
  background-color: #f8f8e8;
  background-image:
    repeating-linear-gradient(
      0deg,
      #f8f8e8 0,
      #f8f8e8 4px,
      #f0f0e0 4px,
      #f0f0e0 6px);
  padding: 20px;
}
button,
.back {
  background-color: #d8e0e8;
  background-image:
    linear-gradient(
      #f0f0f0 0,
      #f0f0f0 4px,
      #d8e0e8 4px,
      #d8e0e8 calc(100% - 4px),
      #a8b0c8 calc(100% - 4px));
  color: #404858;
}
button:hover:enabled {
  background-color: #e8e8d0;
  background-image:
    linear-gradient(
      #fff8d8 0,
      #fff8d8 4px,
      #e8e8d0 4px,
      #e8e8d0 calc(100% - 4px),
      #c0b890 calc(100% - 4px));
  filter: none;
}
button:active:enabled {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #30385080;
}
button.primary {
  background-color: #e89078;
  background-image:
    linear-gradient(
      #ffc0a0 0,
      #ffc0a0 4px,
      #e89078 4px,
      #e89078 calc(100% - 4px),
      #c06058 calc(100% - 4px));
  color: #503838;
  box-shadow: 0 4px 0 #30385080;
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
}
button.primary:hover:enabled {
  background-image:
    linear-gradient(
      #ffd0a8 0,
      #ffd0a8 4px,
      #f0a088 4px,
      #f0a088 calc(100% - 4px),
      #c87060 calc(100% - 4px));
}
button.danger {
  background: #d08888;
  color: #482838;
}
button:disabled {
  opacity: .5;
}
button:focus-visible {
  outline: 3px solid #d06050;
  outline-offset: 2px;
}
button.selected,
.stage-option.selected,
.mon-card.selected {
  background: #f0d898;
  color: #584838;
  font-weight: 700;
  box-shadow: inset 4px 0 #c85848;
}
.notice {
  background: #e0e0d0;
  color: #606878;
  border: 2px solid #b0b0b8;
  border-left: 4px solid #c86858;
  border-radius: 0;
}
.badge {
  background: #e0e0d0;
  border: 2px solid #9098b0;
  border-radius: 0;
  color: #986050;
}
.hp {
  background: #585870;
  border: 1px solid #303850;
  border-radius: 0;
}
.hp i {
  background: #70b890;
  border-radius: 0;
}
.topbar {
  background: #485870c9;
  border-bottom: 4px solid #303850;
}
.resource-pill {
  background: #f0f0e0;
  color: #404858;
  border-radius: 0;
  padding: 6px 14px;
  box-shadow: 0 3px 0 #30385080;
}
.online-dot {
  background: #70b890;
  border-radius: 0;
}
.page-name {
  color: #f8f8e8;
}
.primary .ui-pixel-icon,
.resource-pill .ui-pixel-icon {
  filter: none;
}
.logo-title {
  color: #f8e8a0;
  letter-spacing: 1px;
}
.logo-subtitle {
  color: #fff8e8;
  font-weight: 700;
}
.logo-tagline {
  color: #f0f0e0;
}
.home-left {
  --portrait-size:280px;
}
.hero-stage {
  width: var(--portrait-size);
  height: var(--portrait-size);
  flex: 0 0 var(--portrait-size);
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      0deg,
      #a0c8d8 0,
      #a0c8d8 4px,
      #98c0d0 4px,
      #98c0d0 8px);
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
  isolation: isolate;
}
.hero-stage:before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 2px solid #d8e8e8;
  background: linear-gradient(transparent 70%, #88b0b8 70%);
  pointer-events: none;
}
.hero-stage .trainer-portrait {
  filter: none;
  width: 68%;
  height: 94%;
}
.hero-shadow {
  background: #58788066;
}
.hero-name {
  color: #fff8e8;
}
.hero-badges span,
.hero-badges span + span {
  background: #e8e8d8;
  color: #505868;
  border: 2px solid #687890;
  border-radius: 0;
}
.party-column {
  background: #a8b8c8 !important;
  border: 8px solid transparent !important;
  border-image: var(--frame) 8 stretch !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 0 #30385080 !important;
}
.party-thumb {
  background: #c8d8e0;
  border-radius: 0;
}
.party-thumb.lead {
  background: #f0d898;
  box-shadow: inset 2px 0 #c86858;
}
.party-thumb.empty {
  background: #909cb8;
  box-shadow: inset 0 0 0 1px #7888a0;
}
.hub-nav {
  border-top-width: 8px;
}
.home-menu {
  gap: 10px !important;
}
button.menu-card,
button.menu-card.featured {
  background: #e0e8e8;
  background-image:
    linear-gradient(
      #f8f8f0 0,
      #f8f8f0 4px,
      #e0e8e8 4px,
      #e0e8e8 calc(100% - 4px),
      #b8c0d0 calc(100% - 4px));
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  border-radius: 0;
  box-shadow: 0 3px 0 #30385060;
  color: #404858;
  padding: 9px 10px;
}
button.menu-card:hover:enabled,
button.menu-card:focus-visible {
  background: #f0e0b0;
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  box-shadow: 0 3px 0 #30385060;
  outline: none;
}
button.menu-card:before {
  display: none;
}
.menu-label strong {
  color: #404858;
  font-weight: 700;
}
.menu-label small {
  color: #687080;
  font-weight: 400;
}
button.menu-card.featured {
  background: #f0d8b0;
  background-image:
    linear-gradient(
      #fff0d0 0,
      #fff0d0 4px,
      #f0d8b0 4px,
      #f0d8b0 calc(100% - 4px),
      #d0b090 calc(100% - 4px));
}
.featured .menu-label strong {
  color: #a84840;
}
.featured .menu-label small {
  color: #806858;
}
.hub-status {
  background: #f0f0e0;
}
.hub-status p {
  color: #687080;
}
.hub-status strong {
  color: #404858;
}
.hub-status p.camp-tip {
  border-color: #c0c0b0;
  color: #687080;
}
.footer {
  background: #303850ba;
  color: #e0e0e8;
}
.credits-button {
  color: #f0f0e8 !important;
  font-weight: 700;
  border: 0 !important;
  border-image: none !important;
  background: none !important;
  box-shadow: none !important;
}
.eyebrow,
.page-top .eyebrow {
  background: #687890;
  color: #fff8e8;
  border-radius: 0;
}
.starter,
.mon-card,
.stage-option,
.opponent,
.route-art {
  background: #e0e8e0;
  color: #404858;
  border-radius: 0;
}
.condition,
.briefing dd {
  color: #505868;
}
.stage-index,
.opponent p,
.report-rewards,
.task-seal,
.recruit .ticket-count {
  color: #b05048;
}
.joy-scene,
.gacha-display {
  background: #d8e0e044;
  border-radius: 0;
}
.joy-scene canvas {
  border: 4px solid #687890;
  border-radius: 0;
  box-shadow: 0 3px 0 #303850;
}
.shop-row,
.task {
  border-color: #c0c0b0;
}
.shop-row small,
.panel-title small {
  color: #687080;
}
.dialog-back,
.exp-battle-result {
  background: #303850c9;
}
.dialog {
  border-radius: 0;
}
.toast {
  background: #f8f8e8;
}
.lan-codes textarea {
  background: #e8e8d8;
  color: #404858;
  border: 4px solid #8890a8;
  border-radius: 0;
}
.lan-codes label {
  color: #687080;
}
.lan-bottom p {
  color: #587890;
}
.scene-art {
  background: #d8d8c8;
}
.scene-art canvas {
  border-radius: 0;
}
.party-slot {
  background: #7898b8 !important;
  border: 4px solid transparent !important;
  border-image: var(--frame) 8 stretch !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff8e8;
}
.party-slot.lead {
  background: #6888a8 !important;
}
.party-slot.selected {
  background: #b06860 !important;
  box-shadow: inset 3px 0 #f8d898 !important;
}
.party-slot.empty {
  background: #b0b8c8 !important;
  border-image: var(--frame) 8 stretch !important;
  color: #606880;
}
.slot-info small {
  color: #f0f0e8;
}
.pc-box {
  background:
    repeating-linear-gradient(
      0deg,
      #a8c8d0 0,
      #a8c8d0 8px,
      #b0d0d8 8px,
      #b0d0d8 16px);
  padding: 6px;
}
.box-head {
  background: #f0f0e0;
  border: 2px solid #687890;
  border-radius: 0;
}
.box-head strong {
  color: #505868;
}
.box-cell,
.box-cell.empty {
  border-radius: 0 !important;
  background: #e0f0e044 !important;
  border: 1px solid #88a8b8 !important;
  box-shadow: inset 1px 1px #e0f0e0 !important;
}
.box-cell.selected {
  background: #f8e0a0aa !important;
  border: 2px solid #c05850 !important;
}
.box-foot {
  color: #505868;
}
.pc-screen {
  background: #f0f0e0;
  color: #505868;
  box-shadow: 0 4px 0 #30385080;
}
.pc-screen h2,
.pc-screen .mv-name,
.stat-row b {
  color: #404858;
}
.pc-screen h3,
.stat-row small {
  color: #b05048;
}
.pc-sub,
.pc-move small,
.pc-ability {
  color: #687080;
}
.pc-portrait {
  background:
    repeating-linear-gradient(
      0deg,
      #b0d0d8 0,
      #b0d0d8 4px,
      #a8c8d0 4px,
      #a8c8d0 8px);
  border: 3px solid #8898b0;
  border-radius: 0;
}
.pc-move {
  background: #d8e0e0;
  border-radius: 0;
}
.stat-bar {
  background: #c0c8c8;
  border-radius: 0;
}
.stat-bar i {
  background: #7898b8;
}
.shop-item {
  background: #e0e8e0;
  border: 2px solid #b8c0c8;
  border-radius: 0;
}
.shop-text small {
  color: #687080;
}
.shop-text .owned,
.shop-buy .price,
.carry-group h4 {
  color: #a85048;
}
.pocket-tabs button.selected {
  background: #f0d898 !important;
  color: #584838 !important;
}
.carry-row small {
  color: #687080;
}
.run-bag .bag-row {
  background: #d8e0e0;
  border-radius: 0;
}
.pull-fx {
  background: #384860;
}
.pcard {
  border-radius: 0;
  background: #586880;
}
.pcard .new {
  color: #f0d898;
}
.battle-transition {
  background: #586880;
}
.battle-transition h2,
.encounter-mark {
  color: #f0d898;
}
.battle-transition p {
  color: #e0e8e8;
}
.field-location,
.field-objective,
.field-team,
.field-loot {
  background: #f8f8e8ed;
  border-radius: 0;
  color: #404858;
}
.field-location small,
.field-loot small {
  color: #687080;
}
.field-top .panel {
  border-radius: 0;
}
.field-actions > button {
  background: #c0d0e0 !important;
  border: 4px solid #687890 !important;
  box-shadow: inset 2px 2px #f8f8f0, 0 3px 0 #303850 !important;
  color: #404858;
}
.field-caption {
  color: #fff8e8;
}
.stick-knob {
  background: #b8c8d8;
  border-color: #f0f0e0;
  box-shadow: 0 3px 0 #303850;
}
body.in-battle .hud.mode-play .pb-team {
  background: #a8b8c8e8;
  border-color: #606880;
  border-radius: 0;
  box-shadow: inset 2px 2px #f8f8e8, 0 3px 0 #303850;
}
body.in-battle .hud.mode-play .pb-slot {
  background: #8898b0 !important;
  border-color: #606880 !important;
}
body.in-battle .hud.mode-play .pb-slot.active {
  border-color: #f8d898 !important;
  box-shadow: 0 0 0 2px #b05850 !important;
}
body.in-battle .hud.mode-play .pb-move,
body.in-battle .hud.mode-play .pb-dodge {
  background: #687898ed !important;
  box-shadow: inset 2px 2px #c0d0e0, 0 3px 0 #303850 !important;
  font-weight: 700;
}
.evolution-overlay {
  background: #303850ed;
}
.evolution-card.panel {
  background:
    repeating-linear-gradient(
      0deg,
      #e0e8e8 0,
      #e0e8e8 4px,
      #d8e0e0 4px,
      #d8e0e0 8px);
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  border-radius: 0;
  box-shadow: 0 4px 0 #303850;
}
.evolution-card .eyebrow {
  color: #fff8e8;
}
.evolution-caption {
  color: #586878;
}
.evolution-skip {
  background: #c8d8e0;
  border-radius: 0;
  color: #404858;
}
.evolution-stage {
  background:
    radial-gradient(
      ellipse,
      #f8f8e888,
      transparent 67%);
}
[data-pc-kind][data-mon-id] {
  cursor: grab;
  touch-action: none;
}
[data-pc-kind][data-mon-id]:active {
  cursor: grabbing;
}
.pc-drag-source {
  opacity: .35;
}
.pc-drop-target {
  outline: 3px solid #d05048 !important;
  outline-offset: -3px;
  background: #f8e0a0 !important;
}
.pc-drag-ghost {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8e8db;
  border: 4px solid #586880;
  box-shadow: 4px 4px 0 #30385088;
  overflow: hidden;
}
@media (min-width:1600px) {
  .home-left {
    --portrait-size:320px;
  }
}
@media (max-height:700px) {
  .home-left {
    --portrait-size:210px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .home-left {
    --portrait-size:142px;
    gap: 6px;
  }
  .logo-subtitle {
    margin-top: 4px;
  }
  .logo-tagline {
    display: none;
  }
  .hero-name {
    margin-top: 6px;
  }
  .resource-pill {
    padding: 3px 7px;
  }
  .panel,
  .resource-pill,
  button {
    border-width: 4px;
  }
  .home-menu {
    gap: 5px !important;
    padding: 8px !important;
  }
  .home-menu .menu-card,
  .home-menu .menu-card.featured {
    border-width: 4px !important;
    padding: 3px 6px !important;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 20px;
  }
  .hub-status {
    padding: 6px 10px !important;
  }
  .hub-status p.camp-tip {
    display: none;
  }
}
@media (max-width:720px) and (orientation:landscape) {
  .home-left {
    --portrait-size:125px;
  }
}
@media (max-width:760px) and (orientation:landscape) {
  .pc-layout {
    grid-template-columns: minmax(100px, .65fr) minmax(150px, 1fr) minmax(230px, 1.35fr);
  }
  .pc-screen-head {
    gap: 6px;
  }
  .pc-portrait {
    width: 64px;
    height: 64px;
  }
  .pc-cols {
    grid-template-columns: 1fr;
  }
  .pc-actions {
    gap: 5px;
  }
  .pc-screen {
    padding: 6px;
  }
  .slot-info strong {
    font-size: 10px;
  }
}
@media (orientation:portrait) {
  .home-left {
    --portrait-size:216px;
  }
  .home-menu {
    grid-template-columns: 1fr !important;
  }
  .resource-pill {
    padding: 4px 8px;
    border-width: 4px;
  }
  .home-menu .menu-card {
    padding: 9px 10px;
  }
}
@media (min-height:471px) and (max-height:900px) and (orientation:landscape) {
  .home-menu {
    padding: 14px !important;
    gap: 8px !important;
  }
  .home-menu .menu-card,
  .home-menu .menu-card.featured {
    padding: 5px 10px;
  }
  .hub-status {
    padding: 14px;
  }
  .hub .home-right {
    gap: 14px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .home-menu {
    gap: 3px !important;
  }
  .home-menu .menu-card,
  .home-menu .menu-card.featured {
    padding: 2px 5px !important;
  }
  .hub-status {
    padding: 4px 8px !important;
  }
  .hub .home-right {
    gap: 6px;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 18px;
  }
}
.panel,
.resource-pill,
button,
.pc-box,
.pc-screen,
.scene-art,
.route-art,
.toast,
.hero-stage,
.party-column {
  background-clip: padding-box !important;
}
.notice-button {
  display: flex;
  align-items: center;
}
.hero-status {
  margin: 10px auto 0;
  max-width: 100%;
  max-width: min(100%, 440px);
  padding: 6px 12px;
  background: #f0f0e0;
  border: 6px solid transparent;
  border-image: var(--frame) 8 stretch;
  text-align: left;
  color: #687080;
  font-size: 13px;
  line-height: 1.45;
}
.hero-status p {
  margin: 0;
}
.hero-status strong {
  color: #404858;
}
.hero-status .camp-tip {
  margin-top: 3px;
  font-size: 12px;
}
.home-menu .menu-inner {
  min-width: 0;
}
.home-menu .menu-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.home-menu .menu-label strong,
.home-menu .menu-label small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (orientation:landscape) {
  .hub .home-right {
    justify-content: stretch;
  }
  .hub .home-menu {
    grid-template-rows: repeat(2, minmax(0, 1.2fr)) repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .home-menu .menu-card {
    container-type: size;
  }
  .home-menu .menu-card .menu-inner {
    gap: 6px;
    gap: clamp(6px, 6cqh, 14px);
  }
  .home-menu .menu-card .ui-pixel-icon {
    width: 18px !important;
    width: clamp(18px, 42cqh, 40px) !important;
    height: 18px !important;
    height: clamp(18px, 42cqh, 40px) !important;
  }
  .home-menu .menu-card .menu-label {
    padding-top: 0;
  }
  .home-menu .menu-card .menu-label strong {
    font-size: 12px !important;
    font-size: clamp(12px, 30cqh, 22px) !important;
    line-height: 1.2 !important;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 14px !important;
    font-size: clamp(14px, 34cqh, 30px) !important;
  }
  .home-menu .menu-card .menu-label small {
    display: block !important;
    font-size: 9px !important;
    font-size: clamp(9px, 15cqh, 14px) !important;
    margin-top: 1px !important;
    margin-top: clamp(1px, 4cqh, 6px) !important;
    line-height: 1.2;
  }
  @container (max-height:44px) {
    .home-menu .menu-card .menu-label small {
      display: none !important;
    }
  }
  html[data-compact-screen] .hero-status .camp-tip {
    display: none;
  }
  html[data-compact-screen] .hero-status {
    margin-top: 4px;
    padding: 3px 8px;
    font-size: 11px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .hero-status {
    border-width: 4px;
    font-size: 11px;
    padding: 3px 8px;
    margin-top: 4px;
  }
  .hero-status .camp-tip {
    display: none;
  }
}
@media (orientation:landscape) {
  .home-menu .menu-card .menu-label strong {
    font-size: 12px !important;
    font-size: clamp(12px, 30cqh, 26px) !important;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 14px !important;
    font-size: clamp(14px, 32cqh, 36px) !important;
  }
  .home-menu .menu-card .menu-label small {
    font-size: 9px !important;
    font-size: clamp(9px, 14cqh, 18px) !important;
  }
}
@media (min-height:900px) and (orientation:landscape) {
  .hero-status {
    font-size: 16px;
    max-width: 480px;
  }
  .hero-status .camp-tip {
    font-size: 14px;
  }
}
@media (orientation:portrait) {
  .top-actions .settings-inner span {
    display: none;
  }
  .home-menu .menu-card.featured .menu-label strong {
    font-size: 22px;
  }
  .home-menu .menu-card .menu-label {
    max-width: calc(100% - 96px);
  }
  .featured .menu-art {
    max-width: 120px;
  }
  .menu-art {
    max-width: 96px;
  }
}
.hero-status p {
  font-size: inherit !important;
  line-height: inherit !important;
}
.hero-status .camp-tip {
  font-size: .9em !important;
}
@media (orientation:portrait) {
  .topbar {
    height: auto !important;
    flex-wrap: wrap;
    row-gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .topbar .resource-pills {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .topbar .top-actions {
    margin-left: auto;
  }
}
.top-actions button span,
.top-actions .page-name {
  white-space: nowrap;
}
@media (max-width:1000px) {
  .top-actions .settings-inner span,
  .top-actions .save-inner span,
  .top-actions .page-name {
    display: none;
  }
}
body.in-battle .hud.mode-play .pb-team {
  border: 8px solid transparent !important;
  border-image: var(--frame) 8 stretch !important;
  border-radius: 0 !important;
  background: #e0e8e8 !important;
  background-clip: padding-box !important;
  padding: 2px 3px !important;
  gap: 4px !important;
  box-shadow: 0 3px 0 #30385080 !important;
}
body.in-battle .hud.mode-play .pb-slot {
  width: 50px !important;
  padding: 2px 2px 3px !important;
  border-radius: 0 !important;
  border: 3px solid #606880 !important;
  background: #f8f8f0 !important;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #c0c8d0 !important;
  cursor: pointer;
  transition: transform .08s steps(2);
}
body.in-battle .hud.mode-play .pb-slot:hover:not(.active):not(.out) {
  background: #fff8e0 !important;
}
body.in-battle .hud.mode-play .pb-slot.active {
  background: #f0d898 !important;
  border-color: #b05850 !important;
  box-shadow: inset 0 -3px 0 #c85848, 0 0 0 2px #f8f0d0 !important;
  transform: translateY(-3px);
}
body.in-battle .hud.mode-play .pb-slot.out {
  filter: grayscale(1);
  opacity: .55;
  cursor: default;
}
body.in-battle .hud.mode-play .pb-slot .pic {
  width: 40px !important;
  height: 40px !important;
  border-radius: 0 !important;
  margin: 0 auto;
  background-size: contain !important;
  background-position: center !important;
  image-rendering: pixelated;
}
body.in-battle .hud.mode-play .pb-slot .mini {
  display: block;
  width: 100% !important;
  height: 5px !important;
  margin: 2px 0 0 !important;
  border-radius: 0 !important;
  background: #404858 !important;
  border: 1px solid #303850 !important;
  overflow: hidden;
}
body.in-battle .hud.mode-play .pb-slot .mini u {
  display: block;
  height: 100%;
  border-radius: 0 !important;
  background: #58c060 !important;
}
@media (max-height:470px) {
  body.in-battle .hud.mode-play .pb-slot {
    width: 42px !important;
  }
  body.in-battle .hud.mode-play .pb-slot .pic {
    width: 32px !important;
    height: 32px !important;
  }
}
.difficulty-notice {
  background: #d8e8e8;
  border-left: 4px solid #6888a8;
  padding: 8px 10px;
  font-weight: 700;
}
.stage-requirement {
  font-size: 12px;
  color: #b05048;
}
.stage-requirement.ready {
  color: #586878;
}
.stage-option .stage-row > span:last-child {
  font-size: 11px;
  white-space: nowrap;
}
.stage-option small {
  white-space: normal;
}
.field-objective {
  max-width: 45vw;
}
.wild-encounter-sprite {
  flex-shrink: 0;
  transform: scale(1.5);
  margin: 12px;
}
.wild-battle-intro {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  background: #303850b8;
  pointer-events: none;
}
.wild-battle-intro h2 {
  color: #f8f8e8;
}
.wild-battle-intro .mon-sprite {
  transform: scale(1.8);
  margin: 30px;
  animation: wild-slide .45s steps(12) both;
}
.capture-animation {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 550;
  background: #303850d9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  touch-action: none;
}
.capture-card.panel {
  width: 600px;
  max-width: 100%;
  text-align: center;
  padding: 18px;
}
.capture-card h2 {
  margin: 0;
}
.capture-stage {
  position: relative;
  height: 240px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      #a8c8d8 0,
      #a8c8d8 4px,
      #b0d0d8 4px,
      #b0d0d8 8px);
  border: 3px solid #8898b0;
  margin: 12px 0;
}
.capture-platform {
  position: absolute;
  width: 50%;
  height: 28%;
  left: 40%;
  top: 52%;
  background: #b8d8b0;
  border: 4px solid #80a090;
  border-radius: 50%;
}
.capture-target {
  position: absolute;
  left: 65%;
  top: 38%;
  transform: translate(-50%, -50%);
  transform-origin: 50% 75%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.capture-target > .mon-sprite {
  flex-shrink: 0;
  transform: scale(1.5);
}
.capture-ball {
  position: absolute;
  left: 65%;
  top: 55%;
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 3;
}
.capture-flash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff8e8;
  opacity: 0;
  pointer-events: none;
}
.capture-stars {
  position: absolute;
  left: 65%;
  top: 42%;
  transform: translateX(-50%);
  font-size: 32px;
  color: #b07830;
  opacity: 0;
}
.capture-caption {
  min-height: 25px;
  margin: 0;
  font-weight: 700;
}
[data-phase=throw] .capture-ball {
  opacity: 1;
  animation: capture-throw .65s steps(20) both;
}
[data-phase=absorb] .capture-ball {
  opacity: 1;
  transform: translate(-50%, -145%);
}
[data-phase=absorb] .capture-target {
  animation: capture-absorb .45s steps(12) both;
  filter: brightness(0) invert(1);
}
[data-phase=absorb] .capture-flash {
  animation: capture-flash .45s steps(6);
}
[data-phase=fall] .capture-target,
[data-phase=rest] .capture-target,
[data-phase=shake] .capture-target,
[data-phase=caught] .capture-target {
  visibility: hidden;
}
[data-phase=fall] .capture-ball {
  opacity: 1;
  animation: capture-fall .45s steps(12) both;
}
[data-phase=rest] .capture-ball,
[data-phase=shake] .capture-ball,
[data-phase=caught] .capture-ball {
  opacity: 1;
  transform: translate(-50%, 25%);
}
[data-phase=shake] .capture-ball {
  animation: capture-shake .5s steps(10) both;
}
[data-phase=caught] .capture-ball {
  filter: brightness(.75);
}
[data-phase=caught] .capture-stars {
  animation: capture-stars .9s steps(10) both;
}
[data-phase=escape] .capture-ball {
  opacity: 0;
}
[data-phase=escape] .capture-target {
  animation: wild-slide .3s steps(8);
}
[data-phase=escape] .capture-flash {
  animation: capture-flash .3s steps(6);
}
@keyframes wild-slide {
  from {
    opacity: 0;
    translate: 70px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes capture-throw {
  0% {
    transform: translate(-290px, 65px) rotate(-360deg);
  }
  50% {
    transform: translate(-140px, -100px) rotate(-180deg);
  }
  100% {
    transform: translate(-50%, -145%) rotate(0);
  }
}
@keyframes capture-absorb {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, 20%) scale(0);
  }
}
@keyframes capture-fall {
  0% {
    transform: translate(-50%, -145%);
  }
  55% {
    transform: translate(-50%, 25%);
  }
  75% {
    transform: translate(-50%, -20%);
  }
  100% {
    transform: translate(-50%, 25%);
  }
}
@keyframes capture-shake {
  0%, 100% {
    transform: translate(-50%, 25%) rotate(0);
  }
  25% {
    transform: translate(-65%, 25%) rotate(-22deg);
  }
  70% {
    transform: translate(-35%, 25%) rotate(22deg);
  }
}
@keyframes capture-flash {
  20% {
    opacity: .8;
  }
  100% {
    opacity: 0;
  }
}
@keyframes capture-stars {
  0% {
    opacity: 1;
    transform: translate(-50%, 15px) scale(.6);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -25px) scale(1.4);
  }
}
@media (max-height:470px) {
  .capture-stage {
    height: 165px;
    margin: 8px 0;
  }
  .capture-card.panel {
    padding: 12px;
    max-width: 520px;
  }
  .capture-card h2 {
    font-size: 20px;
  }
  .capture-caption {
    font-size: 12px;
    min-height: 18px;
  }
  .capture-target > .mon-sprite {
    transform: scale(1.1);
  }
  .capture-ball {
    width: 32px;
    height: 32px;
  }
  .difficulty-notice {
    padding: 5px 8px;
    font-size: 12px;
  }
  .briefing p {
    font-size: 11px;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion:reduce) {
  .capture-animation *,
  .wild-battle-intro * {
    animation-duration: .01s !important;
    transition: none !important;
  }
}
body.in-battle .wild-dock {
  position: absolute;
  z-index: 30;
  left: calc(12px + var(--safe-left,0px));
  top: calc(84px + var(--safe-top,0px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
body.in-battle .wild-flee {
  padding: 6px 16px;
  border: 3px solid #f8f8f8;
  border-radius: 10px;
  background: #3a4a78;
  color: #fff;
  font:
    700 15px SurvivorPixel,
    "Microsoft YaHei",
    sans-serif;
  box-shadow: 0 3px 0 #1a2448, 0 0 0 2px #1a2448;
  cursor: pointer;
}
body.in-battle .wild-flee:active {
  transform: translateY(2px);
}
body.in-battle .wild-flee:disabled {
  opacity: .55;
}
.ball-select {
  position: absolute;
  z-index: 30;
  width: 84px;
  display: flex;
  flex-direction: column;
  background: #f8f8f0;
  border: 3px solid #485878;
  border-radius: 8px;
  box-shadow: 0 3px 0 #1a2448;
  overflow: hidden;
}
.ball-select[hidden] {
  display: none;
}
.ball-select button {
  border: 0;
  background: none;
  color: #283048;
  cursor: pointer;
  font-family:
    SurvivorPixel,
    "Microsoft YaHei",
    sans-serif;
  min-height: 0 !important;
  box-shadow: none !important;
  border-image: none !important;
}
.ball-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #dde3f0;
  border-bottom: 2px solid #485878;
}
.ball-head b {
  flex: 1;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.ball-cycle {
  width: 20px;
  padding: 0 !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
}
.ball-cycle:disabled {
  opacity: .3;
}
.ball-throw {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px !important;
  height: 60px;
}
.ball-throw img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  transition: transform .15s;
}
.ball-throw small {
  font-size: 10px;
  color: #c05040;
  white-space: nowrap;
}
.ball-throw:active:not(:disabled) img {
  transform: scale(.85) rotate(-25deg);
}
.ball-throw:disabled {
  opacity: .5;
}
.ball-select.empty .ball-cycle,
.ball-select.empty img {
  display: none;
}
@media (max-height:430px) {
  .ball-select {
    width: 74px;
  }
  .ball-throw {
    height: 50px;
  }
  .ball-throw img {
    width: 28px;
    height: 28px;
  }
}
.capture-banner {
  position: absolute;
  z-index: 36;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  padding: 10px 22px;
  background: #283048e8;
  border: 3px solid #f8f8f8;
  border-radius: 8px;
  color: #fff;
  font:
    700 18px SurvivorPixel,
    "Microsoft YaHei",
    sans-serif;
  white-space: nowrap;
  pointer-events: none;
  animation: capture-banner .25s steps(5) both;
}
.capture-banner.good {
  background: #2f7a50e8;
}
@keyframes capture-banner {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-height:430px) {
  body.in-battle .wild-dock {
    top: calc(72px + var(--safe-top,0px));
    gap: 6px;
  }
  body.in-battle .wild-flee {
    padding: 4px 12px;
    font-size: 13px;
  }
}
.wild-dock[hidden] {
  display: none !important;
}
.field-objective.danger {
  background: #f8d8d8 !important;
  color: #a02828 !important;
  animation: danger-blink 1s steps(2) infinite;
}
@keyframes danger-blink {
  50% {
    opacity: .75;
  }
}
body.in-battle .escape-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  padding: 4px 12px 4px 6px;
}
body.in-battle .escape-btn .escape-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  flex: none;
}
body.in-battle .escape-btn .escape-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
body.in-battle .escape-btn small {
  font-size: 10px;
  font-weight: 400;
  color: #d8e0ff;
  white-space: nowrap;
}
body.in-battle .escape-btn.locked {
  background: #6a4850;
  box-shadow: 0 3px 0 #301820, 0 0 0 2px #301820;
}
body.in-battle .escape-btn.locked .escape-icon {
  filter: grayscale(1);
  opacity: .6;
}
body.in-battle .escape-btn.locked small {
  color: #ffc8c0;
}
@media (max-height:430px) {
  body.in-battle .escape-btn {
    padding: 3px 10px 3px 4px;
  }
  body.in-battle .escape-btn .escape-icon {
    width: 22px;
    height: 22px;
  }
}
body.in-battle .wild-dock.battle-bag {
  left: auto;
  right: calc(12px + var(--safe-right,0px));
  top: calc(100px + var(--safe-top,0px));
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
body.in-battle .battle-bag .bag-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 3px 6px;
  background: #304060e6;
  border: 2px solid #f8f8f0;
  border-radius: 6px;
  box-shadow: 0 3px 0 #18203a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
body.in-battle .battle-bag .bag-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
body.in-battle .battle-bag .bag-items {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
}
body.in-battle .battle-bag .bag-item {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f0;
  border: 3px solid #304060;
  border-radius: 8px;
  box-shadow: 0 3px 0 #18203a;
  cursor: pointer;
  touch-action: manipulation;
}
body.in-battle .battle-bag .bag-item.escape {
  background: #f0e0f8;
  border-color: #704890;
}
body.in-battle .battle-bag .bag-item img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}
body.in-battle .battle-bag .bag-count {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 11px;
  color: #202840;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
  z-index: 1;
}
body.in-battle .battle-bag .bag-item:disabled {
  opacity: 1;
}
body.in-battle .battle-bag .bag-item .pe-cdt {
  font-size: 15px;
}
body.in-battle .battle-bag .bag-empty {
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
@media (max-height:470px) {
  body.in-battle .wild-dock.battle-bag {
    top: calc(84px + var(--safe-top,0px));
  }
  body.in-battle .battle-bag .bag-item {
    width: 38px;
    height: 38px;
  }
  body.in-battle .battle-bag .bag-item img {
    width: 26px;
    height: 26px;
  }
  body.in-battle .battle-bag .bag-icon {
    width: 22px;
    height: 22px;
  }
}
body.in-battle .potion-throw,
body.in-battle .potion-trail {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 35;
  pointer-events: none;
  image-rendering: pixelated;
  will-change: transform;
}
body.in-battle .potion-throw {
  filter: drop-shadow(0 2px 0 #00000066);
}
body.in-battle .potion-trail {
  filter: brightness(1.6) saturate(.4);
}
body.in-battle .potion-burst {
  position: absolute;
  z-index: 35;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 3px solid #78e890;
  box-shadow: 0 0 10px #78e890;
  pointer-events: none;
  animation: potion-burst .55s ease-out forwards;
}
@keyframes potion-burst {
  to {
    transform: scale(6);
    opacity: 0;
  }
}
.legend-timer {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 4px 12px;
  background: #f8f0d0;
  border: 2px solid #c09030;
  color: #805010;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  animation: danger-blink 1s steps(2) infinite;
}
.auto-clear {
  background: #d8e8f8 !important;
  border-color: #6888a8 !important;
}
.auto-clear-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.auto-run {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8f0d0;
  border: 2px solid #6888a8;
  font-size: 13px;
  font-weight: 700;
}
.auto-run-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa060;
  animation: danger-blink 1s steps(2) infinite;
}
.charm-timer {
  padding: 3px 8px !important;
  font-size: 11px;
  white-space: nowrap;
  color: #687080;
  pointer-events: none;
}
.charm-timer.on {
  color: #305078;
  font-weight: 700;
}
.charm-block {
  background: #f8e0d8 !important;
  border-left-color: #c05048 !important;
  color: #803028;
}
.briefing > .notice.charm-block {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 8px;
  margin: 4px 0;
}
.charm-block .charm-stow {
  flex: none;
  padding: 3px 10px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.stealth-count {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -100%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 12px;
  background: #20283cc8;
  border: 2px solid #8898b8;
  color: #e8eef8;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.stealth-count b {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 1px;
}
.stealth-count small {
  font-size: 10px;
  opacity: .85;
}
.stealth-count.on {
  border-color: #a8c8f0;
}
.stealth-count.ending {
  border-color: #ff7060;
  background: #5a1c1cd8;
  animation: stealth-blink .5s steps(2) infinite;
}
@keyframes stealth-blink {
  50% {
    opacity: .45;
  }
}
@media (max-height:470px) {
  .stealth-count {
    padding: 2px 10px;
  }
  .stealth-count b {
    font-size: 15px;
  }
}
.stealth-count.below {
  transform: translate(-50%, 0);
}
.npc-bubble {
  position: absolute;
  z-index: 31;
  transform: translate(-50%, -100%);
  max-width: 72%;
  max-width: min(72%, 420px);
  width: max-content;
  padding: 7px 12px;
  background: #fff;
  border: 3px solid #283048;
  box-shadow: 0 3px 0 #00000040;
  color: #283048;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}
.npc-bubble::after {
  content: "";
  position: absolute;
  left: var(--tail,50%);
  bottom: -9px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #fff;
  border-right: 3px solid #283048;
  border-bottom: 3px solid #283048;
  transform: rotate(45deg);
}
.npc-bubble.below {
  transform: translate(-50%, 0);
}
.npc-bubble.below::after {
  bottom: auto;
  top: -9px;
  transform: rotate(225deg);
}
@media (max-height:470px) {
  .npc-bubble {
    font-size: 13px;
    padding: 5px 10px;
  }
}
:root {
  --safe-left:var(--native-safe-left,env(safe-area-inset-left,0px));
  --safe-top:var(--native-safe-top,env(safe-area-inset-top,0px));
  --safe-right:var(--native-safe-right,env(safe-area-inset-right,0px));
  --safe-bottom:var(--native-safe-bottom,env(safe-area-inset-bottom,0px));
  --game-height:calc(var(--app-vh, 100vh) - var(--safe-top) - var(--safe-bottom) - 2 * var(--fit-y,0px));
}
#game-ui,
#app {
  left: calc(var(--safe-left) + var(--fit-x,0px)) !important;
  top: calc(var(--safe-top) + var(--fit-y,0px)) !important;
  right: calc(var(--safe-right) + var(--fit-x,0px)) !important;
  bottom: calc(var(--safe-bottom) + var(--fit-y,0px)) !important;
  width: auto !important;
  height: auto !important;
}
#app .battle-screen {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
.dialog-back,
.evolution-overlay,
.capture-animation,
.pull-fx,
.battle-transition {
  left: calc(var(--safe-left) + var(--fit-x,0px)) !important;
  top: calc(var(--safe-top) + var(--fit-y,0px)) !important;
  right: calc(var(--safe-right) + var(--fit-x,0px)) !important;
  bottom: calc(var(--safe-bottom) + var(--fit-y,0px)) !important;
  width: auto !important;
  height: auto !important;
}
.exp-battle-result {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
}
.exp-battle-result p {
  color: var(--muted);
}
body[data-screen=explore] #survivor-backdrop,
body.in-battle #survivor-backdrop {
  display: none;
}
body[data-screen=explore],
body.in-battle {
  background: #0b1428;
}
body.in-battle #game-ui {
  display: none !important;
}
#world {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.topbar,
.footer {
  flex-shrink: 0;
}
.dialog {
  max-height: calc(var(--game-height) - 48px);
}
.evolution-card.panel {
  max-height: calc(var(--game-height) - 44px);
}
.page {
  min-height: 0;
  overflow-anchor: none;
}
.shop-list,
.pc-screen,
.dex-panel,
.carry-list {
  overflow-anchor: none;
}
.pc-layout,
.shop-panel {
  height: calc(var(--game-height) - 150px);
}
.dex-panel {
  max-height: calc(var(--game-height) - 140px);
}
.box-wall {
  width: 100%;
}
@supports (width: min(1px, 2px)) {
  .box-wall {
    width: min(100%, calc((var(--game-height) - 190px) * 160 / 144));
  }
}
.area-sign {
  top: calc(var(--safe-top) + 70px);
  left: calc(var(--safe-left) + (100vw - var(--safe-left) - var(--safe-right))/2);
}
.toast {
  bottom: calc(var(--safe-bottom) + 25px);
  left: calc(var(--safe-left) + (100vw - var(--safe-left) - var(--safe-right))/2);
  max-width: calc(100vw - var(--safe-left) - var(--safe-right) - 32px);
}
body.in-battle .hud.mode-play .pb-team {
  bottom: 8px;
}
body.in-battle .hud.mode-play .pb-moves {
  right: 62px !important;
  bottom: 62px !important;
}
body.in-battle .hud.mode-play .pb-dodge {
  right: 14px !important;
  bottom: 14px !important;
}
body.in-battle .hud.mode-play .pb-stick {
  left: 22px !important;
}
body.in-battle .wild-dock {
  left: 12px;
  top: 84px;
}
@media (max-height:700px) and (orientation:landscape) {
  .pc-layout,
  .shop-panel {
    height: calc(var(--game-height) - 118px);
  }
}
@media (max-height:500px) {
  .box-wall {
    width: 100%;
  }
  @supports (width: min(1px, 2px)) {
    .box-wall {
      width: min(100%, calc((var(--game-height) - 140px) * 160 / 144));
    }
  }
}
@media (max-height:470px) {
  body.in-battle .hud.mode-play .pb-moves {
    right: 56px !important;
    bottom: 56px !important;
  }
}
@media (max-height:430px) {
  body.in-battle .wild-dock {
    top: 72px;
  }
}
@media (orientation:portrait) {
  .pc-layout {
    height: auto;
  }
}
@media (orientation:landscape) {
  #game-ui > .hub {
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    min-height: 0;
  }
  .hub .home-right {
    height: 100%;
    max-height: none;
    min-height: 0;
    gap: 8px;
    justify-content: center;
  }
  .hub .home-left {
    height: 100%;
    min-height: 0;
    justify-content: center;
    --portrait-size: calc(var(--game-height) * .34);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(88px,calc(var(--game-height) * .34),320px);
    }
  }
  .hub .home-menu {
    flex: 1;
    min-height: 0;
    grid-template-rows: 1.1fr repeat(4, minmax(0, 1fr));
    gap: 5px !important;
    padding: 8px !important;
  }
  .home-menu .menu-card,
  .home-menu .menu-card.featured {
    min-height: 0 !important;
    margin: 0;
    padding: 3px 6px !important;
  }
  .home-menu .menu-inner {
    height: 100%;
    min-height: 0;
  }
  .hub .hub-status {
    flex: none;
    padding: 6px 10px !important;
  }
  html[data-compact-screen] .hub-status p.camp-tip,
  html[data-compact-screen] .home-menu .menu-label small,
  html[data-compact-screen] .logo-tagline {
    display: none;
  }
  html[data-compact-screen] .hub {
    padding: 6px 16px 8px;
    gap: 18px;
  }
  html[data-compact-screen] .hub-status p {
    font-size: 11px;
    line-height: 1.35;
    margin: 2px 0;
  }
  html[data-compact-screen] .home-menu .menu-label strong {
    font-size: 16px;
    line-height: 1.2;
  }
  html[data-compact-screen] .home-menu .featured .menu-label strong {
    font-size: 20px;
  }
  html[data-compact-screen] .home-menu .ui-pixel-icon {
    width: 22px;
    height: 22px;
  }
}
body[data-screen=explore] #game-ui {
  left: var(--fit-x,0px) !important;
  top: var(--fit-y,0px) !important;
  right: var(--fit-x,0px) !important;
  bottom: var(--fit-y,0px) !important;
}
body[data-screen=explore] .field-top,
body[data-screen=explore] .field-team {
  margin-left: var(--safe-left);
  margin-top: var(--safe-top);
}
body[data-screen=explore] .field-side {
  margin-right: var(--safe-right);
  margin-top: var(--safe-top);
}
body[data-screen=explore] .field-actions {
  margin-right: var(--safe-right);
  margin-bottom: var(--safe-bottom);
}
body[data-screen=explore] .stick-zone {
  margin-left: var(--safe-left);
  margin-bottom: var(--safe-bottom);
}
body[data-screen=explore] .field-caption {
  margin: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
}
.hub .hero-stage.hero-card {
  width: calc(var(--portrait-size)*1.4);
  height: var(--portrait-size);
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}
.hero-card .hero-figure {
  position: relative;
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-card .hero-figure .trainer-portrait {
  width: 96% !important;
  height: 94% !important;
  padding: 4px 0 8% !important;
  object-fit: contain;
}
.hero-card .hero-figure .hero-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7%;
  height: 7%;
  border-radius: 50%;
}
.hero-card .hero-companion {
  right: -8%;
  bottom: 5%;
  width: auto;
}
.hero-card .hero-info {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin: 8% 7% 8% 0;
  padding: 6px 8px;
  background: #f8f8e8e8;
  border: 2px solid #687890;
  box-shadow: inset -2px -2px 0 #d0d0c8;
  text-align: left;
  color: var(--ink);
}
.hero-card .hero-name {
  margin: 0 !important;
  font-size: calc(var(--portrait-size)*.1);
  line-height: 1.15;
  color: #303850 !important;
  text-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@supports (width: min(1px, 2px)) {
  .hero-card .hero-name {
    font-size: clamp(15px, calc(var(--portrait-size)*.1), 30px);
  }
}
.hero-level {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-level b {
  font-size: calc(var(--portrait-size)*.065);
  color: #b05048;
}
@supports (width: min(1px, 2px)) {
  .hero-level b {
    font-size: clamp(11px, calc(var(--portrait-size)*.065), 18px);
  }
}
.hero-exp {
  display: block;
  height: 6px;
  background: #c8d0d8;
  box-shadow: inset 0 0 0 1px #687890;
}
.hero-exp > i {
  display: block;
  height: 100%;
  background: #f0c040;
}
.hero-level small {
  font-size: calc(var(--portrait-size)*.05);
  color: var(--muted);
}
@supports (width: min(1px, 2px)) {
  .hero-level small {
    font-size: clamp(9px, calc(var(--portrait-size)*.05), 13px);
  }
}
.hero-card .hero-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
}
.hero-card .hero-badges span,
.hero-card .hero-badges span + span {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: calc(var(--portrait-size)*.058) !important;
  color: #505868 !important;
  white-space: nowrap;
}
@supports (width: min(1px, 2px)) {
  .hero-card .hero-badges span, .hero-card .hero-badges span + span {
    font-size: clamp(10px, calc(var(--portrait-size)*.058), 15px) !important;
  }
}
.hub .party-column {
  height: var(--portrait-size);
}
.hub .party-thumb {
  width: calc(var(--portrait-size)*.24);
}
@supports (width: min(1px, 2px)) {
  .hub .party-thumb {
    width: clamp(40px, calc(var(--portrait-size)*.24), 78px);
  }
}
@media (min-height:560px) {
}
@media (min-height:860px) {
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: calc(var(--game-height) * .58);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(110px,min(calc(var(--game-height) * .58),calc((44vw - 110px) / 1.4)),380px);
    }
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 216px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(216px,calc((100vw - 120px) / 1.4));
    }
  }
}
.hub .party-column {
  display: grid !important;
  grid-template-columns: repeat(2, var(--thumb-w));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  --thumb-w: calc(var(--portrait-size)*.27);
}
@supports (width: min(1px, 2px)) {
  .hub .party-column {
    --thumb-w: clamp(38px,calc(var(--portrait-size)*.27),96px);
  }
}
.hub .party-thumb {
  width: auto !important;
  height: auto;
  min-height: 0;
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: calc(var(--game-height) * .58);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(100px,min(calc(var(--game-height) * .58),calc((44vw - 40px) / 1.96)),380px);
    }
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .hero-row {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .hub .home-left {
    --portrait-size: 96px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 28px) / 1.4),calc(var(--game-height) - 160px)),300px);
    }
  }
  .hub .party-column {
    width: calc(var(--portrait-size)*1.4);
    height: calc(var(--portrait-size)*.32);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .hub .hero-status {
    display: none;
  }
}
html[data-compact-screen] .hub .hero-status {
  display: none;
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 96px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 28px) / 1.4),calc(var(--game-height) - 215px)),300px);
    }
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 216px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(216px,calc((100vw - 64px) / 1.96));
    }
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hero-card .hero-info {
    gap: 2px;
    padding: 3px 6px;
    margin: 6% 5% 6% 0;
  }
  .hero-card .hero-level small {
    display: none;
  }
  .hero-card .hero-name {
    font-size: 14px;
  }
  .hero-card .hero-badges span {
    font-size: 10px !important;
  }
  .hero-level b {
    font-size: 11px;
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hero-card .hero-figure {
    flex-basis: 42%;
  }
}
.hub .hero-card .hero-name {
  font-size: calc(var(--portrait-size)*.1) !important;
  min-height: 1.15em;
}
@supports (width: min(1px, 2px)) {
  .hub .hero-card .hero-name {
    font-size: clamp(14px, calc(var(--portrait-size)*.1), 30px) !important;
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .hero-card .hero-name {
    font-size: 14px !important;
  }
}
@media (min-height:560px) {
}
@media (min-height:860px) {
}
@media (max-height:470px) and (orientation:landscape) and (min-width:761px) {
}
.hub .hero-row {
  align-items: stretch;
}
.hub .hero-stage.hero-card {
  width: var(--portrait-size);
  height: var(--portrait-size);
}
.hub .hero-card .hero-figure {
  flex: 1 1 100%;
}
.hub .hero-card .hero-figure .trainer-portrait {
  width: 78% !important;
}
.hub .hero-card .hero-companion {
  right: 2%;
}
.hub .hero-namecard {
  flex: 0 0 auto;
  width: calc(var(--portrait-size)*.64);
  height: var(--portrait-size);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink);
  background-color: #f8f8e8;
  background-image:
    repeating-linear-gradient(
      0deg,
      #f8f8e8 0,
      #f8f8e8 4px,
      #f0f0e0 4px,
      #f0f0e0 6px);
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
}
.hub .hero-namecard .hero-name {
  margin: 0 !important;
  font-size: calc(var(--portrait-size)*.12) !important;
  line-height: 1.15;
  color: #303850 !important;
  text-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub .hero-namecard .hero-level b {
  font-size: calc(var(--portrait-size)*.075);
}
@supports (width: min(1px, 2px)) {
  .hub .hero-namecard .hero-level b {
    font-size: clamp(11px, calc(var(--portrait-size)*.075), 19px);
  }
}
.hub .hero-namecard .hero-level small {
  font-size: calc(var(--portrait-size)*.058);
}
@supports (width: min(1px, 2px)) {
  .hub .hero-namecard .hero-level small {
    font-size: clamp(9px, calc(var(--portrait-size)*.058), 14px);
  }
}
.hub .hero-namecard .hero-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
}
.hub .hero-namecard .hero-badges span,
.hub .hero-namecard .hero-badges span + span {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: calc(var(--portrait-size)*.066) !important;
  color: #505868 !important;
  white-space: nowrap;
}
@supports (width: min(1px, 2px)) {
  .hub .hero-namecard .hero-badges span, .hub .hero-namecard .hero-badges span + span {
    font-size: clamp(10px, calc(var(--portrait-size)*.066), 16px) !important;
  }
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: calc(var(--game-height) * .58);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc(var(--game-height) * .58),calc((44vw - 50px) / 2.22)),360px);
    }
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .hub .hero-namecard {
    border-width: 4px;
    padding: 5px 7px;
    gap: 4px;
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .hero-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 30px) / 1.68),calc(var(--game-height) - 215px)),260px);
    }
  }
  .hub .party-column {
    flex: 0 0 100%;
    width: calc(var(--portrait-size)*1.64 + 5px);
    height: calc(var(--portrait-size)*.36);
  }
  .hub .hero-namecard .hero-level small {
    display: none;
  }
  .hub .hero-namecard .hero-name {
    font-size: 14px !important;
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 200px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(200px,calc((100vw - 74px) / 2.22));
    }
  }
  .hub .hero-namecard .hero-level small {
    display: none;
  }
}
.pack-summary {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 6px;
}
.pack-summary > .pack-open-btn {
  flex: none;
  margin: 0 !important;
  padding: 5px 12px !important;
  min-height: 0 !important;
}
.pack-btn-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.pack-btn-inner img {
  image-rendering: pixelated;
}
.pack-btn-inner > span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pack-btn-inner b {
  font-size: 14px;
  white-space: nowrap;
}
.pack-btn-inner small {
  font-size: 11px;
  opacity: .85;
  white-space: nowrap;
}
.pack-summary .pack-contents {
  flex: 1;
  min-width: 0;
  margin: 0;
  height: 52px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 3px 5px;
  padding: 4px 6px;
  background: #f0f0e0;
  border: 2px solid #9098b0;
  box-shadow: inset 1px 1px 0 #d0d0c8;
  scrollbar-width: thin;
  scrollbar-color: #9098b0 #e0e0d0;
}
.pack-summary .pack-contents::-webkit-scrollbar {
  width: 6px;
}
.pack-summary .pack-contents::-webkit-scrollbar-thumb {
  background: #9098b0;
}
.pack-summary .pack-contents::-webkit-scrollbar-track {
  background: #e0e0d0;
}
.pack-summary .pack-contents > small {
  align-self: center;
}
@media (max-height:470px) and (orientation:landscape) {
  .briefing .pack-summary > .pack-open-btn {
    padding: 3px 9px !important;
  }
  .pack-btn-inner b {
    font-size: 12px;
  }
  .pack-btn-inner small {
    font-size: 10px;
  }
  .pack-btn-inner img {
    width: 20px;
    height: 20px;
  }
  .pack-summary .pack-contents {
    height: 44px;
    padding: 3px 5px;
  }
}
body[data-screen=explore] .field-hud-left {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-left: var(--safe-left);
  margin-top: var(--safe-top);
  pointer-events: none;
}
body[data-screen=explore] .field-hud-left .field-top {
  position: static;
  margin: 0;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  gap: 6px;
  align-items: stretch;
}
body[data-screen=explore] .field-hud-left .field-team {
  position: static;
  margin: 0;
}
.field-top .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.field-retreat.danger {
  pointer-events: auto;
  align-self: stretch;
  margin: 0 !important;
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 12px;
  background: #f0c8b8 !important;
  background-image:
    linear-gradient(
      #ffe0d0 0,
      #ffe0d0 3px,
      #f0b8a0 3px,
      #f0b8a0 calc(100% - 3px),
      #c87060 calc(100% - 3px)) !important;
  color: #802818 !important;
}
.retreat-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 700;
}
.warn-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  color: #fff8e8;
  background: #d04030;
  box-shadow: 0 0 0 2px #802818;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  padding-top: 4px;
  box-sizing: border-box;
}
.field-team {
  display: grid !important;
  grid-template-columns: repeat(2, 42px);
  grid-auto-rows: 40px;
  gap: 3px;
  padding: 4px !important;
  background: #a8b8c8e6 !important;
  border: 4px solid transparent;
  border-image: var(--frame) 8 stretch;
  box-shadow: 0 3px 0 #30385060;
  pointer-events: none;
}
.field-team .party-thumb {
  padding-bottom: 3px;
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8d8e0;
  overflow: hidden;
}
.field-team .party-thumb.lead {
  background: #f0d890;
}
.field-team .party-thumb.empty {
  background: #8898a8;
}
.field-team .party-thumb.fainted .mon-sprite {
  filter: grayscale(1) opacity(.55);
}
.field-team .party-thumb.newbie::after {
  content: "★";
  position: absolute;
  right: 1px;
  top: -2px;
  font-size: 10px;
  color: #e0a020;
  text-shadow: 1px 1px 0 #604010;
}
.thumb-hpbar {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 4px;
  background: #405060;
  display: block;
}
.thumb-hpbar > i {
  display: block;
  height: 100%;
  background: #60c870;
}
.thumb-hpbar.mid > i {
  background: #e8c040;
}
.thumb-hpbar.low > i {
  background: #e05040;
}
body[data-screen=explore] .field-side,
body[data-screen=road] .field-side {
  gap: 6px;
}
body[data-screen=explore] .field-side .field-actions,
body[data-screen=road] .field-side .field-actions {
  position: static;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
body[data-screen=explore] .field-side .field-bag,
body[data-screen=road] .field-side .field-bag {
  width: auto;
  height: auto;
  padding: 4px 14px !important;
  border-radius: 0 !important;
  background: #c0d0e0 !important;
  background-image:
    linear-gradient(
      #f0f8ff 0,
      #f0f8ff 3px,
      #c0d0e0 3px,
      #c0d0e0 calc(100% - 3px),
      #8898b0 calc(100% - 3px)) !important;
  border: 6px solid transparent !important;
  border-image: var(--frame) 8 stretch !important;
  box-shadow: 0 3px 0 #30385080 !important;
  color: var(--ink);
}
.field-bag .field-btn {
  flex-direction: row;
  gap: 6px;
}
.field-bag .field-btn img {
  width: 26px;
  height: 26px;
}
.field-bag .field-btn b {
  font-size: 13px;
}
.field-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.field-quick-item {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  min-height: 0 !important;
  border-width: 4px !important;
  background: #f8f8e8 !important;
}
.quick-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-inner img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}
.quick-inner b {
  position: absolute;
  right: 1px;
  bottom: -1px;
  font-size: 10px;
  color: #303850;
  text-shadow: 1px 1px 0 #fff;
}
.field-repel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 40px;
  padding: 2px 0 3px;
  background: #f8f8e8;
  border: 4px solid #384860;
  box-sizing: border-box;
  image-rendering: pixelated;
}
.field-repel img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.field-repel b {
  font-size: 9px;
  line-height: 1;
  color: #303850;
}
.repel-bar {
  display: block;
  width: 28px;
  height: 4px;
  background: #405060;
}
.repel-bar > i {
  display: block;
  height: 100%;
  background: #60b8e8;
}
@media (max-height:470px) and (orientation:landscape) {
  .field-team {
    grid-template-columns: repeat(2, 34px);
    grid-auto-rows: 32px;
    gap: 2px;
    padding: 3px !important;
  }
  .field-retreat.danger {
    font-size: 11px;
    padding: 3px 9px !important;
  }
  .warn-mark {
    width: 15px;
    height: 15px;
    font-size: 11px;
  }
  .field-quick-item {
    width: 34px;
    height: 34px;
  }
  .quick-inner img {
    width: 20px;
    height: 20px;
  }
  .field-repel {
    width: 34px;
  }
  .field-repel img {
    width: 18px;
    height: 18px;
  }
  .repel-bar {
    width: 24px;
  }
  body[data-screen=explore] .field-side .field-bag,
  body[data-screen=road] .field-side .field-bag {
    padding: 3px 10px !important;
    border-width: 4px !important;
  }
  .field-bag .field-btn img {
    width: 20px;
    height: 20px;
  }
  .field-bag .field-btn b {
    font-size: 11px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .field-quick {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 120px;
  }
}
@media (orientation:portrait) {
  .field-team {
    grid-template-columns: repeat(6, 34px);
    grid-auto-rows: 32px;
  }
}
@media (orientation:portrait) {
  .field-top .field-objective {
    display: none;
  }
  body[data-screen=explore] .field-hud-left .field-top {
    flex-wrap: wrap;
    max-width: calc(100vw - 180px);
  }
}
.hub .hero-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hub .party-column {
  flex: 0 0 100%;
  width: calc(var(--portrait-size)*1.64 + 6px);
  height: calc(var(--portrait-size)*.34);
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-rows: 1fr !important;
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: 96px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 40px) / 1.66),calc(var(--game-height) * .78 - 110px)),330px);
    }
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 30px) / 1.68),calc(var(--game-height) - 215px)),260px);
    }
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 200px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(200px,calc((100vw - 60px) / 1.66));
    }
  }
}
.hub .party-thumb.lead::before,
.field-team .party-thumb.lead::before {
  content: "首发";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 3px;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  color: #fff8e8;
  background: #c05048;
}
.field-team {
  grid-template-columns: 42px !important;
  grid-auto-rows: 38px !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .field-team {
    grid-template-columns: 36px !important;
    grid-auto-rows: 32px !important;
    gap: 2px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .field-team {
    grid-auto-rows: 28px !important;
  }
}
@media (orientation:portrait) {
  .field-team {
    grid-template-columns: repeat(6, 34px) !important;
    grid-auto-rows: 32px !important;
  }
}
.hub .party-column {
  width: auto;
  height: var(--portrait-size);
  grid-template-columns: var(--thumb-w) !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  gap: 3px;
  --thumb-w: calc(var(--portrait-size)*.3);
}
@supports (width: min(1px, 2px)) {
  .hub .party-column {
    --thumb-w: clamp(40px,calc(var(--portrait-size)*.3),110px);
  }
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: calc(var(--game-height) * .66);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(100px,min(calc(var(--game-height) * .66),calc((44vw - 50px) / 1.98)),420px);
    }
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .hero-row {
    flex-wrap: nowrap;
  }
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 30px) / 1.98),calc(var(--game-height) - 150px)),260px);
    }
  }
  .hub .party-column {
    flex: 0 0 auto;
    width: auto;
    height: var(--portrait-size);
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 200px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(200px,calc((100vw - 60px) / 1.98));
    }
  }
}
@media (min-height:560px) {
}
@media (min-height:860px) {
}
.hub .party-thumb.lead::before,
.field-team .party-thumb.lead::before {
  content: "首发";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 3px;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  color: #fff8e8;
  background: #c05048;
}
.hub .hero-status {
  display: none !important;
}
.field-team {
  grid-template-columns: 42px !important;
  grid-auto-rows: 38px !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .field-team {
    grid-template-columns: 36px !important;
    grid-auto-rows: 32px !important;
    gap: 2px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .field-team {
    grid-auto-rows: 28px !important;
  }
}
@media (orientation:portrait) {
  .field-team {
    grid-template-columns: repeat(6, 34px) !important;
    grid-auto-rows: 32px !important;
  }
}
.hub .hero-row {
  flex-wrap: nowrap !important;
  justify-content: center;
}
.hub .party-column {
  flex: none !important;
  width: auto !important;
}
.hub .hero-namecard {
  width: calc(var(--portrait-size)*.54);
}
.hub .party-column {
  --thumb-w: calc(var(--portrait-size)*.27);
}
@supports (width: min(1px, 2px)) {
  .hub .party-column {
    --thumb-w: clamp(38px,calc(var(--portrait-size)*.27),110px);
  }
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: calc(var(--game-height) * .66);
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(100px,min(calc(var(--game-height) * .66),calc((44vw - 56px) / 1.81)),440px);
    }
  }
}
@media (max-height:470px) and (orientation:landscape) {
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .hero-row {
    flex-wrap: wrap !important;
    gap: 5px;
  }
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 34px) / 1.27),calc(var(--game-height) - 190px)),240px);
    }
  }
  .hub .hero-namecard {
    flex: 0 0 100%;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    padding: 3px 8px;
  }
  .hub .hero-namecard .hero-level {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .hub .hero-namecard .hero-exp {
    width: 50px;
  }
  .hub .hero-namecard .hero-badges {
    flex-direction: row;
    gap: 8px;
  }
}
.hub .party-thumb.lead::before,
.field-team .party-thumb.lead::before {
  left: 0;
  top: 0;
  bottom: 0;
  right: auto;
  width: 11px;
  padding: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 8px;
  line-height: 11px;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub .party-thumb.lead,
.field-team .party-thumb.lead {
  padding-left: 11px;
  box-sizing: border-box;
}
.hub .party-thumb.lead::before,
.field-team .party-thumb.lead::before {
  content: none !important;
  display: none !important;
}
.hub .party-thumb.lead,
.field-team .party-thumb.lead {
  padding-left: 0;
}
@media (orientation:landscape) and (max-height:700px) {
  .hub .hero-row {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 6px;
  }
  .hub .home-left {
    --portrait-size: 96px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 50px) / 1.56),calc((var(--game-height) - 150px) / 1.34)),300px);
    }
  }
  .hub .party-column {
    flex: 0 0 100% !important;
    width: calc(var(--portrait-size)*1.54 + 6px) !important;
    height: calc(var(--portrait-size)*.32);
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
  }
}
@media (orientation:landscape) and (max-height:700px) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc(44vw - 40px),calc((var(--game-height) - 200px) / 1.34)),240px);
    }
  }
  .hub .party-column {
    width: 100% !important;
    height: calc(var(--portrait-size)*.36);
  }
}
@media (orientation:landscape) and (max-height:700px) {
  .hub .home-left {
    --portrait-size: 96px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 50px) / 1.56),calc((var(--game-height) - 164px) / 1.34)),300px);
    }
  }
}
@media (orientation:landscape) and (max-height:700px) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 84px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(84px,min(calc(44vw - 40px),calc(var(--game-height) - 196px)),240px);
    }
  }
  .hub .party-column {
    height: 56px;
    padding: 3px !important;
    border-width: 4px !important;
    gap: 2px;
  }
}
@media (orientation:landscape) and (max-height:700px) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 84px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(84px,min(calc(44vw - 40px),calc(var(--game-height) - 245px)),240px);
    }
  }
}
@media (orientation:landscape) and (max-height:700px) {
  .hub .home-logo .logo-title {
    font-size: 24px !important;
    font-size: clamp(24px, 4.2vw, 40px) !important;
  }
  .hub .home-logo .logo-subtitle {
    font-size: 13px !important;
    margin-top: 0 !important;
  }
  .hub .home-left {
    --portrait-size: 90px;
    justify-content: flex-start !important;
    padding-top: 4px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 50px) / 1.56),calc((var(--game-height) - 214px) / 1.34)),300px);
    }
  }
}
@media (orientation:landscape) and (max-height:700px) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 80px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(80px,min(calc(44vw - 40px),calc(var(--game-height) - 290px)),240px);
    }
  }
}
@media (orientation:landscape) and (max-height:700px) and (min-width:761px) {
  .hub .hero-namecard {
    width: calc(var(--portrait-size)*.74);
  }
  .hub .party-column {
    width: calc(var(--portrait-size)*1.74 + 6px) !important;
  }
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 50px) / 1.76),calc((var(--game-height) - 214px) / 1.34)),300px);
    }
  }
}
.hub .hero-row {
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 6px;
}
.hub .hero-namecard {
  width: calc(var(--portrait-size)*.74);
}
.hub .party-column {
  flex: 0 0 100% !important;
  width: calc(var(--portrait-size)*1.74 + 6px) !important;
  height: calc(var(--portrait-size)*.32);
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-rows: 1fr !important;
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: 90px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(90px,min(calc((44vw - 50px) / 1.76),calc((var(--game-height) - 214px) / 1.34)),340px);
    }
  }
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .home-left {
    --portrait-size: 80px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(80px,min(calc(44vw - 40px),calc(var(--game-height) - 290px)),240px);
    }
  }
  .hub .party-column {
    width: 100% !important;
    height: 56px;
  }
}
@media (orientation:portrait) {
  .hub .home-left {
    --portrait-size: 200px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: min(200px,calc((100vw - 60px) / 1.76));
    }
  }
}
@media (min-height:560px) {
}
@media (min-height:860px) {
}
@media (max-width:760px) and (orientation:landscape) {
}
.hub .party-column {
  box-sizing: border-box;
}
.hub .hero-namecard,
.hub .hero-stage.hero-card {
  box-sizing: border-box;
}
.hub .party-column {
  flex: 0 0 calc(var(--portrait-size)*1.74 + 6px) !important;
}
@media (orientation:landscape) and (max-width:760px) {
  .hub .party-column {
    flex: 0 0 100% !important;
  }
}
.hub .hero-row::after {
  content: "";
  flex: 0 0 100%;
  order: 1;
  height: 0;
}
.hub .party-column {
  order: 2;
}
@media (orientation:landscape) and (max-height:700px) {
  .hub .party-column {
    flex: 0 0 100% !important;
  }
}
.field-pointers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.field-pointer {
  position: absolute;
  width: 0;
  height: 0;
}
.field-pointer .ptr-icon {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c05048;
  border: 2px solid #f8f8f0;
  box-shadow: 0 0 0 2px #402028, 0 2px 0 2px #40202860;
  animation: ptr-pulse .9s steps(2) infinite;
}
.field-pointer.legend .ptr-icon {
  background: #6040a0;
  box-shadow: 0 0 0 2px #201040, 0 0 10px #ffe060;
}
.field-pointer .ptr-arrow {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-left: 10px solid #f8f8f0;
  transform-origin: 7px 7px;
  filter: drop-shadow(0 0 1px #402028);
}
@keyframes ptr-pulse {
  50% {
    transform: scale(1.12);
  }
}
.hub .party-thumb .thumb-lv {
  position: absolute;
  left: 2px;
  top: 1px;
  z-index: 1;
  font-size: calc(var(--portrait-size)*.045);
  line-height: 1;
  color: #fff;
  text-shadow:
    1px 0 0 #203048,
    -1px 0 0 #203048,
    0 1px 0 #203048,
    0 -1px 0 #203048;
  pointer-events: none;
  font-weight: 700;
}
@media (orientation:landscape) {
  .hub .home-left {
    --portrait-size: 96px !important;
    justify-content: flex-start !important;
    padding-top: 4px;
  }
  @supports (width: min(1px, 2px)) {
    .hub .home-left {
      --portrait-size: clamp(96px,min(calc((44vw - 34px) / 1.95),calc(var(--game-height) - 232px)),400px) !important;
    }
  }
  .hub .hero-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch;
    gap: 6px !important;
  }
  .hub .hero-namecard {
    flex: 0 0 auto !important;
    width: calc(var(--portrait-size)*.8) !important;
    height: var(--portrait-size) !important;
  }
  .hub .hero-stage.hero-card {
    flex: 0 0 auto !important;
    width: calc(var(--portrait-size)*1.15) !important;
    height: var(--portrait-size) !important;
  }
  .hub .hero-card .hero-figure .trainer-portrait {
    width: 70% !important;
  }
  .hub .hero-card .hero-companion {
    right: 6%;
  }
  .hub .party-column {
    flex: 0 0 calc(var(--portrait-size)*1.95 + 6px) !important;
    width: calc(var(--portrait-size)*1.95 + 6px) !important;
    height: calc(var(--portrait-size)*.36) !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    gap: 4px !important;
    padding: 4px !important;
    border-width: 5px !important;
  }
  @supports (width: min(1px, 2px)) {
    .hub .party-column {
      height: clamp(50px, calc(var(--portrait-size)*.36), 104px) !important;
    }
  }
  .hub .party-thumb {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 0 4px !important;
    overflow: hidden;
  }
  .hub .party-thumb .thumb-lv {
    left: 3px;
    top: 2px;
    font-size: calc(var(--portrait-size)*.055);
  }
  @supports (width: min(1px, 2px)) {
    .hub .party-thumb .thumb-lv {
      font-size: clamp(9px, calc(var(--portrait-size)*.055), 14px);
    }
  }
  .hub .party-thumb .thumb-hp {
    left: 4px !important;
    right: auto;
    bottom: 3px !important;
    height: 3px !important;
  }
}
@media (orientation:landscape) and (min-height:560px) {
}
@media (orientation:landscape) and (min-height:860px) {
}
@media (orientation:landscape) and (max-width:700px) {
}
@media (orientation:landscape) {
  .hub .party-thumb .thumb-lv {
    padding: 1px 3px;
    background: #203048d9;
    border-radius: 2px;
    text-shadow: none;
    color: #fff8d8;
  }
}
@media (orientation:landscape) and (min-height:560px) {
  .hub .home-logo .logo-tagline {
    display: none;
  }
}
@media (orientation:landscape) {
  main.page {
    display: flex !important;
    flex-direction: column;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    max-width: none !important;
  }
  main.page > * {
    flex: 1 0 auto;
    min-height: 0;
  }
  main.page > .pc-layout,
  main.page > .shop-panel,
  main.page > .dex-panel,
  main.page > .lab-room,
  main.page > .dungeon-select,
  main.page > .adventure-layout,
  main.page > .arena-panel {
    flex: 1 1 0 !important;
    height: auto !important;
    max-height: none !important;
  }
}
@media (orientation:landscape) and (max-height:470px) {
  main.page {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
.pe-watermark {
  position: fixed;
  left: calc(var(--safe-left,0px) + 6px);
  bottom: calc(var(--safe-bottom,0px) + 4px);
  z-index: 2147483000;
  --wm:1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(1px*var(--wm));
  opacity: .62;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.pe-watermark img,
.pe-watermark canvas {
  display: block;
  width: auto;
  height: calc(14px*var(--wm));
  image-rendering: pixelated;
}
@media (min-height:1080px) {
  .pe-watermark {
    left: calc(var(--safe-left,0px) + 10px);
    bottom: calc(var(--safe-bottom,0px) + 8px);
    --wm:2;
  }
}
.field-pause {
  pointer-events: auto;
  align-self: stretch;
  margin: 0 !important;
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.pause-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pause-mark {
  width: 10px;
  height: 12px;
  flex: none;
  background:
    linear-gradient(
      90deg,
      currentColor 0 35%,
      transparent 35% 65%,
      currentColor 65%);
}
@media (max-height:470px) {
  .field-pause {
    font-size: 11px;
    padding: 3px 9px !important;
  }
}
body[data-screen=explore] .toast,
body.in-battle .toast {
  pointer-events: none;
  max-width: 420px !important;
  max-width: min(46vw, 420px) !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  line-height: 1.35;
  border-width: 3px !important;
  opacity: .93;
  text-align: center;
}
body[data-screen=explore] .toast {
  bottom: calc(var(--safe-bottom) + 10px) !important;
}
body.in-battle .toast {
  bottom: auto !important;
  top: calc(var(--safe-top) + 96px) !important;
}
@media (max-height:470px) {
  body.in-battle .toast {
    top: calc(var(--safe-top) + 74px) !important;
  }
}
body[data-screen=explore] .area-sign {
  top: calc(var(--safe-top) + 58px) !important;
  width: 200px;
  margin-left: -100px;
  padding: 5px 12px 6px !important;
  gap: 0 !important;
  pointer-events: none;
}
body[data-screen=explore] .area-sign strong {
  font-size: 16px;
}
body[data-screen=explore] .area-sign small {
  font-size: 10px;
}
body[data-screen=explore] .area-sign .difficulty-badge {
  transform: scale(.85);
  transform-origin: left center;
  margin-top: 1px;
}
body[data-screen=explore] .field-team,
body[data-screen=road] .field-team {
  pointer-events: auto;
  cursor: pointer;
}
.field-map-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.field-map-row .field-pause {
  align-self: flex-start;
}
.auto-toggle {
  pointer-events: auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 12px;
  white-space: nowrap;
  color: #203048 !important;
  background: #d8e8f8 !important;
  background-image:
    linear-gradient(
      #f0f8ff 0,
      #f0f8ff 3px,
      #c8dcf0 3px,
      #c8dcf0 calc(100% - 3px),
      #6888a8 calc(100% - 3px)) !important;
}
.auto-toggle b {
  font-weight: 700;
}
.auto-check {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid #304060;
  background: #fff;
  box-sizing: border-box;
}
.auto-toggle.on {
  color: #402000 !important;
  background-image:
    linear-gradient(
      #fff0c0 0,
      #fff0c0 3px,
      #f0b850 3px,
      #f0b850 calc(100% - 3px),
      #a86818 calc(100% - 3px)) !important;
}
.auto-toggle.on .auto-check {
  background:
    #e8a030 linear-gradient(
      45deg,
      transparent 38%,
      #fff 38% 56%,
      transparent 56%);
}
.auto-toggle.on .pc-icon {
  animation: auto-pulse 1s steps(2) infinite;
}
.pc-icon {
  display: inline-flex;
  font-style: normal;
  line-height: 0;
}
.pc-icon svg {
  width: 16px;
  height: 15px;
}
@media (max-height:470px) and (orientation:landscape) {
  .auto-toggle {
    font-size: 11px;
    padding: 3px 9px !important;
  }
  .auto-check {
    width: 12px;
    height: 12px;
  }
}
.dialog-actions .field-retreat.danger {
  align-self: auto;
  padding: 8px 14px !important;
  font-size: 14px;
}
body.in-battle .auto-battle i {
  display: inline-flex;
  line-height: 0;
  letter-spacing: 0;
}
body.in-battle .auto-battle .pc-svg {
  width: 16px;
  height: 15px;
}
.town-mode .briefing, .wild-mode .briefing {
  display: flex;
  flex-direction: column;
}
.town-mode .briefing .brief-actions, .wild-mode .briefing .brief-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}
.town-mode .briefing .brief-buttons, .wild-mode .briefing .brief-buttons {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.town-mode .briefing .brief-buttons > button, .wild-mode .briefing .brief-buttons > button {
  margin: 0 !important;
  min-width: 0;
  white-space: nowrap;
}
.town-mode .briefing .brief-buttons > .primary, .wild-mode .briefing .brief-buttons > .primary {
  flex: 2 1 0;
}
.town-mode .briefing .brief-buttons > .auto-clear, .wild-mode .briefing .brief-buttons > .auto-clear {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.town-mode .briefing .brief-buttons > .auto-clear .item-btn, .wild-mode .briefing .brief-buttons > .auto-clear .item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.town-mode .briefing .auto-clear-note, .wild-mode .briefing .auto-clear-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}
.town-mode .briefing .pack-summary, .wild-mode .briefing .pack-summary {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 150px;
}
.town-mode .briefing .pack-summary .pack-contents, .wild-mode .briefing .pack-summary .pack-contents {
  height: auto;
  min-height: 52px;
}
.town-mode .briefing .brief-actions.with-auto .brief-buttons, .wild-mode .briefing .brief-actions.with-auto .brief-buttons {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.town-mode .briefing .pack-summary, .wild-mode .briefing .pack-summary {
  min-height: 56px;
}
.town-mode .briefing .brief-actions > .charm-block, .wild-mode .briefing .brief-actions > .charm-block {
  margin: 0;
}
.auto-toggle.on .auto-check,
.sell-pick.on .sell-check {
  background: #e8a030 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 3h1v2H1zM2 4h1v2H2zM3 5h1v2H3zM4 4h1v2H4zM5 3h1v2H5zM6 2h1v2H6zM7 1h1v2H7z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.tut-coach {
  position: fixed;
  z-index: 120;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  max-width: min(460px, 56vw);
  padding: 6px 12px 6px 6px;
  background: #f8f4e0;
  border: 3px solid #485870;
  box-shadow: 0 3px 0 #20283880;
  pointer-events: none;
  animation: tut-in .25s ease-out;
}
.tut-coach.field {
  bottom: calc(14px + var(--safe-bottom,0px));
}
.tut-coach.battle {
  top: calc(78px + var(--safe-top,0px));
}
.tut-coach[hidden] {
  display: none;
}
.tut-coach p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #283040;
}
.tut-coach-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tut-birch {
  width: 40px;
  height: 40px;
  flex: none;
  image-rendering: pixelated;
  object-fit: cover;
  object-position: top;
  background: #d8e8f0;
  border: 2px solid #6888a8;
}
.tut-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tut-meter[hidden] {
  display: none;
}
.tut-meter small {
  font-size: 10px;
  color: #606878;
  white-space: nowrap;
}
.tut-meter i {
  position: relative;
  flex: 1;
  height: 7px;
  min-width: 90px;
  background: #d0d4d8;
  border: 1px solid #485870;
}
.tut-meter b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #58c070;
  transition: width .1s;
}
.tut-meter b.loud {
  background: #e05040;
}
@keyframes tut-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}
@media (max-height:470px) {
  .tut-coach {
    max-width: 400px;
    max-width: min(400px, 52vw);
    padding: 4px 10px 4px 4px;
  }
  .tut-coach p {
    font-size: 11px;
  }
  .tut-birch {
    width: 32px;
    height: 32px;
  }
  .tut-coach.battle {
    top: calc(62px + var(--safe-top,0px));
  }
}
.tut-coach {
  gap: 6px;
  padding: 3px 8px 3px 3px;
  max-width: 380px;
  max-width: min(380px, 44vw);
  background: #f8f4e0e6;
  border-width: 2px;
}
.tut-coach .tut-birch {
  width: 26px;
  height: 26px;
}
.tut-coach p {
  font-size: 11px;
  line-height: 1.35;
}
.tut-coach.pinned {
  bottom: auto;
  transform: none;
  max-width: 300px;
  max-width: min(300px, 34vw);
  animation: none;
}
.tut-coach .tut-meter i {
  min-width: 60px;
}
@media (max-height:470px) {
  .tut-coach .tut-birch {
    width: 22px;
    height: 22px;
  }
  .tut-coach p {
    font-size: 10px;
  }
}
.tut-focus {
  outline: 3px solid #ffd040 !important;
  outline-offset: 2px;
  animation: tut-blink .8s steps(2) infinite;
}
@keyframes tut-blink {
  50% {
    outline-color: #ff8030;
  }
}
.tut-ring {
  position: fixed;
  z-index: 119;
  pointer-events: none;
  border: 4px solid #f03030;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 9999px #0818288c;
  animation: tut-ring .8s ease-in-out infinite;
}
.tut-ring > span {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -48px);
  padding: 1px 8px;
  background: #f03030;
  color: #fff;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tut-ring > i {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 48px;
  height: 48px;
  margin-left: -30px;
  background: url(/_expedition/assets/emerald/intro/starter_balls.png) 0 -144px/48px 192px no-repeat;
  image-rendering: pixelated;
  animation: tut-tap .6s steps(2) infinite;
}
.tut-ring.below > span {
  bottom: auto;
  top: 100%;
  transform: translate(-50%, 48px);
}
.tut-ring.below > i {
  bottom: auto;
  top: 100%;
  transform: scaleY(-1);
}
@keyframes tut-ring {
  50% {
    border-color: #ff8080;
  }
}
@keyframes tut-tap {
  50% {
    margin-bottom: -6px;
  }
}
.tut-say {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tut-say p {
  margin: 0 0 6px;
  line-height: 1.5;
}
.tut-say .tut-birch {
  width: 56px;
  height: 56px;
}
@media (max-height:470px) {
  .tut-say p {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .tut-say .tut-birch {
    width: 44px;
    height: 44px;
  }
}
.friend-button {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px !important;
  min-height: 0 !important;
  align-self: stretch;
}
.friend-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-height:470px) {
  .friend-button {
    padding: 2px 8px !important;
    font-size: 12px;
  }
  .friend-inner img {
    width: 16px;
    height: 16px;
  }
}
.tour-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 130;
}
.tour-spot {
  position: fixed;
  box-shadow: 0 0 0 9999px #08101cb0;
  border: 3px solid #ffd040;
  border-radius: 4px;
  pointer-events: none;
  transition: all .2s ease-out;
}
.tour-spot[hidden] {
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border: 0;
}
.tour-card {
  position: fixed;
  width: 320px;
  width: min(320px, 80vw);
  padding: 10px 12px;
  background: #f8f4e0;
  border: 3px solid #485870;
  box-shadow: 0 4px 0 #20283880;
  transition: left .2s, top .2s;
}
.tour-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-head small {
  display: block;
  font-size: 10px;
  color: #687080;
}
.tour-head b {
  font-size: 15px;
  color: #283040;
}
.tour-card p {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #303848;
}
.tour-acts {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.tour-acts button {
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.tour-acts .tour-skip {
  margin-right: auto;
}
@media (max-height:470px) {
  .tour-card {
    padding: 7px 10px;
  }
  .tour-card p {
    font-size: 12px;
    margin: 4px 0 6px;
  }
}
.hero-exp.stalled {
  filter: grayscale(1);
  opacity: .7;
}
.hub .hero-namecard .hero-stall {
  margin: 2px 0 0;
  font-size: calc(var(--portrait-size)*.052);
  line-height: 1.3;
  font-weight: 700;
  color: #b05048;
}
@supports (width: min(1px, 2px)) {
  .hub .hero-namecard .hero-stall {
    font-size: clamp(9px, calc(var(--portrait-size)*.052), 12px);
  }
}
.topbar.tb-compact .page-name,
.topbar.tb-compact .top-actions .settings-inner span,
.topbar.tb-compact .top-actions .save-inner span,
.topbar.tb-compact .friend-inner span {
  display: none !important;
}
.topbar.tb-tight .resource-pills,
.topbar.tb-tight .top-actions {
  gap: 6px !important;
}
.topbar.tb-tight .resource-pill {
  padding-left: 8px !important;
  padding-right: 8px !important;
  gap: 5px !important;
}
.topbar.tb-tight .top-actions button {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
body[data-screen=tasks] main.page {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body[data-screen=tasks] .tasks-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
  width: 100%;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 14px 18px !important;
}
body[data-screen=tasks] .tasks-panel > h1 {
  font-size: 17px;
  font-size: clamp(17px, 4.2vh, 30px);
  margin: 2px 0 4px;
}
body[data-screen=tasks] .tasks-panel > p.muted {
  margin: 0 0 8px;
  font-size: 10px;
  font-size: clamp(10px, 2.6vh, 14px);
}
body[data-screen=tasks] .task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  min-height: 0;
  overflow: auto;
}
body[data-screen=tasks] .task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0;
  border: 2px solid #c0c0b0;
  background: #ffffff60;
}
body[data-screen=tasks] .task h2 {
  font-size: 12px;
  font-size: clamp(12px, 3vh, 17px);
  margin: 0;
}
.task > div > p {
  margin: 2px 0;
  font-size: 11px;
}
body[data-screen=tasks] .task .hp {
  height: 6px;
  margin: 0;
}
body[data-screen=tasks] .task-seal {
  font-size: 18px;
}
body[data-screen=tasks] .task strong {
  font-size: 12px;
  white-space: nowrap;
}
body[data-screen=tasks] .task button {
  padding: 5px 10px !important;
  min-height: 0 !important;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-height:470px) {
  body[data-screen=tasks] .tasks-panel {
    padding: 8px 12px !important;
  }
  body[data-screen=tasks] .tasks-panel > .eyebrow {
    display: none;
  }
  body[data-screen=tasks] .task {
    padding: 5px 8px;
    gap: 7px;
  }
}
html.lite body.in-battle .hud.mode-play .pb-emblem,
html.lite body.in-battle .potion-throw,
html.lite .box-wall .box-cell .box-mon,
html.lite .difficulty-art,
html.lite .mart-counter > img,
html.lite .dex-icon .dex-ball,
html.lite .trainer-portrait {
  filter: none !important;
}
html.lite .inv-item.half .inv-icon::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: #ffffff66;
}
html.lite body.in-battle .hud.mode-play .pb-move {
  box-shadow: 0 0 0 2px #0b1838 !important;
}
.tut-say .tut-line {
  font-size: 15px;
  line-height: 1.6;
  min-height: 3.2em;
}
.tut-say .tut-step {
  color: #8890a0;
  font-size: 11px;
}
.tut-coach.pack {
  bottom: calc(10px + var(--safe-bottom,0px));
  z-index: 2100;
}
.stick-base.demo .stick-knob {
  transition: transform .12s ease-out;
}
.stick-base.demo .stick-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -6px 0 0 -14px;
  background: url(/_expedition/assets/emerald/intro/starter_balls.png) 0 -120px/40px 160px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}
.tut-coach p {
  font-size: 13px;
}
.tut-coach .tut-birch {
  width: 30px;
  height: 30px;
}
@media (max-height:470px) {
  .tut-coach p {
    font-size: 12px;
  }
  .tut-coach .tut-birch {
    width: 26px;
    height: 26px;
  }
}
.tut-say .tut-line {
  font-size: 17px;
}
@media (max-height:470px) {
  .tut-say .tut-line {
    font-size: 15px;
  }
}
.run-button {
  position: absolute;
  overflow: visible !important;
  right: 22px;
  bottom: 118px;
  z-index: 6;
  width: 64px;
  height: 64px;
  padding: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  isolation: isolate;
  filter: drop-shadow(0 4px 0 #30385080);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.run-button img {
  width: 40px;
  height: 30px;
  image-rendering: pixelated;
  pointer-events: none;
}
.run-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: url(/_expedition/assets/ui/dodge-button.png) center/100% 100% no-repeat;
  image-rendering: pixelated;
  filter: grayscale(1) brightness(1.45) contrast(1.1);
}
.run-button.down {
  transform: translateY(3px);
  filter: drop-shadow(0 1px 0 #30385080);
}
.run-button.down::after {
  background-image: url(/_expedition/assets/ui/dodge-button-down.png);
  filter: hue-rotate(38deg) saturate(1.4) brightness(1.1);
}
@media (max-height:470px) and (orientation:landscape) {
  .run-button {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 100px;
  }
  .run-button img {
    width: 34px;
    height: 26px;
  }
}
.run-button::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: -18px;
  left: -18px;
  border-radius: 50%;
}
body[data-screen=tasks] .task-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 14px !important;
  font-weight: 700;
  color: #fff !important;
  background: #58a868;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 #30385055;
}
body[data-screen=tasks] .task.tier-1 .task-seal {
  background: #d89a28;
}
body[data-screen=tasks] .task.tier-2 .task-seal {
  background: #d05040;
}
body[data-screen=tasks] .task.done .task-seal {
  background: #9098a8;
}
body[data-screen=tasks] .task {
  padding: 5px 10px;
  gap: 8px;
}
body[data-screen=tasks] .task h2 {
  font-size: 12px;
  font-size: clamp(12px, 2.6vh, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-screen=tasks] .task > div > p {
  margin: 1px 0;
  font-size: 11px;
}
body[data-screen=tasks] .task-list {
  gap: 6px 10px;
}
@media (max-height:470px) {
  body[data-screen=tasks] .task {
    padding: 3px 8px;
    gap: 6px;
  }
  body[data-screen=tasks] .task-seal {
    width: 22px;
    height: 22px;
    font-size: 12px !important;
  }
  body[data-screen=tasks] .task > div > p {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
  }
  body[data-screen=tasks] .task .hp {
    height: 4px;
  }
  body[data-screen=tasks] .task-list {
    gap: 4px 8px;
  }
  body[data-screen=tasks] .task button {
    padding: 3px 8px !important;
  }
}
body[data-screen=tasks] .task.top {
  border-color: #d8a830 !important;
  background: #fff4d0a0;
  box-shadow: inset 0 0 0 1px #f8e090;
}
body[data-screen=tasks] .task.top > div > p {
  color: #b06a10;
  font-weight: 700;
}
@media (max-height:470px) and (orientation:landscape) {
  body[data-screen=tasks] .tasks-panel {
    padding: 6px 10px !important;
  }
  body[data-screen=tasks] .tasks-panel > h1 {
    font-size: 16px;
    margin: 0 0 1px;
  }
  body[data-screen=tasks] .tasks-panel > p.muted {
    font-size: 10px;
    margin: 0 0 4px;
  }
  body[data-screen=tasks] .task-list {
    gap: 3px 8px;
  }
  body[data-screen=tasks] .task {
    padding: 2px 6px;
    gap: 6px;
  }
  body[data-screen=tasks] .task h2 {
    font-size: 12px;
    line-height: 1.25;
  }
  body[data-screen=tasks] .task > div > p {
    font-size: 10px;
    line-height: 1.15;
  }
  body[data-screen=tasks] .task .hp {
    height: 3px;
    margin-top: 1px;
  }
  body[data-screen=tasks] .task-seal {
    width: 19px;
    height: 19px;
    font-size: 11px !important;
    border-width: 1px;
  }
  body[data-screen=tasks] .task strong {
    font-size: 10px;
  }
  body[data-screen=tasks] .task button {
    padding: 2px 7px !important;
    font-size: 11px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  body[data-screen=tasks] .tasks-panel > p.muted {
    display: none;
  }
}
@media (orientation:portrait) and (max-width:600px) {
  body[data-screen=tasks] .task-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
html.ui-zoomed body:not(.in-battle):not([data-screen=explore]):not([data-screen=road]):not([data-screen=intro]):not([data-screen=home]):not([data-screen=lab]):not([data-screen=lan]) {
  zoom: var(--ui-zoom,1);
  --game-height:calc(var(--app-vh, 100vh) / var(--ui-zoom,1));
  --modal-h:calc(var(--game-height) - 28px);
}
html.ui-zoomed body:not(.in-battle):not([data-screen=explore]):not([data-screen=road]):not([data-screen=intro]):not([data-screen=home]):not([data-screen=lab]):not([data-screen=lan]) .pe-watermark {
  zoom: calc(1 / var(--ui-zoom,1));
}
body[data-screen=road] .field-hud-left {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-left: var(--safe-left);
  margin-top: var(--safe-top);
  pointer-events: none;
}
body[data-screen=road] .field-hud-left .field-top {
  position: static;
  margin: 0;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  gap: 6px;
  align-items: stretch;
}
body[data-screen=road] .field-hud-left .field-team {
  position: static;
  margin: 0;
}
body[data-screen=tasks] .task-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 6px;
}
body[data-screen=tasks] .task-tab {
  position: relative;
  padding: 5px 16px !important;
  min-height: 0 !important;
  font-size: 13px;
  background: #ffffff80;
  color: #404858;
  border: 2px solid #c0c0b0;
  box-shadow: none;
}
body[data-screen=tasks] .task-tab.on {
  background: #3870b8;
  color: #fff;
  border-color: #285890;
}
body[data-screen=tasks] .task-tab .bl-dot {
  position: absolute;
  top: -4px;
  right: -4px;
}
body[data-screen=tasks] .novice-list {
  grid-template-columns: minmax(0, 1fr);
}
.novice-uid .novice-steps {
  margin: 4px 0 6px;
  line-height: 1.6;
  font-size: 13px;
}
.novice-uid .novice-steps p {
  margin: 0 0 4px;
}
.novice-uid .novice-uid-alt {
  font-size: 12px;
  opacity: .85;
}
.novice-uid .novice-uid-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 15px;
  margin-top: 6px;
}
body[data-screen=tasks] .novice-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}
body[data-screen=tasks] .novice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body[data-screen=tasks] .novice-head > h1 {
  font-size: 17px;
  font-size: clamp(17px, 4.2vh, 30px);
  margin: 2px 0 4px;
}
body[data-screen=tasks] .novice-uid-btn {
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 12px;
  white-space: nowrap;
}
body[data-screen=tasks] .novice-go {
  padding: 5px 10px !important;
  min-height: 0 !important;
  font-size: 12px;
  white-space: nowrap;
  background: #fb7299;
  color: #fff;
  border-color: #fff;
}
body[data-screen=tasks] .novice-go:disabled {
  background: #d8d8d0;
  color: #888;
}
body[data-screen=tasks] .task.novice {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
body[data-screen=tasks] .task.novice .novice-tip {
  color: #687080;
}
body[data-screen=tasks] .task.soon {
  opacity: .7;
}
body[data-screen=tasks] .novice-devs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}
.novice-shots .shot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
  max-height: 38vh;
  overflow: auto;
}
.novice-shots .shot-slot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border: 2px solid #b8ae84;
  background: #fffdf0;
  font-size: 12px;
  min-width: 0;
}
.novice-shots .shot-file {
  max-width: 100%;
  font-size: 12px;
  min-height: 30px;
}
.novice-shots .shot-prev img {
  display: block;
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}
body[data-screen=tasks] .novice-uid-slot {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
body[data-screen=tasks] .novice-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px !important;
  font-size: 15px;
  background: #fb7299;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 0 #c05070;
}
body[data-screen=tasks] .novice-dev.douyin {
  background: #1f2430;
  box-shadow: 0 1px 0 #000;
}
@media (max-height:470px) {
  body[data-screen=tasks] .novice-head > h1 {
    font-size: 16px;
    margin: 0 0 1px;
  }
  body[data-screen=tasks] .task-tabs {
    margin: 0 0 3px;
  }
  body[data-screen=tasks] .task-tab {
    padding: 3px 12px !important;
    font-size: 12px;
  }
}
html.kbd-open {
  height: var(--app-vh);
}
html.kbd-open #game-ui,
html.kbd-open #app {
  bottom: auto !important;
  height: calc((var(--app-vh) - var(--safe-top) - var(--safe-bottom)) / var(--kbd-zoom,1)) !important;
}
body:not(.in-battle):not([data-screen=explore]) .toast {
  top: calc(var(--safe-top,0px) + 66px);
  bottom: auto !important;
}
.recall-button {
  position: absolute;
  right: 100px;
  bottom: 126px;
  z-index: 6;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  border: 3px solid #283040 !important;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff 0,
      #fff 18%,
      #ffe8e8 19%,
      #ffe8e8 60%,
      #e0a8a8 61%) !important;
  box-shadow: 0 3px 0 #18203080 !important;
  font: 700 13px/1 inherit;
  color: #283040;
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.recall-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #18203080 !important;
}
@media (max-height:470px) and (orientation:landscape) {
  .recall-button {
    width: 42px;
    height: 42px;
    right: 82px;
    bottom: 106px;
    font-size: 12px;
  }
}
:root {
  --modal-w: 560px;
  --modal-h:calc(var(--game-height,var(--app-vh, 100vh)) - 28px);
}
@supports (width: min(1px, 2px)) {
  :root {
    --modal-w: min(560px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 32px));
  }
}
.dialog-back {
  z-index: 1000 !important;
  padding: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.toast {
  z-index: 1100 !important;
}
.dialog,
.exp-battle-result > .panel,
.evolution-card.panel,
.capture-card.panel {
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
  max-height: var(--modal-h) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  animation: none !important;
}
.dialog h2,
.exp-battle-result h1,
.exp-battle-result h2,
.evolution-card h2,
.capture-card h2 {
  font-size: 22px !important;
  line-height: 1.25;
  margin: 2px 0 10px !important;
}
.dialog .eyebrow {
  margin: 0 0 4px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.exp-battle-result {
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.exp-battle-result > .panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 8px;
}
.exp-battle-result > .panel p {
  margin: 0 0 6px;
}
@media (max-height:470px) {
  .dialog,
  .exp-battle-result > .panel,
  .evolution-card.panel,
  .capture-card.panel {
    padding: 12px 16px !important;
  }
  .dialog h2,
  .exp-battle-result h1,
  .exp-battle-result h2,
  .evolution-card h2,
  .capture-card h2 {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }
  .dialog p {
    font-size: 13px;
  }
}
body.in-battle.battle-intro .hud.mode-play .play-bar,
body.in-battle.battle-intro .hud.mode-play .pb-stick,
body.in-battle.battle-intro .ball-select,
body.in-battle.battle-intro .wild-dock,
body.in-battle.battle-over .hud.mode-play .play-bar,
body.in-battle.battle-over .hud.mode-play .pb-stick,
body.in-battle.battle-over .ball-select,
body.in-battle.battle-over .wild-dock,
body.in-battle.battle-intro .battle-mega,
body.in-battle.battle-over .battle-mega {
  display: none !important;
}
.settings-button {
  display: flex;
  align-items: center;
}
.settings-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
@media (max-height:470px) {
  .settings-inner span {
    display: none;
  }
}
.settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.set-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.set-tabs::-webkit-scrollbar {
  display: none;
}
.set-tab {
  flex: 0 0 auto;
  padding: 5px 12px !important;
  min-height: 0 !important;
  font-size: 13px;
}
.set-tab.on {
  background: #f0d898 !important;
  box-shadow: inset 0 -3px #c85848 !important;
}
.set-body {
  min-height: 0;
}
.set-h {
  margin: 10px 0 4px;
  font-size: 15px;
  color: #b05048;
}
.set-h:first-child {
  margin-top: 2px;
}
.set-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 7px 0;
  border-bottom: 1px solid #40485822;
}
.set-row > :last-child:not(.grow) {
  margin-left: auto;
}
.set-row .grow {
  flex: 1 1 160px;
  min-width: 0;
}
.set-row b {
  display: block;
}
.set-row small {
  display: block;
  color: #687080;
  font-size: 12px;
  line-height: 1.35;
}
.set-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.set-slider input {
  width: 220px;
  width: min(220px, 34vw);
  accent-color: #c85848;
}
.set-value {
  min-width: 42px;
  text-align: right;
  font-weight: 700;
}
.switch {
  min-width: 56px;
  padding: 4px 10px !important;
  min-height: 0 !important;
}
.switch.on {
  background: #f0d898 !important;
  color: #584838;
}
.set-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 4px 12px !important;
  min-height: 0 !important;
  font-size: 13px;
}
.chip.on {
  background: #f0d898 !important;
  box-shadow: inset 0 -3px #c85848 !important;
}
.settings .sub {
  margin: 2px 0 6px;
  font-size: 13px;
  color: #586070;
  line-height: 1.5;
}
.settings .center {
  text-align: center;
}
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}
.keys span {
  font-weight: 700;
  padding: 1px 6px;
  background: #e0e4ec;
  border: 1px solid #9098b0;
  border-radius: 3px;
  justify-self: start;
}
.keys small {
  color: #586070;
}
.about-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #c85848;
  margin: 4px 0;
}
.dialog .dialog-actions {
  position: sticky;
  bottom: -16px;
  margin: 12px -20px -16px;
  padding: 8px 20px 12px;
  background: linear-gradient(#f0f0e000, #f0f0e0 30%);
}
@media (max-height:470px) {
  .dialog .dialog-actions {
    bottom: -12px;
    margin: 8px -16px -12px;
    padding: 6px 16px 10px;
  }
}
.dialog .credits {
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  overflow: auto;
  padding-right: 6px;
}
body.in-battle.battle-intro .hud-controls {
  visibility: hidden !important;
}
.crash-detail {
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 10px;
  line-height: 1.35;
  background: #eceadc;
  padding: 6px;
  margin: 6px 0 0;
  color: #404858;
}
.seg {
  display: flex;
  gap: 4px;
  flex: none;
}
.seg-btn {
  min-width: 48px;
  padding: 4px 10px !important;
  min-height: 0 !important;
}
.seg-btn.on {
  background: #f0d898 !important;
  color: #584838;
}
.settings .set-tabs {
  flex-wrap: wrap;
  row-gap: 6px;
}
.settings .set-tab {
  padding-left: 9px !important;
  padding-right: 9px !important;
}
.dialog-actions .set-exit {
  margin-right: auto;
}
.exit-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exit-opts .sub {
  margin: 0;
  font-size: 13px;
  color: #586070;
}
.exit-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px !important;
  min-height: 0 !important;
}
.exit-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exit-inner b {
  font-size: 15px;
}
.exit-inner small {
  font-size: 12px;
  font-weight: 400;
  color: #586070;
  line-height: 1.4;
}
@media (max-height:470px) {
  .exit-opts {
    gap: 5px;
  }
  .exit-opt {
    padding: 3px 12px !important;
  }
  .exit-inner {
    gap: 0;
  }
  .exit-inner b {
    font-size: 14px;
  }
  .exit-inner small {
    font-size: 11px;
    line-height: 1.3;
  }
}
.user-pill[role=button] {
  cursor: pointer;
}
.user-pill[role=button]:active {
  transform: translateY(2px);
}
@media (orientation:portrait) {
  .topbar .user-pill {
    display: flex;
  }
}
.profile {
  display: flex;
  flex-direction: column;
}
.pf-main,
.pf-side {
  min-width: 0;
}
@media (orientation:landscape) and (min-width:560px) {
  .profile-back .dialog {
    width: calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 32px) !important;
    max-width: 860px !important;
  }
  .profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }
}
.pf-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pf-figure {
  flex: none;
  width: 92px;
  height: 108px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #c8d8e0;
  box-shadow: inset 0 0 0 2px #98a8c0;
  overflow: hidden;
}
.pf-portrait {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}
.pf-id {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-id > small {
  font-size: 12px;
  color: #687080;
}
.pf-name {
  font-size: 20px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-net {
  font-size: 12px;
  color: #404858 !important;
  font-weight: 700;
}
.pf-net::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  background: #58b878;
  vertical-align: 1px;
}
.pf-net.fair {
  color: #986818;
}
.pf-net.fair::before {
  background: #e0b040;
}
.pf-net.poor,
.pf-net.offline {
  color: #b04838;
}
.pf-net.poor::before,
.pf-net.offline::before {
  background: #d05848;
}
.pf-level {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  margin-top: 2px;
}
.pf-level .hero-exp {
  flex: 1;
  min-width: 60px;
  max-width: 150px;
}
.pf-level small {
  font-size: 11px;
  color: #687080;
}
.pf-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.pf-acts button {
  padding: 4px 10px !important;
  min-height: 0 !important;
  font-size: 13px;
}
.pf-team {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.pf-mon {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.pf-mon small {
  font-size: 11px;
  color: #586070;
}
.pf-pic {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8d8e0;
  overflow: hidden;
}
.pf-mon.lead .pf-pic {
  background: #f0d898;
  box-shadow: inset 2px 0 #c86858;
}
.pf-mon.empty .pf-pic {
  background: #d8dce4;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 4px 6px;
}
.pf-stat {
  display: flex;
  flex-direction: column;
  padding: 3px 8px;
  background: #eceadc;
  box-shadow: inset 0 0 0 1px #c8c8b8;
  min-width: 0;
}
.pf-stat small {
  font-size: 11px;
  color: #687080;
}
.pf-stat b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-stat.wide {
  grid-column: span 2;
}
.profile .set-row {
  padding: 4px 0;
  border-bottom: 0;
}
@media (max-height:470px) {
  .pf-figure {
    width: 72px;
    height: 84px;
  }
  .pf-name {
    font-size: 17px;
  }
  .pf-pic {
    height: 38px;
  }
}
.settings-back .dialog,
.profile-back .dialog {
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
}
.settings-back .settings {
  flex: 1 1 auto;
  min-height: 0;
}
.settings-back .set-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.profile-back .profile {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.settings-back .dialog-actions,
.profile-back .dialog-actions {
  flex: none;
  background: #f8f8e8 !important;
  border-top: 2px solid #c8c8b8;
}
@media (orientation:landscape) {
  .settings-back .settings {
    flex-direction: row;
    gap: 0 12px;
  }
  .settings-back .set-tabs {
    flex: none;
  }
  .settings-back .set-body {
    flex: 1 1 0;
    min-width: 0;
  }
  .settings-back .set-tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
  }
  .settings-back .set-tab {
    text-align: left;
  }
  .settings-back .set-tab.on {
    box-shadow: inset 3px 0 #c85848 !important;
  }
}
@media (max-height:400px) {
  .dialog > .eyebrow {
    display: none;
  }
}
@media (max-height:470px) {
  .settings-back .dialog h2,
  .profile-back .dialog h2 {
    margin-bottom: 4px !important;
  }
  .settings-back .dialog-actions,
  .profile-back .dialog-actions {
    padding-top: 5px;
    padding-bottom: 6px;
    margin-top: 6px;
  }
  .settings-back .dialog-actions button,
  .profile-back .dialog-actions button {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: 0 !important;
  }
  .settings-back .set-tabs {
    gap: 3px;
  }
  .settings-back .set-tab {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 12px;
  }
}
.sync-diff {
  margin: 6px 0;
  border: 1px solid #c8c0a8;
  font-size: 12px;
  text-align: left;
}
.sync-diff-row {
  display: grid;
  grid-template-columns: minmax(84px, .8fr) 1fr 1fr;
  gap: 8px;
  padding: 2px 8px;
}
.sync-diff-row + .sync-diff-row {
  border-top: 1px solid #e4dcc4;
}
.sync-diff-row.head {
  background: #f0e8d0;
  font-weight: 700;
}
.online-hold-exit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.online-hold-exit[hidden] {
  display: none;
}
.online-hold-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.online-hold-btns [hidden] {
  display: none;
}
.online-hold-card .online-hold-left {
  color: #b04838;
  font-weight: 700;
}
@media (max-height:470px) and (orientation:landscape) {
  .top-actions .settings-button,
  .top-actions .notice-button {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .top-actions .settings-inner .ui-pixel-icon {
    width: 22px;
    height: 22px;
  }
}
.exp-battle-result > .panel.victory-card {
  --vw: 560px;
  width: var(--vw) !important;
  max-width: none !important;
  height: calc(var(--vw)*.5222);
  padding: calc(var(--vw)*.19) calc(var(--vw)*.09) calc(var(--vw)*.085) !important;
  box-sizing: border-box;
  justify-content: center;
  gap: 4px;
  background: url(/_expedition/assets/ui/victory-frame.png) center/100% 100% no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  image-rendering: pixelated;
}
@supports (width: min(1px, 2px)) {
  .exp-battle-result > .panel.victory-card {
    --vw: min(560px,92vw,calc((var(--app-vh, 100vh) - 24px)*1.9));
  }
}
.exp-battle-result > .panel.victory-card h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.exp-battle-result > .panel.victory-card p {
  margin: 0;
  color: #5a3a24 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
@supports (width: min(1px, 2px)) {
  .exp-battle-result > .panel.victory-card p {
    font-size: max(13px, calc(var(--vw)*.032));
  }
}
.exp-battle-result > .panel.victory-card button {
  align-self: center;
  margin: calc(var(--vw)*.02) 0 0 !important;
  padding: 6px 22px !important;
  font-size: 13px;
}
@supports (width: min(1px, 2px)) {
  .exp-battle-result > .panel.victory-card button {
    font-size: max(13px, calc(var(--vw)*.03));
  }
}
.redeem-mon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin: 0 auto 6px;
  max-width: 220px;
  background:
    radial-gradient(
      ellipse 22% 7% at 50% 86%,
      #30385038 0 98%,
      transparent 100%),
    linear-gradient(#eef4ff, #dfe8f4);
  border: 2px solid #9098b0;
}
@media (max-height:420px) {
  .redeem-mon {
    height: 84px;
  }
}
.pf-stat.time {
  background: #e6f0fa;
  box-shadow: inset 0 0 0 1px #9ab8d8;
}
.pf-stat.time b {
  color: #2a4a7a;
}
.pf-stat.shiny b {
  color: #b06a00;
}
.pf-stat.legend b {
  color: #7a3aa0;
}
.pf-show-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-show-set {
  margin: 0 0 0 auto !important;
  min-height: 0 !important;
  padding: 1px 10px !important;
  font-size: 12px;
}
.pf-show {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.pf-show-mon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  background: #f6f3e6;
  box-shadow: inset 0 0 0 1px #c8c8b8;
  min-width: 0;
}
.pf-show-mon.shiny {
  background: #fff4d8;
  box-shadow: inset 0 0 0 2px #e8b040;
}
.pf-show-mon small {
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pf-show-mon .pf-pic,
.sc-mon .pf-pic {
  display: block;
  width: 52px;
  height: 52px;
}
.pf-show-empty {
  margin: 0;
  font-size: 12px;
}
.sc-pick .sub {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}
.sc-count {
  font-weight: 700;
  color: #b05030;
}
.sc-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 14px;
}
.sc-more {
  margin: 4px 0 0;
  font-size: 12px;
  text-align: center;
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
  max-height: 420px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 2px;
}
.sc-mon {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 4px 2px !important;
  background: #f6f3e6 !important;
  border: 2px solid #c8c8b8 !important;
  border-image: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.sc-mon.shiny {
  background: #fff4d8 !important;
}
.sc-mon.on {
  border-color: #c04838 !important;
  background: #ffe8e0 !important;
}
.sc-mon small {
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #404858;
}
.sc-no {
  position: absolute;
  top: 2px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #c04838;
  color: #fff;
  font: 700 10px/16px sans-serif;
  font-style: normal;
  text-align: center;
}
.sc-no:empty {
  display: none;
}
.key-cap {
  min-width: 72px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .5px;
}
.key-cap.custom {
  color: #2a4a9a !important;
}
.key-cap.wait {
  animation: keywait .8s steps(2) infinite;
  color: #c05028 !important;
}
@keyframes keywait {
  50% {
    opacity: .5;
  }
}
@media (orientation:landscape) and (min-width:560px) {
  .profile-back .dialog {
    max-width: 1040px !important;
  }
  .profile {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  }
}
.other-profile .road-runs-list {
  margin-top: 6px;
}
.profile-back .dialog-actions {
  gap: 8px;
}
.profile-back .dialog-actions .pf-rename, .profile-back .dialog-actions .pf-look, .profile-back .dialog-actions .pf-account, .profile-back .dialog-actions .pf-show-set {
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 7em;
  padding: 6px 12px !important;
  font-size: 14px !important;
  font-weight: 700;
}
.profile-back .dialog-actions .pf-show-set {
  margin-right: 0 !important;
}
.profile-back .dialog-actions .set-exit {
  margin-right: auto !important;
}
@media (max-height:470px) {
  .profile-back .dialog-actions .pf-rename, .profile-back .dialog-actions .pf-look, .profile-back .dialog-actions .pf-account, .profile-back .dialog-actions .pf-show-set {
    font-size: 12px !important;
    padding: 4px 8px !important;
    min-width: 5.5em;
  }
}
.pv-tip {
  margin: 0 0 8px;
}
.pv-edit .pv-item {
  position: relative;
  cursor: pointer;
  outline: 2px dashed transparent;
  outline-offset: 1px;
  transition: filter .12s;
}
.pv-edit .pv-item:hover {
  outline-color: #7a90b8;
}
.pv-edit .pv-item.pv-off {
  filter: grayscale(1);
  opacity: .5;
}
.pv-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  padding: 0 5px;
  border-radius: 7px;
  background: #3f9448;
  color: #fff;
  pointer-events: none;
}
.pv-off > .pv-badge {
  background: #808080;
}
.pv-edit .pv-item.pv-lock {
  cursor: default;
}
.pv-edit .pv-item.pv-lock:hover {
  outline-color: transparent;
}
.pv-lock > .pv-badge {
  background: #6b7fa6;
}
.pv-block {
  display: block;
}
.profile-back .profile {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
@media (orientation:landscape) and (min-width:560px) {
  .profile-back .profile {
    overflow: hidden !important;
    align-items: stretch !important;
    grid-template-rows: minmax(0, 1fr);
    padding-right: 0;
  }
  .profile-back .pf-main,
  .profile-back .pf-side {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
  }
  .profile-back .profile {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
  }
  .profile-back .pf-main {
    flex: .9 1 0;
  }
  .profile-back .pf-side {
    flex: 1.1 1 0;
    margin-left: 20px;
  }
}
* {
  scrollbar-width: thin;
  scrollbar-color: #8890a8 #e8e8d8;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #e8e8d8;
  box-shadow: inset 0 0 0 1px #c8c8b8;
}
::-webkit-scrollbar-thumb {
  background: #8890a8;
  border: 2px solid #e8e8d8;
  box-shadow: inset -2px -2px 0 #687080;
}
::-webkit-scrollbar-thumb:hover {
  background: #687080;
}
::-webkit-scrollbar-corner {
  background: #e8e8d8;
}
.profile-back .dialog-actions button,
.settings-back .dialog-actions button {
  min-height: 0 !important;
  min-width: 6.5em;
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 700;
}
.pf-mon .pf-mon-name {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #404858;
  font-weight: 700;
}
@media (orientation:landscape) and (min-width:560px) {
  .profile-back .profile {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-items: flex-start !important;
  }
  .profile-back .pf-main,
  .profile-back .pf-side {
    overflow: visible !important;
    min-height: auto !important;
  }
}
.pf-show-mon .pf-pic,
.sc-mon .pf-pic {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 52px;
  height: 46px !important;
  overflow: hidden;
}
@media (max-height:470px) {
  .pf-show-mon .pf-pic {
    height: 38px !important;
  }
}
.pvp-rules p {
  margin: 4px 0;
}
.pvp-rules .pvp-bad {
  color: #d03030;
  font-weight: bold;
}
.ab-devs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
}
.ab-dev {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px !important;
  min-height: 0 !important;
  text-align: left;
  background: #fffbec;
  border: 2px solid #c8a050;
  box-shadow: 0 2px 0 #c8a05055;
  cursor: pointer;
}
.ab-face {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #c8a050;
  background: #fff;
}
.ab-face.pixel {
  image-rendering: pixelated;
}
.ab-who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  line-height: 1.3;
}
.ab-dev b {
  font-size: 14px;
  color: #303850;
}
.ab-dev small {
  font-size: 11px;
  color: #7a7060;
}
.ab-dev .ab-go {
  font-size: 11px;
  color: #d0587a;
  font-weight: 700;
}
.ab-dev:hover {
  background: #fff4d0;
}
.ab-follow {
  margin: 4px 0 2px;
  font-size: 12px;
  text-align: left;
}
.ab-thanks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ab-group > b {
  display: block;
  font-size: 12px;
  color: #8a6a40;
  margin-bottom: 3px;
}
.ab-names {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 4px;
}
.ab-name {
  font-size: 11.5px;
  line-height: 18px;
  padding: 0 6px;
  background: #f6f0dc;
  border: 1px solid #d8ccaa;
  color: #404858;
  white-space: nowrap;
}
.ab-wait {
  margin: 0;
  font-size: 12px;
  color: #8a8478;
}
.set-body .ab-h {
  margin-top: 6px;
}
.ab-thanks {
  margin-bottom: 4px;
}
@media (max-height:470px) {
  .ab-face {
    width: 34px;
    height: 34px;
  }
  .ab-dev {
    padding: 4px 8px !important;
  }
  .ab-dev b {
    font-size: 13px;
  }
}
.pf-mon[role=button] {
  cursor: pointer;
}
.pf-mon[role=button]:hover {
  filter: brightness(1.06);
}
.mon-info {
  width: 560px;
  width: min(560px, 86vw);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.mi-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.mi-head h2 {
  margin: 0;
}
.mi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0;
}
.mi-row {
  border: 2px solid #c9b98f;
  border-radius: 6px;
  padding: 3px 8px;
  background: #fffdf3;
}
.mi-row small {
  display: block;
  opacity: .7;
  font-size: 11px;
}
.mi-ab {
  margin: 2px 0 6px;
  font-size: 12px;
}
.mi-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mi-stat {
  position: relative;
  border: 2px solid #c9b98f;
  border-radius: 6px;
  padding: 3px 8px;
  background: #fffdf3;
  overflow: hidden;
}
.mi-stat small {
  opacity: .7;
  font-size: 11px;
  margin-right: 6px;
}
.mi-stat b.up {
  color: #c0392b;
}
.mi-stat b.down {
  color: #2e6fb7;
}
.mi-stat i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #5aa469;
}
.mi-stat em {
  float: right;
  font-style: normal;
  font-size: 11px;
  opacity: .65;
  margin-top: 3px;
}
.mi-moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
@media (max-height:420px) {
  .mi-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .mi-stat em {
    float: none;
    display: block;
  }
}
.mi-row b,
.mi-row small {
  overflow-wrap: anywhere;
}
.mi-head > div:last-child {
  min-width: 0;
}
.mi-head h2 {
  overflow-wrap: anywhere;
}
.mi-statrows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 4px;
}
.mi-statrow {
  grid-template-columns: 3em 2.8em minmax(0, 1fr) 4.6em;
  gap: 8px;
  margin: 0;
}
.mi-statrow small {
  color: #b05048;
  font-size: 12px;
}
.mi-statrow b {
  color: #404858;
  font-size: 13px;
}
.mi-statrow b.up {
  color: #c0392b;
}
.mi-statrow b.down {
  color: #2e6fb7;
}
.mi-statrow .stat-bar {
  height: 7px;
  background: #d8d0b8;
}
.mi-statrow em {
  font-style: normal;
  font-size: 11px;
  opacity: .65;
  text-align: right;
  white-space: nowrap;
}
.mega-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
  max-height: 320px;
  max-height: min(52vh, 320px);
  overflow: auto;
  padding: 2px;
}
.mega-pick-btn {
  padding: 4px !important;
  min-height: 0 !important;
}
.mega-pick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mega-pick-item img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.mega-pick-item small {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
.profile-back .remote-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-back .remote-card > .profile {
  flex: 1 1 auto;
  min-height: 0;
}
.profile-back .remote-card > :not(.profile) {
  flex: none;
}
.gp-back .dialog.gp-panel {
  --modal-w: 720px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .gp-back .dialog.gp-panel {
    --modal-w: max(min(720px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 240px),calc(200vh - 300px)),min(480px,calc(100vw - 28px)));
  }
}
.gp-back .gp-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.gp-panel > .round-close {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  margin: 0;
}
.gp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 44px;
  flex: none;
}
.gp-title {
  flex: none;
  min-width: 0;
}
.gp-head-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.gp-head h2 {
  margin: 0;
}
.gp-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  color: #8a6a3a;
}
.gp-msg {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 6px;
  padding-left: 10px;
  border-left: 2px dashed #d8cdb4;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  max-height: 3em;
  overflow: auto;
  color: #5a4a36;
}
.gp-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5a4a36;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
}
.gp-hint b {
  color: #c0392b;
}
.gp-hint b.warn {
  color: #b4532a;
  font-weight: 600;
}
.gp-grid {
  flex: 1;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: 2px;
}
.gp-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  max-height: 46vh;
}
.gp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: 4px;
  background: #fffdf6;
  border: 2px solid #cdbf9f;
  box-shadow: inset 0 -3px 0 #e9dfc8;
  color: #3b2a18;
  font: inherit;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}
.gp-card.item {
  cursor: default;
}
.gp-card b {
  font-size: 13px;
  line-height: 1.25;
  color: #3b2a18;
  overflow-wrap: anywhere;
}
.gp-card small {
  font-size: 11px;
  color: #7a6a55;
}
.gp-card:not(.item):hover {
  border-color: #a8946a;
}
.gp-card.on {
  border-color: #e0a21b;
  background: #fff3c4;
  box-shadow: inset 0 -3px 0 #f0d58a, 0 0 0 2px #f6c445;
}
.gp-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 64px;
  overflow: hidden;
}
.gp-pic .item-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  margin-bottom: 10px;
}
.gp-shiny {
  font-style: normal;
  color: #d68910;
}
.gp-ball {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #7a6a55;
}
.gp-ball .item-icon {
  width: 16px;
  height: 16px;
}
.gp-check {
  display: none;
  position: absolute;
  top: 3px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #e0a21b;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  border: 2px solid #9a6a0c;
}
.gp-card.on .gp-check {
  display: block;
}
.gp-cur-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  image-rendering: pixelated;
  object-fit: contain;
}
.gp-cur-img svg,
.gp-cur-img img {
  width: 40px;
  height: 40px;
}
.gp-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex: none;
}
.gp-go:disabled {
  opacity: .5;
  filter: grayscale(.4);
}
.gp-over {
  z-index: 1100 !important;
}
.gp-back .dialog.gp-panel {
  min-height: 300px;
  min-height: min(300px, calc(100vh - 24px));
}
.gp-panel.many .gp-grid {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.gp-panel.many .gp-pic {
  height: 48px;
}
.gp-panel.many .gp-card {
  padding: 4px 2px;
}
.gp-panel.many .gp-card b {
  font-size: 12px;
}
.gp-panel.many .gp-ball {
  font-size: 0;
  gap: 0;
}
.gp-panel.many .gp-ball .item-icon {
  width: 14px;
  height: 14px;
}
.gp-detail .gp-note {
  display: block;
  margin-top: 4px;
  color: #6a7385;
  font-size: 12px;
}
.gift-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
  image-rendering: pixelated;
}
.mail-gift {
  width: 26px;
  height: 26px;
  margin: -3px 0;
}
.mail-gift.big {
  width: 34px;
  height: 34px;
  margin: -6px 4px -6px 0;
}
@media (max-height:460px) {
  .gp-back .gp-panel {
    gap: 5px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .gp-head-icon {
    width: 36px;
    height: 36px;
  }
  .gp-head h2 {
    font-size: 20px;
  }
  .gp-pic {
    height: 42px;
  }
  .gp-pic .item-icon,
  .gp-cur-img,
  .gp-cur-img svg,
  .gp-cur-img img {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }
  .gp-card {
    padding: 4px 3px;
  }
  .gp-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
  }
  .gp-msg {
    max-height: 3em;
    font-size: 12px;
  }
}
.shiny-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px !important;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  animation: shiny-in .4s steps(4);
}
.shiny-banner b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  line-height: 1.25;
  color: #b06a00;
}
.shiny-banner small {
  display: block;
  font-size: 13px;
  color: #4a4a3a;
}
.shiny-banner-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 52px;
  height: 48px;
  overflow: hidden;
  flex: none;
}
.shiny-banner-star {
  font-style: normal;
  color: #f0b020;
  text-shadow: 1px 1px 0 #8a5a00;
  animation: shiny-blink .8s steps(2) infinite;
}
.shiny-banner-star.r {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 12px;
  animation-delay: .4s;
}
.shiny-banner.out {
  opacity: 0;
  transition: opacity .5s steps(3);
}
@keyframes shiny-in {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}
@keyframes shiny-blink {
  50% {
    opacity: .25;
  }
}
@media (max-height:460px) {
  .shiny-banner {
    top: 52px;
  }
  .shiny-banner b {
    font-size: 15px;
  }
  .shiny-banner-pic {
    width: 42px;
    height: 40px;
  }
}
.gp-back .dialog.gp-panel.gp-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 24px);
}
.gp-intro .gp-head {
  padding-right: 44px;
}
.gp-intro-icon {
  animation: gp-bob 1.2s steps(2) infinite;
}
.gp-intro-icon.pop {
  animation: gp-popopen .28s steps(3);
}
@keyframes gp-bob {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes gp-popopen {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(-6deg);
  }
  100% {
    transform: scale(1.15);
  }
}
.gp-intro-msg {
  flex: 1 1 auto;
  min-height: 3em;
  overflow: auto;
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.7;
  padding: 8px 12px;
  background: #fffdf6;
  border: 2px solid #e2d6bd;
  overflow-wrap: anywhere;
}
.gp-intro-sum {
  color: #8a6a3a;
}
.gp-actions.center {
  justify-content: center;
}
.gp-mini-back {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081b3059;
  padding: 12px;
}
.gp-mini.panel {
  width: 100%;
  width: min(360px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 12px 14px !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gp-mini-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.gp-mini-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 64px;
  height: 60px;
  flex: none;
  overflow: hidden;
  background: #fffdf6;
  border: 2px solid #e2d6bd;
}
.gp-mini-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gp-mini-name {
  font-size: 17px;
}
.gp-mini-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.gp-mini-chips span {
  font-size: 11px;
  padding: 1px 5px;
  background: #eef4e4;
  border: 1px solid #c9d8b4;
}
.gp-mini-chips span.shiny {
  background: #fff3c4;
  border-color: #e0c060;
  color: #9a6a00;
}
.gp-mini .type-row {
  gap: 4px;
}
.gp-mini-ab {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}
.gp-mini-ab b {
  color: #a33;
  margin-right: 6px;
}
.gp-mini-ab small {
  color: #6a6a5a;
}
.gp-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px 10px;
  font-size: 11px;
}
.gp-mini-stats > span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 4px;
}
.gp-mini-stats > span > i {
  grid-column: 1/-1;
  height: 4px;
  background: #dfe3ea;
  display: block;
}
.gp-mini-stats > span > i > i {
  display: block;
  height: 100%;
  background: #6fae6f;
}
.gp-mini-stats > span > b {
  text-align: right;
}
.gp-mini-stats .tot {
  grid-column: 1/-1;
  display: flex;
  gap: 6px;
  border-top: 1px dashed #cbbf9f;
  padding-top: 2px;
}
.gp-mini .gp-note {
  color: #8a8a7a;
  font-size: 11px;
  margin: 0;
}
.gp-mini .gp-actions button {
  min-width: 90px;
}
@media (max-height:460px) {
  .gp-intro-msg {
    font-size: 13px;
    line-height: 1.55;
    padding: 6px 10px;
  }
  .gp-back .dialog.gp-panel.gp-intro {
    gap: 6px;
  }
}
.gp-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.gp-stage > .gp-panel {
  position: relative;
  z-index: 1;
}
.gp-deco {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 300px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -46%);
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
  animation: gp-deco-in .35s steps(4);
}
.gp-deco.burst {
  animation: gp-deco-burst .5s steps(5);
}
@keyframes gp-deco-in {
  from {
    opacity: 0;
    transform: translate(-50%, -44%) scale(.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -46%);
  }
}
@keyframes gp-deco-burst {
  0% {
    transform: translate(-50%, -46%) scale(1);
  }
  40% {
    transform: translate(-50%, -48%) scale(1.08);
    filter: brightness(1.3);
  }
  100% {
    transform: translate(-50%, -46%) scale(1);
  }
}
.gp-panel:not(.many) .gp-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 120px));
  justify-content: center;
}
.gp-panel.done .gp-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 120px));
  justify-content: center;
  align-content: center;
}
.gp-panel.done .gp-head {
  justify-content: center;
  padding-right: 0;
}
.pf-rk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.pf-rk-head small {
  color: #5a6070;
  font-size: 12px;
}
.pf-rk-none {
  margin: 2px 0 6px;
}
.pf-hons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 6px 0 2px;
  align-items: center;
}
.pf-hon {
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-hon.hall {
  background: #f3d98a;
  color: #5a4300;
  border: 1px solid #c9a227;
}
.pf-hon.rank {
  background: #dfe7f4;
  color: #2a3f66;
  border: 1px solid #9fb0cf;
}
.pf-hons .pf-more {
  margin-left: 2px;
}
.pf-hon-none {
  margin: 4px 0 0;
  font-size: 12px;
}
.pf-hon.more {
  background: #fff;
  color: #2a3f66;
  border: 1px solid #6b7fa6;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.pf-hon.more:hover {
  background: #eef2fa;
}
.pf-rk-line {
  display: block;
  color: #3a4050;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 2px;
}
.profile .pf-stats.pf-dense {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
  gap: 4px !important;
}
.profile .pf-dense .pf-stat {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  padding: 3px 7px !important;
  min-height: 0 !important;
}
.profile .pf-dense .pf-stat.wide {
  grid-column: auto !important;
}
.profile .pf-dense .pf-stat small {
  white-space: nowrap;
}
.profile .set-h {
  margin: 8px 0 4px !important;
  line-height: 22px;
}
.profile .pf-main > .set-h:first-of-type {
  margin-top: 6px !important;
}
.profile .pf-h-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile .pf-h-row .pf-more {
  margin-left: auto;
  padding: 0 8px !important;
  line-height: 20px;
  font-size: 11px !important;
}
.profile .road-runs-list {
  margin-top: 4px !important;
  gap: 4px;
}
.profile .rr-row {
  padding: 2px 8px !important;
  gap: 8px;
  border-width: 1px 1px 1px 4px;
}
.profile .rr-main {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}
.profile .rr-main b {
  font-size: 14px;
  white-space: nowrap;
}
.profile .rr-main small {
  flex: 1;
  min-width: 0;
}
.profile .rr-no {
  min-width: 0;
}
.profile .rr-side {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.profile .pf-rk {
  margin: 0;
}
.profile .pf-rk-head {
  margin: 0 0 2px;
}
.profile .pf-h-row .pf-more,
.profile .pf-h-row .small-btn {
  min-height: 0 !important;
  height: 22px;
  padding: 0 8px !important;
  line-height: 18px !important;
  font-size: 11px !important;
  border-width: 2px !important;
  box-shadow: none !important;
}
.profile .pf-dense .pf-stat.time {
  grid-column: span 2 !important;
  flex-wrap: nowrap;
}
.pf-face-tap {
  cursor: pointer;
}
.pf-face-tap:hover {
  filter: brightness(1.06);
}
.pv-mondetail {
  margin: 4px 0 2px;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  align-items: baseline;
}
.pv-edit .pf-stat.pv-item {
  padding-right: 46px !important;
  position: relative;
}
.pv-edit .pv-mondetail.pv-item {
  padding-right: 46px !important;
}
.profile .pf-main .set-h {
  margin: 12px 0 6px !important;
}
.profile .pf-main .pf-hons {
  gap: 6px 8px;
  margin: 10px 0 2px;
}
.profile .pf-main .pf-hon {
  font-size: 13px;
  line-height: 24px;
  padding: 0 10px;
}
.profile .pf-main .pf-team {
  gap: 8px;
}
.profile .pf-main .pf-team .pf-pic {
  height: 60px !important;
}
.profile .pf-main .pf-team .pf-mon small {
  font-size: 11px;
}
.profile .pf-main .pf-team .pf-mon .pf-mon-name {
  font-size: 12px;
}
.profile .pf-side .pf-stats.pf-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-height:470px) {
  .profile .pf-main .pf-team .pf-pic {
    height: 46px !important;
  }
}
.pf-pic {
  position: relative;
}
.pf-ball {
  display: none;
}
.profile .pf-ball.ball-face {
  display: block;
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
}
.profile .pf-mon.shiny .pf-pic {
  background: #fff0c8 !important;
  box-shadow: inset 0 0 0 2px #e8b040 !important;
}
@media (max-height:470px) {
  .profile .pf-ball.ball-face {
    display: none;
  }
}
@media (max-width:960px) {
  .profile .pf-side .pf-stats.pf-dense {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.intro-host {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: #000;
}
.gba-screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--safe-top,0px) var(--safe-right,0px) var(--safe-bottom,0px) var(--safe-left,0px);
  overflow: hidden;
}
.gba {
  --u:3px;
  position: relative;
  overflow: hidden;
  background: #000;
  image-rendering: pixelated;
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.gba.fade-out {
  transition: opacity .5s;
  opacity: 0;
}
.gba-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.gba-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.gba-pic {
  position: absolute;
  width: calc(var(--u)*64);
  height: calc(var(--u)*64);
  image-rendering: pixelated;
  transition: opacity .4s, transform .4s;
}
.gba-pic.fade-in {
  animation: gba-fade .5s both;
}
.gba-pic.fade-out {
  opacity: 0;
}
.gba-pic.pop-in {
  animation: gba-pop .45s both;
}
.gba-pic.slide {
  animation: gba-slide .25s both;
}
.gba-pic.shrink {
  transform: scale(.3) translateY(calc(var(--u)*-40));
  opacity: 0;
  transition: transform .7s, opacity .7s;
}
@keyframes gba-fade {
  from {
    opacity: 0;
  }
}
@keyframes gba-pop {
  0% {
    transform: scale(0);
    filter: brightness(4);
  }
  60% {
    transform: scale(1.1);
    filter: brightness(2);
  }
  100% {
    transform: none;
    filter: none;
  }
}
@keyframes gba-slide {
  from {
    transform: translateX(calc(var(--u)*24));
    opacity: .2;
  }
}
.gba-window {
  position: absolute;
  background: #f8f8f8;
  border: calc(var(--u)*8) solid transparent;
  border-image: url(/_expedition/assets/emerald/intro/window.png) 8 fill stretch;
  border-image-width: calc(var(--u)*8);
  box-sizing: border-box;
  color: #303030;
}
.gba-msg {
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--u)*48);
  padding: calc(var(--u)*2) calc(var(--u)*6);
}
.gba-text {
  margin: 0;
  font-size: calc(var(--u)*10.5);
  line-height: 1.45;
  color: #404040;
  text-shadow: calc(var(--u)*.7) calc(var(--u)*.7) 0 #d0d0c8;
  white-space: pre-wrap;
}
.gba-arrow {
  position: absolute;
  right: calc(var(--u)*6);
  bottom: calc(var(--u)*3);
  width: 0;
  height: 0;
  border: calc(var(--u)*3.5) solid transparent;
  border-top-color: #e05040;
  border-bottom: 0;
  animation: gba-bob .6s steps(2) infinite;
}
@keyframes gba-bob {
  50% {
    transform: translateY(calc(var(--u)*2));
  }
}
.gba-choice {
  display: flex;
  flex-direction: column;
  padding: calc(var(--u)*1) calc(var(--u)*2);
  min-width: calc(var(--u)*56);
  z-index: 3;
}
.gba-opt {
  all: unset;
  cursor: pointer;
  position: relative;
  padding: calc(var(--u)*2) calc(var(--u)*4) calc(var(--u)*2) calc(var(--u)*11);
  font-size: calc(var(--u)*10.5);
  color: #404040;
  text-shadow: calc(var(--u)*.7) calc(var(--u)*.7) 0 #d0d0c8;
  white-space: nowrap;
}
.gba-opt.on:before {
  content: "";
  position: absolute;
  left: calc(var(--u)*2);
  top: 50%;
  margin-top: calc(var(--u)*-4);
  border: calc(var(--u)*4) solid transparent;
  border-left: calc(var(--u)*5) solid #404040;
  border-right: 0;
}
.gba-naming {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  gap: calc(var(--u)*4);
  align-items: flex-start;
  padding: calc(var(--u)*6);
  box-sizing: border-box;
  background:
    repeating-linear-gradient(
      0deg,
      #9cd0f8 0,
      #9cd0f8 calc(var(--u)*2),
      #b4e0ff calc(var(--u)*2),
      #b4e0ff calc(var(--u)*4));
}
.gba-naming .gba-window {
  position: relative;
}
.naming-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u)*2);
  padding: calc(var(--u)*1);
}
.naming-pic {
  width: calc(var(--u)*56);
  height: calc(var(--u)*56);
  image-rendering: pixelated;
}
.naming-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u)*4);
  padding: calc(var(--u)*2) calc(var(--u)*5);
}
.naming-box b {
  font-size: calc(var(--u)*10);
  color: #404040;
}
.gba-name-input {
  font: inherit;
  font-size: calc(var(--u)*12);
  color: #303030;
  background: #fff;
  border: 0;
  border-bottom: calc(var(--u)*1.5) dashed #6878a8;
  padding: calc(var(--u)*1) calc(var(--u)*2);
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  width: 100%;
  box-sizing: border-box;
}
.gba-ok,
.gba-back {
  all: unset;
  cursor: pointer;
  font-size: calc(var(--u)*9);
  padding: calc(var(--u)*1.5) calc(var(--u)*5);
  background: #e8f0f8;
  border: calc(var(--u)*1) solid #8090b8;
  color: #384068;
}
.gba-back {
  background: #e8f0f8;
  border: calc(var(--u)*1) solid #8090b8;
  color: #384068;
  font-size: calc(var(--u)*10);
  padding: calc(var(--u)*2) calc(var(--u)*8);
}
.gba-ok:disabled {
  background: #c8c8c8;
  border-color: #989898;
  cursor: default;
}
.naming-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}
.naming-count {
  align-self: flex-end;
  font-size: calc(var(--u)*7);
  color: #8890a0;
}
.naming-box {
  min-height: calc(var(--u)*84);
}
.gba-choice-ok {
  margin: calc(var(--u)*3) calc(var(--u)*2) calc(var(--u)*1);
  text-align: center;
}
.gba-ok {
  align-self: flex-end;
  background: #f0a040;
  border-color: #a05818;
  color: #fff;
  font-size: calc(var(--u)*10);
  padding: calc(var(--u)*2) calc(var(--u)*10);
}
.gba-ball {
  all: unset;
  position: absolute;
  width: calc(var(--u)*32);
  height: calc(var(--u)*32);
  cursor: pointer;
  background: url(/_expedition/assets/emerald/intro/starter_balls.png) 0 0/calc(var(--u)*32) calc(var(--u)*128) no-repeat;
  image-rendering: pixelated;
}
.gba-ball.on {
  animation: gba-wobble .6s steps(1) infinite;
}
@keyframes gba-wobble {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: 0 calc(var(--u)*-32);
  }
  50% {
    background-position: 0 0;
  }
  75% {
    background-position: 0 calc(var(--u)*-64);
  }
}
.gba-hand {
  position: absolute;
  width: calc(var(--u)*32);
  height: calc(var(--u)*32);
  margin-left: calc(var(--u)*-8);
  background: url(/_expedition/assets/emerald/intro/starter_balls.png) 0 calc(var(--u)*-96)/calc(var(--u)*32) calc(var(--u)*128) no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  transition: left .12s, top .12s;
  animation: gba-bob .5s steps(2) infinite;
}
.gba-circle {
  position: absolute;
  width: calc(var(--u)*64);
  height: calc(var(--u)*64);
  background: url(/_expedition/assets/emerald/intro/starter_circle.png) 0 0/100% 100%;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gba-pop .35s both;
  z-index: 2;
}
.gba-mon,
.gba-buddy {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gba-mon .mon-sprite,
.gba-buddy .mon-sprite {
  zoom: calc(var(--zoom,1));
}
.gba-buddy {
  position: absolute;
  width: calc(var(--u)*64);
  height: calc(var(--u)*64);
  animation: gba-pop .45s both;
}
.gba-info {
  bottom: calc(var(--u)*50);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u)*2);
  padding: calc(var(--u)*1) calc(var(--u)*4);
  font-size: calc(var(--u)*10);
  z-index: 3;
}
.gba-info.left {
  left: calc(var(--u)*4);
}
.gba-info.right {
  right: calc(var(--u)*4);
}
.gba-info .type-row {
  display: flex;
  gap: 4px;
}
.gba-gens {
  right: calc(var(--u)*4);
  top: calc(var(--u)*4);
  display: flex;
  gap: calc(var(--u)*1);
  padding: calc(var(--u)*0.5) calc(var(--u)*2);
  z-index: 3;
}
.gba-gen {
  all: unset;
  cursor: pointer;
  font-size: calc(var(--u)*8);
  width: calc(var(--u)*10);
  text-align: center;
  padding: calc(var(--u)*1) 0;
  color: #606060;
}
.gba-gen.on {
  background: #f0a040;
  color: #fff;
}
.sp-screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 10px 12px;
  background-color: #203820;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  animation: sp-in .3s ease-out;
}
@supports (width: min(1px, 2px)) {
  .sp-screen {
    padding: max(10px, var(--safe-top,0px)) max(12px, var(--safe-right,0px)) max(10px, var(--safe-bottom,0px)) max(12px, var(--safe-left,0px));
  }
}
.sp-screen::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #18283cb8;
}
.sp-screen.sp-leave {
  opacity: 0;
  transition: opacity .25s;
}
@keyframes sp-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sp-panel {
  position: relative;
  width: 100%;
  width: min(1080px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  background-clip: padding-box;
  background-color: #f8f8e8;
  background-image:
    repeating-linear-gradient(
      0deg,
      #f8f8e8 0,
      #f8f8e8 4px,
      #f0f0e0 4px,
      #f0f0e0 6px);
  box-shadow: 0 4px 0 #30385080;
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
}
.sp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.sp-head .eyebrow {
  margin: 0;
}
.sp-head h1 {
  margin: 2px 0 0;
  font-size: 26px;
}
.sp-lead {
  margin: 0;
  max-width: 46%;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.45;
}
.sp-gens {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.sp-gen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 0 !important;
  padding: 4px 2px !important;
  background: #e0e8e8;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.15;
}
.sp-gen small {
  font-size: 10px;
  color: var(--muted);
}
.sp-gen b {
  font-size: 14px;
  white-space: nowrap;
}
.sp-gen.on {
  background: #f0d890;
  box-shadow: inset 0 -4px 0 #c05048, 0 4px 0 #30385080;
}
.sp-gen.on small {
  color: #805830;
}
.sp-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  gap: 12px;
}
.sp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 0 !important;
  padding: 10px 6px 8px !important;
  background: #e8f0e0;
  cursor: pointer;
  overflow: hidden;
}
.sp-card .sp-pic {
  flex: 1;
  min-height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      ellipse 46% 16% at 50% 84%,
      #88c070 0 96%,
      transparent 100%);
}
.sp-card .sp-pic .mon-sprite {
  zoom: 1.35;
}
.sp-card .sp-ball {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(
      #e85848 0,
      #e85848 45%,
      #303850 45%,
      #303850 55%,
      #f8f8f8 55%);
  box-shadow: 0 0 0 2px #303850;
  opacity: .7;
}
.sp-card.on {
  background: #fff4d0;
  box-shadow: inset 0 0 0 3px #c05048, 0 4px 0 #30385080;
}
.sp-card.on .sp-ball {
  opacity: 1;
}
.sp-card:not(.on):hover {
  background: #f0f8e8;
}
.sp-name {
  font-size: 16px;
}
.sp-card .type-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.sp-detail {
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-detail-head b {
  font-size: 18px;
}
.sp-ability {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-ability b {
  font-size: 13px;
  color: #b05048;
}
.sp-ability small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.sp-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sp-stat {
  display: grid;
  grid-template-columns: 34px 30px 1fr;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.sp-stat span {
  color: var(--muted);
}
.sp-stat b {
  text-align: right;
}
.sp-bar {
  display: block;
  height: 6px;
  background: #d0d8e0;
}
.sp-bar > i {
  display: block;
  height: 100%;
  background: #78b080;
}
.sp-stat.total {
  grid-template-columns: 34px 30px;
  border-top: 1px dashed #9098b0;
  padding-top: 3px;
}
.sp-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
}
.sp-empty b {
  color: var(--ink);
  font-size: 15px;
}
.sp-empty p {
  margin: 6px 0 0;
  font-size: 12px;
}
.sp-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.sp-ask {
  margin: 0;
  flex: 1;
  font-size: 14px;
}
.sp-ok {
  min-height: 0 !important;
  padding: 8px 22px !important;
  font-size: 15px;
}
.sp-ok:disabled {
  opacity: .5;
}
@media (max-height:470px) and (orientation:landscape) {
  .sp-panel {
    padding: 8px 12px;
    gap: 6px;
  }
  .sp-head h1 {
    font-size: 19px;
  }
  .sp-head .eyebrow {
    display: none;
  }
  .sp-lead {
    font-size: 11px;
  }
  .sp-gen {
    padding: 2px 1px !important;
  }
  .sp-gen small {
    font-size: 9px;
  }
  .sp-gen b {
    font-size: 12px;
  }
  .sp-card {
    padding: 6px 4px 5px !important;
  }
  .sp-card .sp-pic .mon-sprite {
    zoom: 1;
  }
  .sp-card .sp-pic {
    min-height: 50px;
  }
  .sp-name {
    font-size: 14px;
  }
  .sp-detail {
    padding: 6px 8px;
    gap: 3px;
  }
  .sp-detail-head b {
    font-size: 15px;
  }
  .sp-stat {
    font-size: 11px;
  }
  .sp-ability small {
    display: none;
  }
  .sp-ask {
    font-size: 12px;
  }
  .sp-ok {
    padding: 5px 16px !important;
    font-size: 13px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .sp-lead {
    display: none;
  }
  .sp-stat {
    font-size: 10px;
    gap: 4px;
  }
  .sp-bar {
    height: 5px;
  }
}
@media (orientation:portrait) {
  .sp-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .sp-lead {
    max-width: none;
    text-align: left;
  }
  .sp-gens {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .sp-body {
    grid-template-columns: 1fr;
  }
  .sp-panel {
    overflow: auto;
  }
}
.sp-card .sp-pic {
  align-items: flex-end;
  padding-bottom: 4%;
  background:
    radial-gradient(
      ellipse 30% 10% at 50% 86%,
      #88c070 0 96%,
      transparent 100%);
}
.sp-card .sp-pic .mon-sprite {
  zoom: 1.9;
}
@media (max-height:470px) and (orientation:landscape) {
  .sp-card .sp-pic .mon-sprite {
    zoom: 1.35;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .sp-card .sp-pic .mon-sprite {
    zoom: 1.15;
  }
}
.sp-card .sp-pic {
  background:
    radial-gradient(
      ellipse 30% 9% at 50% 78%,
      #88c070 0 96%,
      transparent 100%);
}
@media (orientation:portrait) {
  .sp-card .sp-pic {
    min-height: 96px;
  }
  .sp-card .sp-pic .mon-sprite {
    zoom: 1.05;
  }
  .sp-gen small {
    font-size: 9px;
    white-space: nowrap;
  }
  .sp-name {
    font-size: 14px;
  }
}
.sp-panel {
  height: 100%;
}
.sp-body {
  grid-template-rows: minmax(0, 1fr);
}
.sp-cards {
  grid-template-rows: minmax(0, 1fr);
}
.gba-pic.tall {
  width: calc(var(--u)*80);
  height: calc(var(--u)*80);
}
@font-face {
  font-family: RolePixel;
  src: url(/_expedition/assets/pokesurvivor/fonts/RolePixel.woff2) format("woff2");
  font-display: block;
}
.rs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  overflow: hidden;
  background: #1a2032;
  color: #fff;
  font-family: RolePixel, var(--font);
  -webkit-font-smoothing: none;
  font-weight: 400;
  user-select: none;
  -webkit-user-select: none;
  display: grid;
  grid-template: minmax(0, 1fr) auto/minmax(0, 1.5fr) minmax(250px, 1fr);
  animation: rs-in .3s ease-out;
  padding: var(--safe-top,0px) var(--safe-right,0px) var(--safe-bottom,0px) var(--safe-left,0px);
  box-sizing: border-box;
}
.rs:focus {
  outline: none;
}
.rs.leave {
  opacity: 0;
  transition: opacity .24s;
}
@keyframes rs-in {
  from {
    opacity: 0;
  }
}
.rs-bg,
.rs-bg > * {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.rs-bg {
  overflow: hidden;
}
.rs-bg .grid {
  background:
    repeating-linear-gradient(
      0deg,
      #ffffff08 0 2px,
      transparent 2px 8px),
    linear-gradient(#2c3650, #151a2a);
}
.rs-bg .edge {
  background: #f8f4e0;
  -webkit-clip-path: polygon(0 0, calc(60% + 70px) 0, calc(60% - 26px) 100%, 0 100%);
  clip-path: polygon(0 0, calc(60% + 70px) 0, calc(60% - 26px) 100%, 0 100%);
}
.rs-bg .wedge {
  background: var(--c,#d05848);
  transition: background-color .3s;
  -webkit-clip-path: polygon(0 0, calc(60% + 62px) 0, calc(60% - 34px) 100%, 0 100%);
  clip-path: polygon(0 0, calc(60% + 62px) 0, calc(60% - 34px) 100%, 0 100%);
}
.rs-bg .wedge::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: -40px;
  left: -40px;
  background:
    repeating-linear-gradient(
      115deg,
      #ffffff17 0 22px,
      transparent 22px 44px);
  animation: rs-stripe 2.4s linear infinite;
}
.rs-bg .wedge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(
      ellipse 46% 60% at 46% 46%,
      #ffffff42,
      transparent 72%),
    linear-gradient(transparent 62%, #0003);
}
@keyframes rs-stripe {
  to {
    transform: translateX(48.5px);
  }
}
.rs-stage {
  grid-area: 1/1;
  position: relative;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y;
  cursor: grab;
}
.rs-ghost {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: calc(80px*var(--k,3)*1.9);
  height: calc(80px*var(--k,3)*1.9);
  margin-left: calc(-40px*var(--k,3)*1.9 - 12%);
  image-rendering: pixelated;
  filter: brightness(0);
  opacity: .12;
}
.rs-ground {
  position: absolute;
  left: 50%;
  bottom: calc(5px*var(--k,3));
  width: calc(62px*var(--k,3));
  height: calc(10px*var(--k,3));
  margin-left: calc(-31px*var(--k,3));
  background:
    radial-gradient(
      ellipse at center,
      #0005 0,
      #0005 40%,
      #0000 68%);
}
.rs-hero {
  position: absolute;
  left: 50%;
  bottom: calc(6px*var(--k,3));
  width: calc(80px*var(--k,3));
  height: calc(80px*var(--k,3));
  margin-left: calc(-40px*var(--k,3));
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(var(--o,3px) 0 0 #fff) drop-shadow(calc(var(--o,3px)*-1) 0 0 #fff) drop-shadow(0 var(--o,3px) 0 #fff) drop-shadow(0 calc(var(--o,3px)*-1) 0 #fff) drop-shadow(0 calc(var(--o,3px)*2) 0 #0004);
}
img[src*=big-hd] {
  image-rendering: auto !important;
}
.rs-hero.in {
  animation: rs-hero .3s cubic-bezier(.2, .9, .3, 1.15);
}
.rs-hero.out {
  animation: rs-out .16s ease-in forwards;
}
.rs.spin .rs-hero,
.rs.spin .rs-hero.in {
  animation: none;
  filter: none;
}
@keyframes rs-hero {
  from {
    transform: translateX(calc(var(--dir,1)*38%));
    opacity: 0;
  }
}
@keyframes rs-out {
  to {
    transform: translateX(calc(var(--dir,1)*-30%));
    opacity: 0;
  }
}
html.lite .rs-hero {
  filter: none;
}
html.lite .rs-bg .wedge::before {
  animation: none;
}
.rs .burst {
  position: absolute;
  left: 50%;
  bottom: 34%;
  width: 8px;
  height: 8px;
  background: #fff;
  pointer-events: none;
  animation: rs-burst .5s steps(8) forwards;
}
@keyframes rs-burst {
  to {
    transform: translate(var(--bx), var(--by)) scale(.2);
    opacity: 0;
  }
}
.rs-arrow {
  all: unset;
  position: absolute;
  top: 50%;
  width: 52px;
  height: 84px;
  margin-top: -42px;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-arrow svg {
  width: 34px;
  height: 56px;
  display: block;
  filter: drop-shadow(0 4px 0 #0005);
  transition: transform .12s;
  shape-rendering: crispEdges;
}
.rs.first .rs-arrow.prev,
.rs.last .rs-arrow.next {
  visibility: hidden;
}
.rs-arrow.prev {
  left: 10px;
}
.rs-arrow.next {
  right: 13%;
}
.rs-arrow.prev svg {
  animation: rs-bobL 1.1s steps(6) infinite;
}
.rs-arrow.next svg {
  animation: rs-bobR 1.1s steps(6) infinite;
}
@keyframes rs-bobL {
  50% {
    transform: translateX(-6px);
  }
}
@keyframes rs-bobR {
  50% {
    transform: translateX(6px);
  }
}
.rs-arrow:hover svg .f,
.rs-arrow:active svg .f {
  fill: #ffe27a;
}
.rs-arrow:active svg {
  animation: none !important;
  transform: scale(.88);
}
.rs .rs-head {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  position: absolute;
  left: 0;
  right: 8%;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
}
.rs-head > * {
  pointer-events: auto;
}
.rs-title {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 30px 0 16px;
  background:
    linear-gradient(
      #fffdf0 0,
      #fffdf0 52%,
      #f0e6c4 52%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}
.rs .rs-title h1 {
  margin: 0 !important;
  color: #26304a !important;
  font: 400 24px/1 RolePixel, var(--font) !important;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: .045em 0 0 #26304a !important;
  background: none !important;
}
.rs-backbtn {
  all: unset;
  pointer-events: auto;
  flex: none;
  width: 52px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    linear-gradient(
      #ff8a66 0,
      #ff8a66 48%,
      #e0573c 48%);
}
.rs-backbtn svg {
  width: 16px;
  height: 22px;
  filter: drop-shadow(0 2px 0 #8a2c1c);
  shape-rendering: crispEdges;
}
.rs-backbtn:hover {
  background:
    linear-gradient(
      #ffa27e 0,
      #ffa27e 48%,
      #ec6a4c 48%);
}
.rs-backbtn:active {
  background: #c8482e;
}
.rs-filter {
  display: flex;
  margin-left: auto;
  height: 38px;
  padding: 3px;
  background: #141a2cd9;
  -webkit-clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.rs-fbtn {
  all: unset;
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font: 400 18px/1 RolePixel, var(--font);
  color: #e2e8f8;
  cursor: pointer;
  white-space: nowrap;
  -webkit-clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.rs-fbtn svg {
  width: 13px;
  height: 13px;
  display: block;
  shape-rendering: crispEdges;
}
.rs-fbtn small {
  font: 400 12px/1 RolePixel, var(--font);
  color: inherit;
  opacity: .8;
}
.rs-fbtn:hover {
  color: #fff;
}
.rs-fbtn.on {
  color: #3a2c08;
  background:
    linear-gradient(
      #fff0b0 0,
      #fff0b0 12%,
      #ffd75e 12%,
      #ffd75e 80%,
      #d89a24 80%);
}
.rs-fbtn.on.male {
  color: #fff;
  background:
    linear-gradient(
      #a8d4ff 0,
      #a8d4ff 12%,
      #4c94ea 12%,
      #4c94ea 80%,
      #2a62b0 80%);
}
.rs-fbtn.on.female {
  color: #fff;
  background:
    linear-gradient(
      #ffc4dc 0,
      #ffc4dc 12%,
      #ec6ea0 12%,
      #ec6ea0 80%,
      #b4406e 80%);
}
.rs-fbtn.on small {
  opacity: .85;
}
.rs-panel {
  grid-area: 1/2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 18px 10px 10px;
  box-sizing: border-box;
}
.rs-gaits {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 6px;
}
.rs-gait {
  position: relative;
  min-width: 0;
  padding-top: 92%;
  overflow: hidden;
  background: #70c8a0;
  box-shadow:
    0 0 0 3px #f8f4e0,
    0 0 0 6px #303850,
    0 9px 0 3px #0005;
}
.rs-gait canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.rs-gait b {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 14px 5px 9px;
  font: 400 18px/1 RolePixel, var(--font);
  color: #fff8e0;
  background: #303850;
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.rs-card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f8f4e0;
  color: #303850;
  border-left: 8px solid var(--c,#d05848);
  transition: border-color .3s;
  box-shadow: 0 4px 0 #0005;
  margin: 6px 6px 0;
}
.rs-card .face {
  flex: none;
  width: 40px;
  height: 40px;
  background: #b8d8f0;
  border: 2px solid #303850;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rs-card .face img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.rs-card b {
  display: block;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-card small {
  font-size: 12px;
  color: #687080;
}
.rs-card > div {
  min-width: 0;
  flex: 1;
}
.rs-card .on {
  flex: none;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  background: #58a068;
}
.rs-ok {
  all: unset;
  flex: none;
  position: relative;
  margin: 0 6px 8px;
  height: 54px;
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
  filter: drop-shadow(0 5px 0 #6a3a08) drop-shadow(0 8px 0 #0006);
  transition: transform .07s, filter .07s;
  --n:polygon(8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px),0 8px,4px 8px,4px 4px,8px 4px);
}
.rs-ok .edge,
.rs-ok .fill {
  position: absolute;
  -webkit-clip-path: var(--n);
  clip-path: var(--n);
}
.rs-ok .edge {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #4a2806;
}
.rs-ok .fill {
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  background:
    linear-gradient(
      #fff6c8 0,
      #fff6c8 9%,
      #ffd95c 9%,
      #ffd95c 52%,
      #f7b733 52%,
      #f7b733 86%,
      #d98a1a 86%);
  overflow: hidden;
}
.rs-ok .fill::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 16%;
  background: #ffffff8c;
  transform: skewX(-24deg);
  animation: rs-shine 2.8s ease-in-out infinite;
}
@keyframes rs-shine {
  0%, 55% {
    left: -30%;
  }
  100% {
    left: 130%;
  }
}
.rs-ok .txt {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #5a2c04;
  text-shadow: 0 1px 0 #fff3b4;
}
.rs-ok .txt svg {
  width: 14px;
  height: 20px;
  shape-rendering: crispEdges;
}
.rs-ok:hover .fill {
  filter: brightness(1.06) saturate(1.08);
}
.rs-ok:active {
  transform: translateY(4px);
  filter: drop-shadow(0 1px 0 #6a3a08) drop-shadow(0 3px 0 #0006);
}
.rs-ok.same {
  filter: drop-shadow(0 5px 0 #28324a) drop-shadow(0 8px 0 #0006);
}
.rs-ok.same .edge {
  background: #1c2438;
}
.rs-ok.same .fill {
  background:
    linear-gradient(
      #e4ecfa 0,
      #e4ecfa 9%,
      #b9c6de 9%,
      #b9c6de 52%,
      #a2b1cd 52%,
      #a2b1cd 86%,
      #7f90b0 86%);
}
.rs-ok.same .txt {
  color: #26304a;
  text-shadow: 0 1px 0 #f4f8ff;
}
.rs-ok.same .fill::after {
  display: none;
}
.rs-wheel {
  grid-area: 2/1/3/3;
  position: relative;
  height: calc(26px*var(--t,2) + 44px);
  background: linear-gradient(#232b44 0, #141928);
  border-top: 3px solid #f8f4e0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.rs-wheel.drag {
  cursor: grabbing;
}
.rs-wheel::before,
.rs-wheel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  z-index: 200;
  pointer-events: none;
}
.rs-wheel::before {
  left: 0;
  background:
    linear-gradient(
      90deg,
      #12172a,
      #12172a00);
}
.rs-wheel::after {
  right: 0;
  background:
    linear-gradient(
      -90deg,
      #12172a,
      #12172a00);
}
.rs-pin {
  position: absolute;
  left: 50%;
  top: -1px;
  width: 26px;
  height: 14px;
  margin-left: -13px;
  background: #ffd95c;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 4px, 84% 4px, 84% 7px, 70% 7px, 70% 11px, 58% 11px, 58% 14px, 42% 14px, 42% 11px, 30% 11px, 30% 7px, 16% 7px, 16% 4px, 0 4px);
  clip-path: polygon(0 0, 100% 0, 100% 4px, 84% 4px, 84% 7px, 70% 7px, 70% 11px, 58% 11px, 58% 14px, 42% 14px, 42% 11px, 30% 11px, 30% 7px, 16% 7px, 16% 4px, 0 4px);
  z-index: 150;
  pointer-events: none;
}
.rs-tile {
  position: absolute;
  left: 50%;
  top: 22px;
  width: calc(26px*var(--t,2));
  height: calc(26px*var(--t,2));
  margin-left: calc(-13px*var(--t,2));
  background: var(--tc,#888);
  box-shadow: 0 0 0 3px #0e1322, 0 0 0 4px #4a567a;
  will-change: transform;
  overflow: hidden;
}
.rs-tile i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
}
.rs-tile i.hd {
  image-rendering: auto;
}
.rs-tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(#ffffff4d, transparent 55%);
  z-index: 0;
}
.rs-tile.on {
  box-shadow:
    0 0 0 3px #ffd95c,
    0 0 0 6px #4a2806,
    0 6px 14px 4px #0008;
}
.rs-tile.worn::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    linear-gradient(
      #e85848 0,
      #e85848 42%,
      #303850 42%,
      #303850 58%,
      #f8f8f8 58%);
  box-shadow: 0 0 0 2px #303850;
}
.rs-count {
  position: absolute;
  right: 14px;
  bottom: 5px;
  z-index: 210;
  font-size: 12px;
  color: #8e9abc;
  pointer-events: none;
}
.rs-count b {
  color: #ffe27a;
  font-size: 15px;
}
.rs-arrow:focus-visible,
.rs-backbtn:focus-visible,
.rs-fbtn:focus-visible,
.rs-ok:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.dialog-back.rs-back {
  padding: 0 !important;
}
.dialog-back.rs-back .dialog {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-image: none !important;
  background: #1a2032 !important;
  box-shadow: none !important;
  overflow: hidden;
  animation: none;
}
.dialog-back.rs-back .dialog > .eyebrow,
.dialog-back.rs-back .dialog > h2,
.dialog-back.rs-back .dialog > .dialog-actions {
  display: none;
}
@media (max-height:470px) and (orientation:landscape) {
  .rs-head {
    top: 8px;
  }
  .rs-title {
    height: 32px;
    padding: 0 24px 0 12px;
  }
  .rs .rs-title h1 {
    font-size: 18px !important;
  }
  .rs-backbtn {
    width: 44px;
    height: 32px;
  }
  .rs-filter {
    height: 32px;
    padding: 2px;
  }
  .rs-fbtn {
    padding: 0 10px;
    gap: 5px;
  }
  .rs-panel {
    gap: 9px;
    padding: 8px 14px 4px 4px;
  }
  .rs-gaits {
    gap: 14px;
  }
  .rs-gait {
    padding-top: 86%;
  }
  .rs-gait b {
    padding: 3px 12px 4px 7px;
  }
  .rs-card {
    padding: 4px 10px;
    gap: 9px;
  }
  .rs-card .face {
    width: 32px;
    height: 32px;
  }
  .rs-card .face img {
    width: 28px;
    height: 28px;
  }
  .rs-card b {
    font-size: 15px;
  }
  .rs-card small {
    font-size: 11px;
  }
  .rs-ok {
    height: 44px;
    margin-bottom: 7px;
  }
  .rs-ok .txt {
    font-size: 18px;
  }
  .rs-wheel {
    --t:1.75;
    height: calc(26px*var(--t) + 34px);
    border-top-width: 2px;
  }
  .rs-tile {
    top: 17px;
  }
  .rs-arrow {
    width: 44px;
    height: 70px;
    margin-top: -35px;
  }
  .rs-arrow svg {
    width: 27px;
    height: 45px;
  }
  .rs-arrow.prev {
    left: 4px;
  }
}
@media (min-height:700px) and (min-width:1100px) {
  .rs-wheel {
    --t:3;
  }
  .rs-head {
    top: 22px;
  }
  .rs-title {
    height: 54px;
    padding: 0 40px 0 22px;
  }
  .rs .rs-title h1 {
    font-size: 36px !important;
  }
  .rs-backbtn {
    width: 72px;
    height: 54px;
  }
  .rs-backbtn svg {
    width: 22px;
    height: 30px;
  }
  .rs-filter {
    height: 50px;
    padding: 4px;
  }
  .rs-fbtn {
    font-size: 24px;
    padding: 0 20px;
    gap: 9px;
  }
  .rs-fbtn svg {
    width: 18px;
    height: 18px;
  }
  .rs-fbtn small {
    font-size: 24px;
    opacity: .6;
  }
  .rs-panel {
    padding: 24px 36px 16px 14px;
    gap: 22px;
  }
  .rs-gaits {
    gap: 22px;
  }
  .rs-gait b {
    font-size: 24px;
    padding: 6px 20px 8px 13px;
  }
  .rs-card {
    padding: 14px 18px;
    gap: 16px;
  }
  .rs-card .face {
    width: 56px;
    height: 56px;
  }
  .rs-card .face img {
    width: 48px;
    height: 48px;
  }
  .rs-card b {
    font-size: 26px;
  }
  .rs-card small {
    font-size: 15px;
  }
  .rs-ok {
    height: 76px;
    margin-bottom: 12px;
  }
  .rs-ok .txt {
    font-size: 36px;
  }
  .rs-ok .txt svg {
    width: 20px;
    height: 28px;
  }
  .rs-arrow {
    width: 80px;
    height: 124px;
    margin-top: -62px;
  }
  .rs-arrow svg {
    width: 52px;
    height: 86px;
  }
  .rs-count {
    font-size: 16px;
    right: 24px;
    bottom: 10px;
  }
  .rs-count b {
    font-size: 21px;
  }
  .rs-pin {
    transform: scale(1.5);
    transform-origin: 50% 0;
  }
}
@media (min-height:900px) and (min-width:1500px) {
  .rs-wheel {
    --t:4;
  }
  .rs-title {
    height: 68px;
  }
  .rs .rs-title h1 {
    font-size: 48px !important;
  }
  .rs-backbtn {
    width: 88px;
    height: 68px;
  }
  .rs-filter {
    height: 64px;
  }
  .rs-fbtn {
    font-size: 36px;
    padding: 0 28px;
  }
  .rs-fbtn svg {
    width: 26px;
    height: 26px;
  }
  .rs-fbtn small {
    font-size: 24px;
  }
  .rs-panel {
    padding: 38px 46px 26px 14px;
    gap: 22px;
  }
  .rs-gait b {
    font-size: 36px;
  }
  .rs-card .face {
    width: 76px;
    height: 76px;
  }
  .rs-card .face img {
    width: 64px;
    height: 64px;
  }
  .rs-card b {
    font-size: 36px;
  }
  .rs-card small {
    font-size: 20px;
  }
  .rs-card .on {
    font-size: 18px;
  }
  .rs-ok {
    height: 98px;
  }
  .rs-ok .txt {
    font-size: 48px;
  }
}
@media (orientation:portrait) {
  .rs {
    grid-template: minmax(0, 1.5fr) minmax(0, 1fr) auto/1fr;
  }
  .rs-stage {
    grid-area: 1/1;
  }
  .rs-panel {
    grid-area: 2/1;
    padding: 8px 14px;
  }
  .rs-wheel {
    grid-area: 3/1;
  }
  .rs-arrow.next {
    right: 4px;
  }
  .rs-head {
    right: 8px;
    flex-wrap: wrap;
    gap: 6px 0;
  }
  .rs-bg .edge {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 56%, 0 64%);
    clip-path: polygon(0 0, 100% 0, 100% 56%, 0 64%);
  }
  .rs-bg .wedge {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(56% - 7px), 0 calc(64% - 7px));
    clip-path: polygon(0 0, 100% 0, 100% calc(56% - 7px), 0 calc(64% - 7px));
  }
}
.rs-fbtn.on.official {
  color: #2a1a04;
  background:
    linear-gradient(
      #fff6c8 0,
      #fff6c8 12%,
      #f5c542 12%,
      #f5c542 80%,
      #b9801c 80%);
}
.rs-mark {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  transform: translateY(-50%) rotate(-8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 0;
  line-height: .86;
}
.rs-mark[hidden] {
  display: none;
}
.rs-mark b {
  font: 400 calc(52vw / 3 * 1.5)/.9 RolePixel, var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .13);
  -webkit-text-stroke: 2px rgba(255, 255, 255, .6);
  text-shadow: 5px 5px 0 rgba(0, 0, 0, .18);
  white-space: nowrap;
  animation: rs-mark 6s ease-in-out infinite alternate;
}
@supports (width: min(1px, 2px)) {
  .rs-mark b {
    font: 400 calc(min(52vw, 96vh) / max(3, var(--n,4)) * 1.5)/.9 RolePixel, var(--font);
  }
}
.rs-mark small {
  align-self: flex-start;
  margin: 0 0 .3em 9%;
  font: 400 10px/1 RolePixel, var(--font);
  letter-spacing: .45em;
  padding: 4px 8px 4px 14px;
  color: #3a2606;
  background: linear-gradient(#fff3b8, #f0b92e);
  box-shadow: 0 0 0 2px #5a3a08, 3px 3px 0 2px rgba(0, 0, 0, .3);
}
@supports (width: min(1px, 2px)) {
  .rs-mark small {
    font: 400 clamp(10px, 2.4vh, 22px)/1 RolePixel, var(--font);
  }
}
@keyframes rs-mark {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}
html.lite .rs-mark b {
  animation: none;
}
.rs-tile.official::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 0 0 0 2px #f5c542;
  z-index: 1;
}
.rs-tile.official i::after {
  content: "★";
  position: absolute;
  left: 3px;
  top: 1px;
  font: 400 12px/1 RolePixel, var(--font);
  color: #ffd54a;
  text-shadow: 1px 1px 0 #5a3a08;
}
.rs.locked .rs-hero,
.rs.locked .rs-ghost {
  filter: brightness(0) drop-shadow(0 0 1px rgba(255, 255, 255, .25)) !important;
}
.rs-lockq {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font: 900 48px/1 RolePixel, var(--font);
  color: #fff;
  text-shadow: 0 0 0 #000, 4px 4px 0 #202840;
  pointer-events: none;
  animation: rsQ 1.4s ease-in-out infinite alternate;
}
@supports (width: min(1px, 2px)) {
  .rs-lockq {
    font: 900 clamp(48px, 14vh, 110px)/1 RolePixel, var(--font);
  }
}
.rs-lockq[hidden],
.rs-lock[hidden] {
  display: none;
}
@keyframes rsQ {
  to {
    transform: translate(-50%, -56%);
  }
}
.rs-lock {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 86%;
  padding: 6px 14px;
  background: #202840e8;
  color: #fff8e0;
  border: 2px solid #fff8e0;
  box-shadow: 0 0 0 2px #202840;
  text-align: center;
}
.rs-lock small {
  font-size: 11px;
  color: #c8d0f0;
  letter-spacing: 2px;
}
.rs-lock b {
  font-size: 14px;
}
.rs-lock em {
  font-style: normal;
  font-size: 12px;
  color: #ffd860;
}
.rs-tile.locked i {
  filter: brightness(0);
}
.rs-tile .q {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  font: 900 22px/1 RolePixel, var(--font);
  color: #fff;
  text-shadow: 2px 2px 0 #202840;
  pointer-events: none;
}
.rs.locked .rs-ok {
  filter: grayscale(1);
  opacity: .7;
  cursor: not-allowed;
}
.rs-mark.gold b {
  color: #ffd040 !important;
  text-shadow: 0 0 12px rgba(255, 210, 60, .7);
}
.rs.locked .rs-card .face img {
  filter: brightness(0);
}
.pack-screen {
  position: fixed;
  left: var(--safe-left,0);
  top: var(--safe-top,0);
  right: var(--safe-right,0);
  bottom: var(--safe-bottom,0);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #081b30c9;
}
.pack-window {
  width: 100%;
  width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 8px solid transparent;
  border-image: var(--frame) 8 stretch;
  background: #f0f0e0;
  background-clip: padding-box;
  box-shadow: 0 4px 0 #30385080;
  padding: 8px 12px;
  overflow: hidden;
}
.pack-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-top h2 {
  margin: 0;
  font-size: 20px;
}
.pack-top .eyebrow {
  margin: 0;
}
.pack-top > div:first-child {
  flex: 1;
}
.pack-top .set-tabs {
  flex: none;
}
.pack-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 10px;
}
.pack-grids {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.inv-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inv-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.inv-head b {
  font-size: 13px;
  color: #404858;
}
.inv-head small {
  font-size: 11px;
  color: #687080;
}
.inv-grid {
  position: relative;
  background: #303850;
  border: 3px solid #303850;
  box-shadow: 0 0 0 2px #f8f8f0, 2px 3px 0 3px #30385060;
  touch-action: none;
}
.inv-cell {
  position: absolute;
  box-sizing: border-box;
  background: #c8d0d8;
  border: 1px solid #9098b0;
  box-shadow: inset 2px 2px 0 #e0e8f0;
}
.inv-cell.locked {
  background:
    repeating-linear-gradient(
      45deg,
      #505870 0,
      #505870 3px,
      #465068 3px,
      #465068 6px);
  border-color: #404860;
  box-shadow: none;
}
.inv-cell.ok {
  background: #a8e0a0;
  border-color: #58a060;
}
.inv-cell.bad {
  background: #f0a8a0;
  border-color: #c05048;
}
.inv-secure .inv-cell:not(.locked) {
  background: #d8d0b0;
  box-shadow: inset 2px 2px 0 #f0e8c8;
}
.inv-locked {
  opacity: .7;
}
.inv-item {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}
.inv-part {
  position: absolute;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
}
.inv-item.big .inv-part {
  background: #f8f0d8;
  box-shadow: inset -2px -2px 0 #e0d0a8;
}
.inv-part.jt {
  border-top: 0;
}
.inv-part.jb {
  border-bottom: 0;
  box-shadow: inset -2px 0 0 #d0d0c8;
}
.inv-part.jl {
  border-left: 0;
}
.inv-part.jr {
  border-right: 0;
  box-shadow: inset 0 -2px 0 #d0d0c8;
}
.inv-part.jb.jr {
  box-shadow: none;
}
.inv-item.big .inv-part.jb {
  box-shadow: inset -2px 0 0 #e0d0a8;
}
.inv-item.big .inv-part.jr {
  box-shadow: inset 0 -2px 0 #e0d0a8;
}
.inv-item.big .inv-part.jb.jr {
  box-shadow: none;
}
.inv-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.inv-icon > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
.inv-item.found .inv-part:first-child::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background: #f0c040;
  box-shadow: 0 0 0 1px #806020;
}
.inv-item.selected .inv-part {
  border-color: #c05048;
  background: #fff0e0;
}
.inv-item.dragging {
  opacity: .35;
}
.inv-item.free {
  position: relative;
  flex: none;
}
.inv-ghost {
  position: fixed !important;
  left: 0;
  top: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .88;
}
.inv-ghost .inv-part {
  box-shadow: 0 0 0 1px #f0c040, 3px 4px 0 #30385040;
}
.inv-ghost .inv-part {
  pointer-events: none;
}
.inv-caught {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.inv-caught img {
  width: 70%;
  image-rendering: pixelated;
}
.inv-caught .inv-mon {
  position: absolute;
  right: -2px;
  bottom: -2px;
  zoom: .32;
}
.pack-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.pack-side {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: #e0e8e0;
  border: 2px dashed #9098b0;
  overflow: auto;
}
.pack-side.hover {
  background: #f0e0b0;
  border-color: #c09038;
}
.stash-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stash-group h4 {
  margin: 0 0 3px;
  font-size: 12px;
  color: #b05048;
}
.stash-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.stash-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.stash-item img {
  image-rendering: pixelated;
  pointer-events: none;
}
.stash-item b {
  position: absolute;
  right: 1px;
  bottom: -1px;
  font-size: 10px;
  color: #303850;
  text-shadow: 1px 1px 0 #fff;
}
.stash-item.selected {
  border-color: #c05048;
}
.ground-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  min-height: 48px;
}
.pack-info {
  flex: none;
  padding: 6px 8px;
  background: #f8f8f0;
  border: 2px solid #606880;
  box-shadow: inset -2px -2px 0 #d0d0c8;
  font-size: 12px;
}
.pack-info.empty small {
  color: #687080;
}
.pack-info-head {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pack-info-head img {
  image-rendering: pixelated;
}
.pack-info-head strong {
  display: block;
  font-size: 14px;
}
.pack-info-head small {
  color: #687080;
}
.pack-info p {
  margin: 4px 0;
  color: #505868;
  line-height: 1.4;
}
.pack-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pack-acts button {
  padding: 4px 10px !important;
  min-height: 0 !important;
  font-size: 12px;
}
.pack-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
}
.pack-summary .pack-used {
  margin-right: 4px;
  color: #687080;
}
.pack-summary span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pack-summary img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.expand-preview {
  display: grid;
  grid-template-columns: repeat(var(--cols), 10px);
  gap: 1px;
  padding: 3px;
  background: #303850;
  flex: none;
}
.expand-preview i {
  width: 10px;
  height: 10px;
  background: #505870;
}
.expand-preview i.on {
  background: #c8d0d8;
}
.expand-preview.secure i.on {
  background: #d8d0b0;
}
@media (max-height:470px) {
  .pack-window {
    padding: 4px 8px;
  }
  .pack-top h2 {
    font-size: 16px;
  }
  .pack-top .eyebrow {
    display: none;
  }
}
@media (orientation:portrait) {
  .pack-main {
    grid-template-columns: 1fr;
  }
  .pack-window {
    overflow: auto;
  }
}
@media (orientation:landscape) {
  .pack-main {
    grid-template-columns: max-content minmax(190px, 1fr);
  }
  .pack-camp .pack-main:not(.split):not(.run3) {
    display: flex;
    gap: 0;
  }
  .pack-camp .pack-main:not(.split):not(.run3) > * {
    flex: none;
  }
  .pack-camp .pack-main:not(.split):not(.run3) > .pack-right {
    flex: 1 1 0;
    min-width: 190px;
    margin-left: 10px;
  }
  .pack-grids {
    flex-wrap: nowrap;
  }
}
@media (max-height:470px) {
  .pack-info.empty {
    display: none;
  }
  .pack-side .inv-head small {
    display: none;
  }
}
.inv-bag {
  position: relative;
  flex: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.inv-bag .inv-grid {
  position: absolute;
  background: none;
  border: 0;
  box-shadow: none;
}
.inv-bag .inv-cell {
  background: #fff8e83d;
  border: 1px solid #40201866;
  box-shadow: inset 1px 1px 0 #ffffff30;
}
.inv-bag .inv-cell.locked {
  background:
    repeating-linear-gradient(
      45deg,
      #2018186b 0,
      #2018186b 3px,
      #30202052 3px,
      #30202052 6px);
  border-color: #20101070;
}
.inv-bag-secure .inv-cell:not(.locked) {
  background: #ffffff40;
  border: 1px solid #e8f4ffb0;
  box-shadow: inset 1px 1px 0 #ffffff50;
}
.inv-bag-secure .inv-cell.locked {
  background:
    repeating-linear-gradient(
      45deg,
      #001030a8 0,
      #001030a8 3px,
      #00183890 3px,
      #00183890 6px);
  border-color: #c8e0ff60;
}
.inv-bag .inv-cell.ok {
  background: #a8e0a0d0;
  border-color: #58a060;
}
.inv-bag .inv-cell.bad {
  background: #f0a8a0d0;
  border-color: #c05048;
}
.inv-head.on-bag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2px 8px;
  background: #f8f0d8;
  border: 2px solid #804828;
  box-shadow: inset -2px -2px 0 #e0c898, 2px 2px 0 #40201860;
  white-space: nowrap;
  pointer-events: none;
}
.inv-head.on-bag b {
  font-size: 12px;
  color: #503020;
  line-height: 1.2;
}
.inv-head.on-bag small {
  font-size: 10px;
  color: #806048;
  line-height: 1.2;
}
.inv-locked .inv-bag {
  opacity: .8;
}
.inv-locked {
  opacity: 1;
}
.ground-items .inv-item {
  position: relative;
}
.pack-main.split .pack-right > .inv-box {
  flex: none;
  align-items: center;
}
.pack-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-top: 4px;
  font-size: 12px;
}
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 4px 0 1px;
  background: #f8f8f0;
  border: 1px solid #9098b0;
}
.sling-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px;
  border: 1px dashed #7088b0;
}
.sling-group .pack-chip {
  margin: 0;
}
.pack-chip.sling-chip {
  padding: 0 5px;
  font-size: 11px;
  color: #3c4a6a;
  background: #e4ecf8;
  border-color: #7088b0;
}
.pack-chip img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}
.pack-summary .carry-title {
  margin: 0;
}
.pack-summary > button {
  margin-left: auto;
}
@media (max-height:470px) and (orientation:landscape) {
  .briefing .pack-summary {
    gap: 6px;
    margin-top: 4px;
  }
  .briefing .pack-summary > button {
    padding: 3px 10px !important;
    min-height: 0 !important;
  }
  .town-mode .briefing > .notice {
    display: none;
  }
  .briefing > .notice {
    font-size: 11px;
    line-height: 1.4;
    padding: 4px 8px;
    margin: 4px 0;
  }
  .briefing > .primary.large {
    min-height: 0 !important;
    padding: 6px 14px !important;
    margin-top: 6px;
  }
  .pack-contents {
    margin-top: 2px;
  }
  .pack-chip img {
    width: 18px;
    height: 18px;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .briefing .briefing-head .eyebrow {
    display: none;
  }
  .briefing .briefing-head h2 {
    font-size: 20px;
    margin: 0;
  }
  .briefing .pack-summary > button {
    font-size: 12px;
  }
  .briefing .pack-summary > button .item-btn img {
    width: 16px;
    height: 16px;
  }
  .briefing > .difficulty-notice,
  .briefing > .stage-requirement {
    margin: 4px 0;
  }
}
@media (max-height:470px) and (orientation:landscape) {
  .briefing > .eyebrow {
    display: none;
  }
  .briefing > h2 {
    font-size: 20px;
    margin: 0 0 4px;
  }
  .briefing > .difficulty-notice {
    font-size: 12px;
    padding: 4px 8px;
  }
}
body.inv-dragging,
body.inv-dragging * {
  touch-action: none !important;
}
.pack-side.ground {
  align-items: stretch;
}
.ground-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
}
.ground-stage .inv-item.free {
  position: relative;
}
.ground-name {
  font-size: 13px;
  color: #404858;
}
.ground-turn {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ground-turn button {
  min-height: 0 !important;
  padding: 4px 10px !important;
  font-size: 12px;
  border-width: 4px !important;
}
.ground-pick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px dashed #9098b0;
}
.ground-pick-item {
  width: 38px;
  height: 38px;
  min-height: 0 !important;
  padding: 0 !important;
  border-width: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f0 !important;
}
.ground-pick-item img {
  image-rendering: pixelated;
}
.ground-pick-item.on {
  background: #fff0c8 !important;
  box-shadow: 0 0 0 2px #c05048 !important;
}
.ground-empty {
  margin: auto;
  font-size: 12px;
  color: #687080;
  text-align: center;
}
@media (max-height:470px) {
  .ground-turn button {
    padding: 2px 8px !important;
    font-size: 11px;
  }
  .ground-name {
    font-size: 12px;
  }
  .ground-pick-item {
    width: 32px;
    height: 32px;
  }
  .ground-pick-item img {
    width: 22px;
    height: 22px;
  }
}
.ground-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-self: center;
  width: 100%;
  width: min(100%, 200px);
  flex: none;
}
.ground-cell {
  position: relative;
  aspect-ratio: 1;
  --ar: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 1px;
  padding: 2px;
  background: #f0f4e8;
  border: 2px solid #9098b0;
  box-sizing: border-box;
}
.ground-cell.me {
  background: #e8e0f8;
  border-color: #8070b0;
}
.ground-cell.blocked {
  background:
    repeating-linear-gradient(
      45deg,
      #c8ccd4 0,
      #c8ccd4 4px,
      #b8bcc8 4px,
      #b8bcc8 8px);
  border-color: #a0a4b0;
}
.ground-cell.hover {
  background: #f8e8b0;
  border-color: #c09038;
}
.ground-me {
  position: absolute;
  left: 2px;
  top: 1px;
  font-size: 10px;
  color: #6050a0;
  font-weight: 700;
}
.ground-chip {
  position: relative !important;
  pointer-events: auto !important;
  width: 24px;
  height: 24px;
  flex: none;
  cursor: grab;
  touch-action: none;
  border: 1px solid transparent;
}
.ground-chip .inv-icon {
  position: static;
  width: 22px;
  height: 22px;
  display: flex;
}
.ground-chip.selected {
  border-color: #c05048;
  background: #fff0e0;
}
.ground-chip.found::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  background: #f0c040;
}
.ground-more {
  font-size: 10px;
  color: #505868;
}
@media (max-height:470px) {
  .ground-grid {
    width: 100%;
    width: min(100%, 138px);
    gap: 2px;
  }
  .ground-chip {
    width: 18px;
    height: 18px;
  }
  .ground-chip .inv-icon {
    width: 17px;
    height: 17px;
  }
  .ground-cell {
    padding: 1px;
    border-width: 1px;
  }
}
.pack-top-acts {
  display: flex;
  gap: 6px;
  align-items: center;
}
.shop-stash {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  background: #e0e8e0;
  border: 2px dashed #9098b0;
  overflow: auto;
}
.shop-stash.hover {
  background: #f0e0b0;
  border-color: #c09038;
}
.shop-stash .stash-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 10px;
}
.shop-stash .stash-group h4 {
  margin-bottom: 1px;
}
.pack-run .pack-side.ground {
  flex: none;
  overflow: visible;
  gap: 4px;
}
.pack-run .pack-info {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.ground-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.ground-grid {
  display: grid !important;
  grid-template-columns: repeat(3, var(--gc)) !important;
  grid-auto-rows: var(--gc);
  width: auto !important;
  gap: 0 !important;
  flex: none;
  background-color: #78a060;
  background-size: 100% 100%;
  image-rendering: pixelated;
  border: 3px solid #303850;
  box-shadow: 0 0 0 2px #f8f8f0, 2px 3px 0 3px #30385060;
}
.ground-cell {
  width: var(--gc);
  height: var(--gc);
  aspect-ratio: auto !important;
  padding: 3px !important;
  gap: 2px !important;
  align-content: center;
  background: #ffffff26 !important;
  border: 1px solid #ffffffa0 !important;
  box-shadow: inset 1px 1px 0 #ffffff40;
  border-radius: 0;
}
.ground-cell.me {
  background: #fff8e81a !important;
  align-content: flex-start;
}
.ground-cell.blocked {
  background:
    repeating-linear-gradient(
      45deg,
      #2018186b 0,
      #2018186b 3px,
      #30202052 3px,
      #30202052 6px) !important;
  border-color: #20101070 !important;
}
.ground-cell.hover {
  background: #f8e8b0b0 !important;
  border-color: #c09038 !important;
}
.ground-player {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: calc(var(--gc)*.44);
  height: calc(var(--gc)*.88);
  background-size: 900% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 #00000055);
}
.ground-me {
  display: none;
}
.ground-chip {
  position: relative !important;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f0;
  border: 2px solid #606880 !important;
  box-shadow: inset -1px -1px 0 #d0d0c8;
  box-sizing: border-box;
}
.ground-chip .inv-icon {
  position: static;
  display: flex;
  width: auto;
  height: auto;
}
.ground-chip.selected {
  border-color: #c05048 !important;
  background: #fff0e0;
}
.ground-more {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 10px;
  color: #fff;
  text-shadow: 1px 1px 0 #303850;
}
.ground-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.ground-detail .ground-stage {
  flex: none;
  padding: 0;
}
.ground-body > .ground-empty {
  flex: 1;
  margin: 0;
  font-size: 11px;
}
@media (max-height:470px) {
  .pack-side .inv-head {
    display: none;
  }
  .ground-turn button {
    padding: 2px 6px !important;
    font-size: 10px;
  }
}
.pack-run .pack-main.split .pack-right {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.pack-run .pack-main.split .pack-right > :first-child {
  grid-column: 1;
  grid-row: 1;
}
.pack-run .pack-main.split .pack-right > .pack-side.ground {
  grid-column: 2;
  grid-row: 1;
}
.pack-run .pack-main.split .pack-right > .pack-info {
  grid-column: 1/-1;
  grid-row: 2;
  align-self: stretch;
}
.pack-run .pack-main.split .ground-body {
  flex-direction: column;
  gap: 4px;
}
.ground-cell.me {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
}
.ground-cell.me .ground-player {
  left: 3px;
  transform: none;
}
.pack-main.run3 {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) minmax(220px, auto) !important;
  gap: 10px;
}
.pack-main.run3 .pack-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.pack-main.run3 .pack-mid > .pack-info {
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.pack-main.run3 .pack-right > .pack-side.ground {
  flex: 1 1 auto;
  justify-content: flex-start;
}
.pack-main.run3 .ground-body {
  flex-direction: column;
  gap: 6px;
}
.pack-main.run3 .pack-mid {
  flex-direction: row;
  align-items: stretch;
}
.pack-main.run3 .pack-mid > .inv-box,
.pack-main.run3 .pack-mid > :first-child {
  flex: none;
  align-self: center;
}
.pack-main.run3 .pack-mid > .pack-info {
  flex: 1 1 0;
  min-width: 0;
}
.expand-preview.pickable {
  grid-template-columns: repeat(var(--cols), 22px);
  gap: 2px;
  padding: 4px;
}
.expand-preview.pickable i {
  width: 22px;
  height: 22px;
}
.expand-preview .pick-cell {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0 !important;
  border: 1px dashed #8890a8 !important;
  border-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background:
    repeating-linear-gradient(
      45deg,
      #505870 0,
      #505870 3px,
      #465068 3px,
      #465068 6px) !important;
  cursor: pointer;
}
.expand-preview .pick-cell:hover {
  background: #7080a0 !important;
}
.expand-preview .pick-cell.picked {
  background: #f0d060 !important;
  border: 2px solid #fff8d8 !important;
  box-shadow: 0 0 0 2px #c08020 !important;
  animation: pick-blink .8s steps(2) infinite;
}
@keyframes pick-blink {
  50% {
    background: #f8e8a0 !important;
  }
}
@media (max-height:470px) {
  .expand-preview.pickable {
    grid-template-columns: repeat(var(--cols), 17px);
  }
  .expand-preview.pickable i,
  .expand-preview .pick-cell {
    width: 17px;
    height: 17px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .expand-preview.pickable {
    grid-template-columns: repeat(var(--cols), 15px);
  }
  .expand-preview.pickable i,
  .expand-preview .pick-cell {
    width: 15px;
    height: 15px;
  }
}
@media (max-width:700px) {
  .pack-main.run3 {
    grid-template-columns: max-content minmax(0, 1fr) minmax(180px, auto) !important;
    gap: 6px;
  }
  .pack-main.run3 .pack-mid .inv-head small {
    display: none;
  }
  .pack-main.run3 .pack-mid > .pack-info {
    min-width: 110px;
  }
}
.ground-cell.me .ground-player {
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 0;
  width: calc(var(--gc)*.47);
  height: calc(var(--gc)*.94);
}
.ground-cell.me {
  display: block !important;
}
.ground-cell.me .ground-chip {
  position: absolute !important;
  right: 1px;
  z-index: 2;
}
.ground-cell.me .ground-chip:nth-of-type(1) {
  top: 1px;
}
.ground-cell.me .ground-chip:nth-of-type(2) {
  bottom: 1px;
}
.ground-cell:not(.me) .ground-chip .inv-icon img,
.ground-chip .inv-icon img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.ground-chip .inv-icon {
  width: 100% !important;
  height: 100% !important;
  padding: 1px;
  box-sizing: border-box;
}
.ground-cell.me {
  overflow: visible;
}
.ground-cell.me .ground-player {
  width: calc(var(--gc)*.6);
  height: calc(var(--gc)*1.2);
  bottom: 1px;
}
.ground-cell.me .ground-player {
  width: calc(var(--gc)*.68);
  height: calc(var(--gc)*1.36);
}
.ground-cell.me .ground-chip {
  top: auto !important;
  bottom: 1px !important;
}
.ground-cell.me .ground-chip:nth-of-type(1) {
  right: 1px;
  left: auto;
}
.ground-cell.me .ground-chip:nth-of-type(2) {
  left: 1px;
  right: auto;
}
.inv-box {
  max-width: 100%;
}
.inv-box > .inv-head:not(.on-bag) {
  flex-wrap: wrap;
  row-gap: 0;
  justify-content: center;
  text-align: center;
}
.inv-box > .inv-head:not(.on-bag) small {
  flex: 0 0 100%;
  white-space: normal;
}
.pack-camp .pack-side .stash-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 12px;
}
.pack-info .pack-acts {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.pack-info .pack-acts button {
  min-height: 0 !important;
  padding: 3px 9px !important;
  font-size: 12px;
  border-width: 4px !important;
  white-space: nowrap;
}
@media (max-height:470px) {
  .pack-info .pack-acts button {
    padding: 2px 7px !important;
    font-size: 11px;
  }
  .pack-info p {
    margin: 3px 0;
  }
}
.inv-box > .inv-note {
  display: block;
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: #687080;
}
@media (max-height:470px) {
  .inv-box > .inv-note {
    font-size: 10px;
    margin-top: 2px;
  }
}
.inv-item > .inv-uses {
  position: absolute;
  right: 2px;
  bottom: 1px;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  color: #fff;
  text-shadow:
    1px 0 0 #303850,
    -1px 0 0 #303850,
    0 1px 0 #303850,
    0 -1px 0 #303850;
  pointer-events: none;
}
.inv-item.half .inv-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: #e8e8e8b0;
  pointer-events: none;
}
.inv-item.empty .inv-icon img {
  filter: grayscale(1) brightness(1.2) opacity(.6);
}
.inv-item.empty > .inv-uses {
  color: #d8d8d8;
}
.ground-chip.half .inv-icon {
  position: relative;
}
.inv-item.charm .inv-part {
  background: #efe4ff;
  border-color: #7b4fd6;
  box-shadow: inset -2px -2px 0 #cfb8f2;
}
.inv-item.rar0 .inv-part,
.ground-chip.rar0,
.stash-item.rar0 {
  background: #eceae4;
  box-shadow: inset -2px -2px 0 #cfccc4;
}
.inv-item.rar0 .inv-part.jb {
  box-shadow: inset -2px 0 0 #cfccc4;
}
.inv-item.rar0 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #cfccc4;
}
.inv-item.rar1 .inv-part,
.ground-chip.rar1,
.stash-item.rar1 {
  background: #bfe6b4;
  box-shadow: inset -2px -2px 0 #86c474;
}
.inv-item.rar1 .inv-part.jb {
  box-shadow: inset -2px 0 0 #86c474;
}
.inv-item.rar1 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #86c474;
}
.inv-item.rar2 .inv-part,
.ground-chip.rar2,
.stash-item.rar2 {
  background: #bcd2f8;
  box-shadow: inset -2px -2px 0 #7ea2ea;
}
.inv-item.rar2 .inv-part.jb {
  box-shadow: inset -2px 0 0 #7ea2ea;
}
.inv-item.rar2 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #7ea2ea;
}
.inv-item.rar3 .inv-part,
.ground-chip.rar3,
.stash-item.rar3 {
  background: #dcc4f8;
  box-shadow: inset -2px -2px 0 #b88ce8;
}
.inv-item.rar3 .inv-part.jb {
  box-shadow: inset -2px 0 0 #b88ce8;
}
.inv-item.rar3 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #b88ce8;
}
.inv-item.rar4 .inv-part,
.ground-chip.rar4,
.stash-item.rar4 {
  background: #f8d888;
  box-shadow: inset -2px -2px 0 #e0a838;
}
.inv-item.rar4 .inv-part.jb {
  box-shadow: inset -2px 0 0 #e0a838;
}
.inv-item.rar4 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #e0a838;
}
.inv-item.rar5 .inv-part,
.ground-chip.rar5,
.stash-item.rar5 {
  background: #f4a898;
  box-shadow: inset -2px -2px 0 #d86450;
}
.inv-item.rar5 .inv-part.jb {
  box-shadow: inset -2px 0 0 #d86450;
}
.inv-item.rar5 .inv-part.jr {
  box-shadow: inset 0 -2px 0 #d86450;
}
.inv-item.rar0 .inv-part.jb.jr,
.inv-item.rar1 .inv-part.jb.jr,
.inv-item.rar2 .inv-part.jb.jr,
.inv-item.rar3 .inv-part.jb.jr,
.inv-item.rar4 .inv-part.jb.jr,
.inv-item.rar5 .inv-part.jb.jr {
  box-shadow: none;
}
.inv-item.rar5 .inv-part,
.ground-chip.rar5,
.stash-item.rar5 {
  border-color: #c02818 !important;
}
.inv-item.selected .inv-part,
.ground-chip.selected,
.stash-item.selected {
  border-color: #c05048 !important;
}
.inv-item.rar5.selected .inv-part,
.ground-chip.rar5.selected,
.stash-item.rar5.selected {
  border-color: #fff !important;
}
.inv-guard {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.inv-guard::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #f8d040;
  border: 1px solid #8a5a10;
  box-shadow: inset -1px -1px 0 #d8a020, 0 0 0 1px #fff8d8;
}
@supports (width: min(1px, 2px)) {
  .inv-guard::after {
    width: max(5px, calc(var(--cell,40px)*.16));
    height: max(5px, calc(var(--cell,40px)*.16));
  }
}
.inv-guard[data-edge=r]::after {
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.inv-guard[data-edge=l]::after {
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.inv-guard[data-edge=b]::after {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.inv-guard[data-edge=t]::after {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}
:where(img[src$="items/guardcharm.png"]:not([width]), img[src$="items/magnetcharm.png"]:not([width])) {
  width: 24px;
  height: 24px;
}
img[src$="items/guardcharm.png"],
img[src$="items/magnetcharm.png"] {
  image-rendering: auto !important;
}
.inv-bag {
  position: relative;
}
.inv-sling-box {
  position: absolute;
  z-index: 2;
  padding: 3px 2px;
  border-radius: 6px;
  background: linear-gradient(#9a6a3a, #7a4e28);
  box-shadow:
    inset 0 0 0 2px #5a3618,
    inset 0 2px 0 #c08850,
    1px 2px 0 #0004;
}
.inv-sling-box.unbought {
  opacity: 0;
}
.inv-dragging .inv-sling-box.unbought {
  opacity: .6;
  outline: 2px dashed #ffd95c;
}
.inv-sling-box .inv-grid {
  position: relative;
}
.inv-sling-box .inv-cell {
  background: #3a2412a0;
  border: 1px dashed #e8c89080;
  border-radius: 50%;
}
.inv-sling-box::before {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  margin: 0 auto 2px;
  border-radius: 3px;
  background: #5a3618;
}
.sling-row .sling-preview {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 3px;
  border-radius: 6px;
  background: linear-gradient(#9a6a3a, #7a4e28);
}
.sling-row .sling-preview i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px dashed #e8c890;
  background: #3a2412a0;
}
.sling-row .sling-preview i.on {
  background: #e8c89060;
}
.secure-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mega-wrist {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 5px 4px 3px;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.mega-wrist img.wrist-band {
  filter: drop-shadow(0 2px 0 #0003);
}
.mega-wrist small {
  font-size: 10px;
  line-height: 1.2;
  color: #687080;
  white-space: nowrap;
  margin-bottom: 1px;
}
.mega-wrist.on small {
  color: #7a3ab8;
  font-weight: 700;
}
.mega-wrist.can {
  outline: 2px dashed #a070d8;
  outline-offset: -2px;
  animation: wrist-hint 1.2s steps(2) infinite;
}
@keyframes wrist-hint {
  50% {
    outline-color: #a070d800;
  }
}
.mega-wrist.hover {
  background: #e8d8ff;
}
.mega-wrist .wrist-dev {
  position: static !important;
  pointer-events: auto !important;
  z-index: auto;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: grab;
  touch-action: none;
}
.mega-wrist .wrist-dev.dragging {
  opacity: .35;
}
.mega-wrist .wrist-band {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.mega-wrist .wrist-dev .inv-icon {
  display: none !important;
}
.item-icon.rar0,
.gl .gl-art.rar0 {
  background: #e4e2dc;
  box-shadow: inset 0 0 0 1px #b8b4aa;
}
.item-icon.rar1,
.gl .gl-art.rar1 {
  background: #bfe6b4;
  box-shadow: inset 0 0 0 1px #5aa848;
}
.item-icon.rar2,
.gl .gl-art.rar2 {
  background: #bcd2f8;
  box-shadow: inset 0 0 0 1px #4a7ee0;
}
.item-icon.rar3,
.gl .gl-art.rar3 {
  background: #dcc4f8;
  box-shadow: inset 0 0 0 1px #9a5ad8;
}
.item-icon.rar4,
.gl .gl-art.rar4 {
  background: #f8d888;
  box-shadow: inset 0 0 0 1px #d09020;
}
.item-icon.rar5,
.gl .gl-art.rar5 {
  background: #f4a898;
  box-shadow: inset 0 0 0 1px #c02818;
}
.item-icon[class*=rar] {
  image-rendering: pixelated;
  box-sizing: border-box;
  padding: 1px;
}
.inv-item .item-icon,
.stash-item .item-icon,
.ground-chip .item-icon {
  background: none !important;
  box-shadow: none !important;
  padding: 0;
}
.q-mark {
  font-style: normal;
  font-family: Arial, sans-serif;
  font-size: .78em;
  letter-spacing: -.12em;
  margin-left: .05em;
  text-shadow: 1px 1px 0 #0005;
  white-space: nowrap;
}
.q-mark.q0 {
  color: #9aa4b0;
}
.q-mark.q1 {
  color: #3ea85a;
}
.q-mark.q2 {
  color: #3d7bf0;
}
.q-mark.q3 {
  color: #a455e0;
}
.q-mark.q4 {
  color: #f0a020;
}
.gl .gl-text b .q-mark {
  display: block;
  margin: -1px 0 0;
  font-size: .62em;
  line-height: 1;
  letter-spacing: -.1em;
}
.inv-bag.smooth {
  image-rendering: auto;
}
.inv-bag > .inv-grid {
  z-index: 2;
}
.pouch-art {
  position: absolute;
  z-index: 1;
  cursor: default;
}
.pouch-art[data-pouch] {
  cursor: pointer;
}
.pouch-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.pouch-art.slingR .pouch-img {
  transform: scaleX(-1);
}
.pouch-art.unhung .pouch-img {
  display: none;
}
.pouch-art.unhung {
  outline: none;
}
.inv-dragging .pouch-art.unhung {
  outline: 2px dashed #ffd95c;
  outline-offset: -4px;
  background: #ffd95c22;
}
.pouch-art.unhung .inv-grid {
  opacity: 0;
}
.pouch-art.selected .pouch-img {
  filter: drop-shadow(0 0 2px #ffd95c) drop-shadow(0 0 2px #ffd95c);
}
.pouch-art .inv-box {
  position: absolute;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.pouch-art.unhung .inv-cell.locked {
  background: none;
  border-color: transparent;
}
.lanyard-rope {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.lanyard-rope svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.lanyard-grid {
  position: absolute !important;
  z-index: 3;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.inv-bag-lanyard,
.lanyard-grid .inv-grid {
  background: none;
}
.lanyard-grid .inv-cell {
  background: #fff6dccc !important;
  border: 2px solid #e8802a !important;
  border-radius: 50%;
}
.stow-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.stow-head .stow-button {
  padding: 1px 8px;
  font-size: 12px;
  min-height: 0;
}
.bag-busy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 16px;
  background: #00000014;
  border: 2px dashed #a89878;
  text-align: center;
}
.bag-busy p {
  margin: 0;
  max-width: 240px;
  color: #5a4a38;
  font-size: 13px;
}
.set-tabs.bag-tabs {
  margin-left: 0;
}
.pack-top > .set-tabs.bag-tabs {
  margin-right: auto;
}
.spare-bag b {
  font-size: 10px;
}
.inv-head:has(.stow-head) {
  white-space: nowrap;
}
.stow-head b,
.inv-head .stow-head {
  white-space: nowrap;
}
.inv-head .head-stow {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 0 7px !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 11px !important;
  line-height: 18px !important;
  vertical-align: middle;
}
.inv-head:has(.head-stow) {
  white-space: nowrap;
}
.rope-art {
  position: absolute;
  z-index: 1;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  filter: drop-shadow(1px 2px 0 #0005);
}
.rope-art.selected {
  filter: drop-shadow(0 0 2px #ffd95c) drop-shadow(0 0 2px #ffd95c);
}
.lanyard-grid .inv-grid,
.lanyard-grid .inv-cell {
  border-radius: 50%;
}
.lanyard-grid .inv-cell {
  background:
    radial-gradient(
      #fff8e8 0,
      #fff8e8 55%,
      #e8d8b0 56%) !important;
  border: 3px solid #c8742a !important;
  box-shadow: inset 0 0 0 2px #fff6, 0 2px 0 #0005 !important;
}
.lanyard-grid .inv-item .inv-part {
  border-radius: 50%;
}
.pouch-art .inv-cell {
  border-radius: 50%;
}
.pouch-art .inv-cell:not(.locked) {
  background:
    radial-gradient(
      #ffffff38 0,
      #ffffff38 55%,
      #0000 56%),
    #00000030 !important;
  border: 2px solid #e8802acc !important;
}
.pouch-art .inv-item .inv-part {
  border-radius: 50%;
}
.inv-bag > .grid-stow {
  position: absolute !important;
  z-index: 4;
  white-space: nowrap;
  margin: 0 0 2px !important;
  padding: 0 8px !important;
  min-height: 0 !important;
  height: auto !important;
  font-size: 11px !important;
  line-height: 18px !important;
  box-shadow: 0 2px 0 #0004 !important;
}
.bag-col {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
[data-hung] {
  touch-action: none;
}
.expand-preview.pickable.tall {
  grid-template-columns: repeat(var(--cols), 13px);
  gap: 1px;
}
.expand-preview.pickable.tall i,
.expand-preview.tall .pick-cell {
  width: 13px;
  height: 13px;
}
@media (max-height:470px) {
  .expand-preview.pickable.tall {
    grid-template-columns: repeat(var(--cols), 10px);
  }
  .expand-preview.pickable.tall i,
  .expand-preview.tall .pick-cell {
    width: 10px;
    height: 10px;
  }
}
@media (max-height:380px) and (orientation:landscape) {
  .expand-preview.pickable.tall {
    grid-template-columns: repeat(var(--cols), 9px);
  }
  .expand-preview.pickable.tall i,
  .expand-preview.tall .pick-cell {
    width: 9px;
    height: 9px;
  }
}
[data-hung] > .inv-icon {
  display: none !important;
}
.bag-swap-zone {
  display: none;
  position: absolute;
  top: 4%;
  right: 4%;
  bottom: 4%;
  left: 4%;
  z-index: 6;
  align-items: center;
  justify-content: center;
  border: 3px dashed #ffd95c;
  background: #ffd95c33;
  border-radius: 10px;
}
.bag-swap-zone b {
  padding: 4px 10px;
  background: #303850e6;
  color: #fff6c8;
  font-size: 14px;
  border: 2px solid #ffd95c;
}
.bag-dragging .bag-swap-zone {
  display: flex;
}
.bag-swap-zone.hover {
  background: #ffd95c66;
}
.bag-readonly .inv-bag {
  filter: saturate(.75);
}
.bag-lock-note {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  padding: 2px 10px;
  background: #303850e6;
  color: #fff6c8;
  font-size: 12px;
  border: 2px solid #ffd95c;
  pointer-events: none;
}
.stash-fold {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.stash-fold:hover {
  filter: brightness(1.2);
}
.stash-fold .fold-tri {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform .12s;
}
.stash-group.folded .fold-tri {
  transform: rotate(-90deg);
}
.stash-group.folded {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}
.stash-group.folded h4 {
  margin-bottom: 0;
  opacity: .8;
}
body.pad-on .pad-focus {
  outline: 3px solid #f0a020 !important;
  outline-offset: 2px !important;
  z-index: 2;
}
body.pad-on .inv-item.pad-focus {
  outline-offset: -1px !important;
}
.keymap-dialog {
  --modal-w: 900px;
  width: var(--modal-w) !important;
  max-width: var(--modal-w) !important;
}
@supports (width: min(1px, 2px)) {
  .keymap-dialog {
    --modal-w: min(900px,calc(100vw - var(--safe-left,0px) - var(--safe-right,0px) - 28px));
  }
}
.keymap-dialog > .eyebrow {
  display: none;
}
.keymap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.keymap .km-hint {
  margin: 0 !important;
  font-size: 12px;
  color: #687080;
  line-height: 1.4;
}
.km-acts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.km-grp {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.km-grp-h {
  flex: 0 0 5.5em;
  padding-top: 5px;
  font-size: 12px;
  color: #506078;
  text-align: right;
}
.km-grp-acts {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-height:470px) {
  .km-grp-h {
    flex-basis: 5em;
    font-size: 11px;
    padding-top: 3px;
  }
}
.keymap .km-act {
  padding: 2px 8px !important;
  font-size: 12px;
  border-width: 4px !important;
  min-height: 0 !important;
  line-height: 1.3;
}
.km-act > span {
  display: flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
}
.km-act em {
  font-style: normal;
  color: #b05048;
  font-weight: 700;
}
.km-act.custom em {
  color: #2a4a9a;
}
.keymap .km-act.on {
  background: #f0d898 !important;
  background-image: none !important;
}
.km-act.on em {
  animation: keywait .8s steps(2) infinite;
}
.km-kb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: #404858;
  border: 4px solid #303850;
  box-shadow: inset 0 0 0 2px #687890, 0 4px 0 #30385080;
}
.km-row {
  display: flex;
  gap: 3px;
}
.keymap .km-key {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 36px;
  margin: 0 !important;
  padding: 0 1px !important;
  border: 0 !important;
  border-image: none !important;
  background: #e0e0d0 !important;
  background-image: none !important;
  box-shadow:
    inset -2px -3px 0 #a8b0c0,
    inset 2px 2px 0 #f8f8f0,
    0 2px 0 #202838 !important;
  color: #404858;
  font-size: 11px;
  position: relative;
  overflow: hidden;
  transform: none;
  filter: none !important;
}
.km-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  height: 100%;
  gap: 1px;
}
.km-cap b {
  font-size: 12px;
  font-weight: 400;
}
.km-cap i {
  font-style: normal;
  font-size: 10px;
  line-height: 13px;
  color: #fff;
  background: #c85848;
  padding: 0 3px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.keymap .km-key.bound {
  background: #f8f0c8 !important;
}
.km-key.custom .km-cap i {
  background: #2a4a9a;
}
.keymap .km-key.armed {
  background: #f0d898 !important;
  animation: keywait .8s steps(2) infinite;
}
.km-key.fixed {
  opacity: .55;
}
.keymap .km-key.down {
  transform: translateY(2px) !important;
  background: #b8d8f0 !important;
  box-shadow: inset 2px 2px 0 #8898b0 !important;
}
.km-pad {
  position: relative;
  width: 100%;
  width: min(100%, 600px);
  height: 230px;
  margin: 2px auto 0;
}
.km-pad-body {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 28%;
  bottom: 16%;
  background: #8898b0;
  border: 4px solid #303850;
  box-shadow: inset 0 0 0 3px #a8b8c8, 0 4px 0 #30385080;
  clip-path: polygon(0 12px, 12px 12px, 12px 0, calc(100% - 12px) 0, calc(100% - 12px) 12px, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 12px), 0 calc(100% - 12px));
}
.km-pad-grip {
  position: absolute;
  top: 60%;
  bottom: 0;
  width: 22%;
  background: #8898b0;
  border: 4px solid #303850;
  box-shadow: inset 0 0 0 3px #a8b8c8, 0 4px 0 #30385080;
}
.km-pad-grip.l {
  left: 7%;
}
.km-pad-grip.r {
  right: 7%;
}
.keymap .km-pad .km-key {
  position: absolute;
  transform: translate(-50%, -50%) !important;
  width: 44px;
  height: 34px;
  z-index: 1;
}
.keymap .km-pad .km-key.down {
  transform: translate(-50%, calc(-50% + 2px)) !important;
}
.keymap .km-p-sh {
  width: 76px !important;
  height: 28px !important;
  background: #c8d0d8 !important;
}
.keymap .km-pad .km-key.km-p-dp {
  width: 40px !important;
  height: 34px !important;
  background: #505868 !important;
  color: #f8f8e8 !important;
  box-shadow: inset -2px -3px 0 #303850, 0 2px 0 #202838 !important;
}
.keymap .km-p-face {
  width: 46px !important;
  height: 42px !important;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}
.keymap .km-p-mini {
  width: 58px !important;
  height: 34px !important;
  background: #c8d0d8 !important;
}
.keymap .km-pad .km-key.km-p-stick {
  width: 54px !important;
  height: 48px !important;
  background: #505868 !important;
  color: #f8f8e8 !important;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}
.keymap .km-pad .km-key.bound:not(.km-p-dp):not(.km-p-stick) {
  background: #f8f0c8 !important;
}
.keymap .km-pad .km-key.armed {
  background: #f0d898 !important;
  color: #404858 !important;
}
.km-p-dp .km-cap i,
.km-p-stick .km-cap i {
  background: #c85848;
}
.km-pad[data-pad]:not([data-pad=""]):after {
  content: "已连接：" attr(data-pad);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: #687080;
  white-space: nowrap;
}
@media (max-height:470px) {
  .keymap {
    gap: 4px;
  }
  .keymap .km-hint {
    font-size: 11px;
  }
  .keymap .km-act {
    font-size: 11px;
    padding: 1px 6px !important;
  }
  .keymap .km-key {
    height: 29px;
  }
  .km-cap b {
    font-size: 11px;
  }
  .km-cap i {
    font-size: 9px;
    line-height: 11px;
  }
  .km-kb {
    gap: 2px;
    padding: 4px;
  }
  .km-row {
    gap: 2px;
  }
  .km-pad {
    height: 172px;
    width: 100%;
    width: min(100%, 520px);
  }
  .keymap .km-p-sh {
    height: 24px !important;
    width: 66px !important;
  }
  .keymap .km-p-face {
    width: 40px !important;
    height: 36px !important;
  }
  .keymap .km-pad .km-key.km-p-dp {
    width: 34px !important;
    height: 28px !important;
  }
  .keymap .km-pad .km-key.km-p-stick {
    width: 46px !important;
    height: 40px !important;
  }
  .keymap .km-p-mini {
    height: 30px !important;
    width: 50px !important;
  }
}
.keymap .km-pad {
  height: auto !important;
  aspect-ratio: 600/240;
  --ar: 600/240;
  width: 100%;
  width: min(100%, 600px);
}
.km-pad-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.km-pad-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.keymap .km-pad .km-key.km-p-face {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  clip-path: none !important;
  box-shadow:
    inset -2px -3px 0 #0003,
    0 0 0 3px var(--face),
    0 3px 0 #202838 !important;
}
.keymap .km-pad .km-key.km-p-face[data-k="0"] {
  --face:#4fae5c;
}
.keymap .km-pad .km-key.km-p-face[data-k="1"] {
  --face:#d8574a;
}
.keymap .km-pad .km-key.km-p-face[data-k="2"] {
  --face:#4a7fd0;
}
.keymap .km-pad .km-key.km-p-face[data-k="3"] {
  --face:#e0b030;
}
.keymap .km-pad .km-key.km-p-face:not(.bound):not(.armed) {
  background: var(--face) !important;
  color: #fff !important;
}
.keymap .km-pad .km-key.km-p-stick {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  clip-path: none !important;
  box-shadow: inset 0 -4px 0 #303850, 0 0 0 3px #3a4458 !important;
}
.keymap .km-pad .km-key.km-p-sh {
  border-radius: 8px !important;
}
@media (max-height:420px) {
  .keymap .km-pad {
    width: 100%;
    width: min(100%, 430px);
  }
  .keymap .km-pad .km-key.km-p-face {
    width: 32px !important;
    height: 32px !important;
  }
  .keymap .km-pad .km-key.km-p-stick {
    width: 42px !important;
    height: 42px !important;
  }
}
.km-boards {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.km-boards .km-kb {
  flex: 1 1 auto;
  min-width: 0;
}
.km-mouse-box {
  flex: 0 0 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.km-mouse {
  position: relative;
  width: 170px;
  margin-left: 8px;
  aspect-ratio: 240/320;
  --ar: 240/320;
  filter: drop-shadow(0 4px 0 #30385080);
}
.km-mouse-art,
.km-mouse-art svg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.keymap .km-mouse .km-key {
  position: absolute;
  transform: translate(-50%, -50%) !important;
  z-index: 1;
}
.keymap .km-mouse .km-key.down {
  transform: translate(-50%, calc(-50% + 2px)) !important;
}
.keymap .km-mouse .km-key.km-m-main {
  width: 50px;
  height: 56px;
}
.keymap .km-mouse .km-key.km-m-wh {
  width: 32px;
  height: 29px;
  background: #505868 !important;
  color: #f8f8e8 !important;
  box-shadow: inset -2px -2px 0 #303850, 0 2px 0 #202838 !important;
}
.keymap .km-mouse .km-key.km-m-wh .km-cap b {
  font-size: 10px;
}
.keymap .km-mouse .km-key.km-m-side {
  width: 40px;
  height: 27px;
  background: #6f7d96 !important;
  color: #f8f8e8 !important;
  box-shadow: inset -2px -2px 0 #404858, 0 2px 0 #202838 !important;
}
.keymap .km-mouse .km-key.km-m-wh.bound,
.keymap .km-mouse .km-key.km-m-side.bound {
  background: #f8f0c8 !important;
  color: #404858 !important;
}
.keymap .km-mouse .km-key.unseen:not(.bound) {
  opacity: .45;
}
.keymap .km-mouse .km-key.armed {
  background: #f0d898 !important;
  color: #404858 !important;
}
.km-mouse .km-cap i {
  font-size: 9px;
  line-height: 11px;
}
.km-mouse-more {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}
.keymap .km-mouse-more .km-key {
  width: 48px;
  height: 30px;
}
.km-mouse-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #606878;
}
@media (max-width:760px) {
  .km-boards {
    flex-direction: column;
  }
  .km-mouse-box {
    flex: none;
  }
}
@media (max-height:470px) {
  .km-mouse-box {
    flex-basis: 146px;
  }
  .km-mouse {
    width: 136px;
  }
  .keymap .km-mouse .km-key.km-m-main {
    width: 42px;
    height: 46px;
  }
  .keymap .km-mouse .km-key.km-m-wh {
    width: 28px;
    height: 24px;
  }
  .keymap .km-mouse .km-key.km-m-side {
    width: 34px;
    height: 23px;
  }
}
@media (min-height:600px) and (min-width:1000px) {
  .km-mouse-box {
    flex-basis: 226px;
  }
  .km-mouse {
    width: 210px;
  }
  .keymap .km-mouse .km-key.km-m-main {
    width: 58px;
    height: 66px;
  }
  .keymap .km-mouse .km-key.km-m-wh {
    width: 36px;
    height: 32px;
  }
}
.km-wheel {
  margin-top: 6px;
  padding: 6px 8px;
  border: 3px solid #c8c0a0;
  background: #f4eed8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.km-wheel-h {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.km-wheel-h b {
  font-size: 13px;
}
.km-wheel-h span {
  font-size: 11px;
  color: #606878;
}
.km-wrow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  padding: 2px 4px;
}
.km-wrow.on {
  background: #f8e8a8;
}
.km-wrow em {
  font-style: normal;
  font-weight: 700;
  min-width: 4em;
}
.km-wrow i {
  font-style: normal;
  font-size: 11px;
  color: #b05048;
  min-width: 5em;
}
.km-wsel {
  font: inherit;
  font-size: 12px;
  padding: 2px 4px;
  max-width: 12em;
  border: 2px solid #303850;
  background: #fff;
}
.km-wheel-btns {
  display: flex;
  gap: 6px;
}
.keymap .km-wheel button {
  min-height: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 1px 10px !important;
  font-size: 12px !important;
  line-height: 1.4;
  border-width: 3px !important;
}
.friend-button {
  position: relative;
}
.friend-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  white-space: nowrap;
}
.friend-dot {
  position: absolute;
  right: -8px;
  top: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #e8402c;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fffbec;
  font-style: normal;
}
.friend-dot[hidden] {
  display: none;
}
.fr-panel {
  overflow: auto;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 140px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}
@media (orientation:landscape) {
  main.page > .fr-panel {
    flex: 1 1 0 !important;
    height: auto !important;
    max-height: none !important;
  }
}
.fr-page {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  flex: 1 1 auto;
}
.fr-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fr-tab {
  position: relative;
}
.fr-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e8402c;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}
.fr-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #f8f8e8;
  border: 3px solid #c8c8b0;
  cursor: pointer;
  min-height: 48px;
}
.fr-row:hover {
  border-color: #8890a8;
}
.fr-row.star {
  border-color: #e0a830;
  background: #fff8dc;
}
.fr-row.off {
  opacity: .6;
}
.fr-row.fr-xiaoka {
  border-color: #58a0d8;
  background: #eef6ff;
}
.fr-avatar {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.fr-avatar.fr-ka {
  object-position: center top;
}
.fr-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.fr-main small {
  color: #687080;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-tag {
  font-size: 10px !important;
  color: #fff !important;
  background: #58a0d8;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 400;
}
.fr-star {
  color: #e0a830;
  font-style: normal;
}
.fr-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  flex: none;
  background: #a0a8b8;
  display: inline-block;
}
.fr-dot.st-online {
  background: #58b070;
}
.fr-dot.st-battle {
  background: #d85040;
}
.fr-dot.st-road {
  background: #e0a830;
}
.fr-dot.st-off {
  background: #585868;
}
.fr-status {
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.fr-empty {
  padding: 10px 4px;
}
.fr-foot {
  margin-top: 6px;
  font-size: 12px;
}
.fr-req .small-btn,
.fr-person .small-btn {
  flex: none;
}
.fr-search-row {
  display: flex;
  gap: 6px;
}
.fr-search {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  padding: 6px 8px;
  border: 3px solid #8890a8;
  background: #fff;
}
.fr-greets .chip {
  font-size: 12px;
  padding: 2px 8px !important;
}
.fr-back-btn {
  align-self: flex-start;
}
.fr-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #f8f8e8;
  border: 3px solid #c8c8b0;
}
.fr-card-pic {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.fr-acts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}
.fr-act {
  min-height: 38px;
}
.fr-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fr-chat-head small {
  color: #687080;
}
.fr-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  min-height: 120px;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 360px);
  padding: 8px;
  background: #e8e8d8;
  border: 3px solid #c8c8b0;
}
.fr-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 86%;
}
.fr-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.fr-msg small {
  font-size: 10px;
  color: #8890a0;
  margin-top: 1px;
}
.fr-bubble {
  display: block;
  padding: 6px 10px;
  background: #fff;
  border: 2px solid #b0b8c8;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 14px;
}
.fr-msg.mine .fr-bubble {
  background: #dff3d8;
  border-color: #88b878;
}
.fr-msg.ka.event .fr-bubble {
  border-color: #58a0d8;
  background: #eef6ff;
}
.fr-md {
  white-space: normal;
}
.fr-md p {
  margin: 0 0 4px;
}
.fr-md p:last-child {
  margin-bottom: 0;
}
.fr-md ul,
.fr-md ol {
  margin: 2px 0 4px 18px;
  padding: 0;
}
.fr-md code {
  background: #eceff4;
  padding: 0 3px;
}
.fr-link {
  color: #2a62b8;
  text-decoration: underline;
  cursor: pointer;
}
.fr-chat-body {
  display: flex;
  gap: 10px;
  flex: 1 1 0;
  min-height: 200px;
}
.fr-chat-body > * {
  min-width: 0;
  min-height: 0;
}
.fr-chat-body > :first-child {
  flex: 1.3 1 0;
}
.fr-chat-body > :last-child {
  flex: 1 1 0;
}
.fr-chatting > .eyebrow {
  display: none;
}
.fr-chat-body .fr-msgs {
  max-height: none;
  min-height: 0;
  height: auto;
}
.fr-msgs > * {
  flex-shrink: 0;
}
.fr-picker {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fffef6;
  border: 3px solid #8890a8;
}
.fr-cats {
  display: flex;
  flex-wrap: wrap;
  background: #d8dccc;
  border-bottom: 3px solid #8890a8;
  flex: none;
}
.fr-picker button.fr-cat {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 0 -3px;
  padding: 6px 8px !important;
  border: 0;
  border-right: 2px solid #b8bca8;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
  transform: none;
  text-shadow: none;
  color: #5a6270;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.fr-picker button.fr-cat:last-child {
  border-right: 0;
}
.fr-picker button.fr-cat:hover:enabled {
  background: #e8ecdc;
  color: #303848;
  filter: none;
  border-color: #b8bca8 #b8bca8 transparent;
}
.fr-picker button.fr-cat.on,
.fr-picker button.fr-cat.on:hover:enabled {
  background: #fffef6;
  color: #b05048;
  font-weight: 700;
  border-bottom: 3px solid #e05848;
}
.fr-phrases {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
  align-content: start;
}
.fr-picker button.fr-phrase {
  -webkit-appearance: none;
  appearance: none;
  min-height: 0 !important;
  padding: 7px 10px 7px 9px !important;
  border: 2px solid #a8c898;
  border-left: 5px solid #78a868;
  border-radius: 0;
  background: #f2f9ec;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  color: #2c3a2c;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}
.fr-picker button.fr-phrase:hover:enabled {
  background: #dff3d8;
  border-color: #88b878 #88b878 #88b878 #4f8a44;
  filter: none;
}
.fr-picker button.fr-phrase:active:enabled {
  transform: translateY(1px);
  box-shadow: none;
}
.fr-picker button.fr-phrase:disabled {
  opacity: .5;
}
.fr-ka-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  min-width: 0;
}
.fr-ka-left .fr-msgs {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  height: auto;
}
.fr-ka-left .acct-msg:empty {
  display: none;
}
.fr-ka-bar .fr-ka-input {
  height: 38px;
  min-height: 0;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1.4;
}
.fr-ka-bar button {
  min-height: 0 !important;
  height: 38px;
  padding: 0 14px !important;
  font-size: 14px !important;
}
.fr-chat-head .fr-ka-left-n {
  margin-left: auto;
  font-size: 11px;
}
.fr-chat-head .fr-ka-daily {
  min-height: 0 !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
}
.fr-picker button.fr-cmd {
  border-left-color: #58a0d8;
  border-color: #b8d0e8 #b8d0e8 #b8d0e8 #58a0d8;
  background: #eef6ff;
  color: #283848;
}
.fr-picker button.fr-cmd:hover:enabled {
  background: #dcecff;
  border-color: #88b0d8 #88b0d8 #88b0d8 #3a80c0;
}
.fr-picker button.fr-cmd.fill:after {
  content: "…";
  color: #8890a0;
}
.fr-pick-note {
  flex: none;
  padding: 3px 8px 4px;
  font-size: 11px;
  color: #8890a0;
  border-top: 2px dashed #d8dccc;
}
.fr-ka-bar {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.fr-ka-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 3px solid #8890a8;
  background: #fff;
  resize: none;
}
.fr-ka-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fr-ka-daily.on {
  background: #dff3d8;
}
.fr-ka-bind {
  padding: 8px;
}
@media (orientation:landscape) and (max-height:470px) {
  .fr-ka-bar .fr-ka-input,
  .fr-ka-bar button {
    height: 30px;
  }
  .fr-ka-bar .fr-ka-input {
    padding: 4px 6px;
    font-size: 12px;
  }
  .fr-ka-bar button {
    font-size: 12px !important;
  }
  .fr-row {
    min-height: 40px;
    padding: 4px 8px;
  }
  .fr-avatar {
    width: 30px;
    height: 30px;
  }
  .fr-msgs {
    max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 300px);
    min-height: 90px;
  }
  .fr-chat-body {
    min-height: 140px;
    gap: 8px;
  }
  .fr-picker button.fr-cat {
    padding: 4px 6px !important;
    font-size: 12px !important;
  }
  .fr-phrases {
    padding: 6px;
    gap: 5px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .fr-picker button.fr-phrase {
    padding: 4px 8px 4px 7px !important;
    font-size: 12px !important;
  }
  .fr-card-pic {
    width: 48px;
    height: 48px;
  }
  .fr-panel {
    padding: 8px 10px;
  }
}
@media (orientation:portrait) {
  .fr-msgs {
    max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 420px);
  }
  .fr-chat-body {
    flex-direction: column;
    flex: none;
  }
  .fr-chat-body > :first-child,
  .fr-chat-body > :last-child {
    flex: none;
  }
  .fr-chat-body .fr-msgs {
    min-height: 160px;
    height: auto;
    max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 480px);
  }
  .fr-phrases {
    max-height: 180px;
  }
  .fr-acts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fr-md .fr-md-table {
  overflow-x: auto;
  margin: 2px 0 6px;
}
.fr-md table {
  border-collapse: collapse;
  font-size: .92em;
}
.fr-md th,
.fr-md td {
  border: 1px solid #b8c0d0;
  padding: 2px 6px;
  text-align: left;
  vertical-align: top;
}
.fr-md th {
  background: #eceff4;
}
.fr-md .fr-hr {
  border: 0;
  border-top: 2px dashed #b8c0d0;
  margin: 6px 0;
}
.fr-md .fr-quote {
  margin: 2px 0 4px;
  padding: 2px 8px;
  border-left: 3px solid #c8a050;
  background: #fff8e0;
}
.fr-md li.fr-sub {
  margin-left: 14px;
  list-style-type: circle;
}
.rk-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  min-height: 0;
  overflow: hidden;
  max-height: calc(var(--game-height,var(--app-vh, 100vh)) - 140px);
}
@media (orientation:landscape) {
  main.page > .rk-panel {
    flex: 1 1 0 !important;
    height: auto !important;
    max-height: none !important;
  }
}
.rk-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
  gap: 14px;
}
.rk-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  padding: 14px 2px 2px;
}
.rk-tabs .rk-tab {
  flex: none;
  min-height: var(--ui-btn-sm-h) !important;
  padding: 0 var(--ui-btn-sm-px) !important;
  font-size: var(--ui-btn-sm-fs) !important;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.rk-tabs .rk-tab.on {
  background: #f8d050 !important;
  color: #5a3a00 !important;
}
.rk-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin-top: 12px;
  padding: 16px 12px 10px !important;
}
.rk-frame .rk-title {
  flex: none;
  margin: 0 2px;
}
.rk-frame .rk-note {
  flex: none;
}
.rk-board {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rk-rows {
  --rk-row:34px;
  --rk-gap:4px;
  display: grid;
  grid-template-columns: repeat(var(--rk-cols,1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rk-per,10), var(--rk-row));
  grid-auto-flow: column;
  gap: var(--rk-gap) 10px;
  align-content: start;
}
.road-frame .rk-rows.board-list {
  border: 0;
  background: none;
}
.rk-rows .board-row {
  height: var(--rk-row);
  box-sizing: border-box;
  min-width: 0;
  padding: 0 8px;
  border: 2px solid #f0e2bc !important;
  background: #fffdf3;
  cursor: pointer;
  font-size: var(--ui-fs-body,14px);
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.rk-rows .board-row:hover {
  background: #fff6d6;
}
.rk-rows .board-row:focus-visible {
  outline: 3px solid #3a56a8;
  outline-offset: -3px;
}
.rk-rows .board-nm {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-rows .board-best {
  white-space: nowrap;
}
.rk-rows .board-empty {
  grid-row: 1/-1;
  grid-column: 1/-1;
  border: 0;
}
.rk-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.rk-foot .rk-me {
  flex: 1 1 220px;
  margin: 0 !important;
  min-width: 0;
}
.rk-me.none {
  color: #8a7a5a !important;
  font-weight: 400;
}
.rk-pager {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  max-width: 100%;
}
.rk-pager[hidden] {
  display: none;
}
.rk-pager [hidden] {
  display: none;
}
.rk-pager .small-btn {
  min-height: var(--ui-btn-sm-h) !important;
  padding: 0 var(--ui-btn-sm-px) !important;
  font-size: var(--ui-btn-sm-fs) !important;
  font-weight: 700;
  white-space: nowrap;
}
.rk-page-no {
  min-width: 3.5em;
  text-align: center;
  font-weight: 700;
  color: #5a4410;
  font-variant-numeric: tabular-nums;
}
@media (max-height:470px) {
  .rk-panel {
    padding: 6px 10px;
    gap: 4px;
  }
  .rk-body {
    gap: 8px;
    grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  }
  .rk-tabs {
    gap: 3px;
    padding-top: 10px;
  }
  .rk-frame {
    margin-top: 10px;
    padding: 11px 8px 6px !important;
  }
  .rk-frame .board-note {
    margin-bottom: 3px;
  }
  .rk-rows {
    --rk-row:26px;
    --rk-gap:3px;
  }
  .rk-rows .board-row {
    padding: 0 6px;
    font-size: 13px;
  }
  .rk-foot {
    margin-top: 4px;
    gap: 6px;
  }
  .rk-foot .rk-me {
    padding: 2px 8px;
  }
}
@media (orientation:portrait) {
  .rk-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
  }
  .rk-pager {
    flex: 1 1 100%;
    justify-content: center;
    margin-left: 0;
  }
  .rk-pager .small-btn {
    padding: 0 8px !important;
  }
  .rk-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 2px;
  }
  .rk-tabs .rk-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}
.board-row.top1 {
  background: #ffe7a0 !important;
  border-color: #e0b030 !important;
}
.board-row.top2 {
  background: #eceff5 !important;
  border-color: #b8c2d2 !important;
}
.board-row.top3 {
  background: #f8dcc4 !important;
  border-color: #d8a070 !important;
}
.board-row.top1 .board-rank, .board-row.top2 .board-rank, .board-row.top3 .board-rank {
  justify-self: end;
  min-width: 22px;
  padding: 0 4px;
  text-align: center;
  line-height: 20px;
  font-weight: 700;
  box-shadow: inset 0 2px 0 #ffffff80, inset 0 -2px 0 #0000001f;
}
.board-row.top1 .board-rank {
  background: #f0b818;
  color: #5a3a00;
}
.board-row.top2 .board-rank {
  background: #a8b4c6;
  color: #fff;
}
.board-row.top3 .board-rank {
  background: #c87a40;
  color: #fff;
}
.board-row.top1 .board-nm, .board-row.top2 .board-nm, .board-row.top3 .board-nm {
  font-weight: 700;
}
.board-row.me {
  box-shadow: inset 4px 0 0 #e08a20;
}
.board-row:nth-child(-n+3):not(.top1, .top2, .top3) .board-rank {
  color: #8a6a40;
}
.fr-hb-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0 1px;
}
.fr-hb-refs .fr-hb-btn {
  margin: 0 !important;
  padding: 1px 8px !important;
  min-height: 0 !important;
  font-size: 12px;
  line-height: 18px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-ka-stats {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fr-ka-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
}
.fr-ka-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #f8f8e8;
  border: 3px solid #c8c8b0;
  font-size: 13px;
}
.fr-ka-stat span {
  color: #5a6070;
}
.fr-ka-stat b {
  font-weight: 700;
  text-align: right;
  color: #283040;
}
.fr-ka-stats > * {
  flex: none;
}
.fr-ka-stat.wide {
  grid-column: 1/-1;
}
.fr-ka-stat-h {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 13px;
}
.fr-ka-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fr-ka-models span {
  padding: 2px 8px;
  background: #f8f8e8;
  border: 3px solid #c8c8b0;
  font-size: 12px;
  font-weight: 700;
}
.fr-ka-days {
  display: flex;
  gap: 6px;
  height: 96px;
  align-items: stretch;
  padding: 4px 6px 2px;
  background: #f8f8e8;
  border: 3px solid #c8c8b0;
}
.fr-ka-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.fr-ka-day i {
  display: block;
  width: 56%;
  max-width: 46px;
  min-height: 3px;
  background: #58a0d8;
  border: 2px solid #2d5c8a;
  border-bottom: 0;
  box-shadow: inset 3px 0 #8cc4ec;
}
.fr-ka-day small {
  font-size: 10px;
  color: #667;
}
.rk-tabs .rk-tab.hall {
  border-color: #c89820 !important;
  color: #7a5200 !important;
}
.rk-tabs .rk-tab.hall.on {
  background: #f8d050 !important;
  color: #5a3a00 !important;
}
.rk-title .rk-seasons {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.rk-title .rk-season {
  min-height: 0;
  padding: 1px 8px;
  font-size: 12px;
}
.rk-title .rk-season.on {
  background: #f8d050;
  border-color: #c89820;
  color: #5a3a00;
}
.rk-frame.is-hall .rk-board {
  overflow: hidden;
}
.hall-strip {
  --hall-k:3;
  display: flex;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}
.hall-col {
  flex: 0 0 calc((100% - (var(--hall-k) - 1) * 12px) / var(--hall-k));
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 2px solid #c89820;
  border-radius: 6px;
  background: #fff8e0;
  padding: 6px;
}
.hall-col-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  padding: 0 2px 6px;
  border-bottom: 1px dashed #e0c070;
  margin-bottom: 6px;
}
.hall-col-head b {
  font-size: 16px;
  color: #7a5200;
}
.hall-col-head small {
  font-size: 11px;
  color: #8a7040;
  line-height: 1.35;
}
.hall-col-n {
  color: #b88800 !important;
}
.hall-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  height: 24px;
}
.hall-season-pick {
  position: relative;
  flex: none;
}
.hall-season-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  border: 2px solid #c89820;
  border-radius: 6px;
  background: #fffaf0;
  color: #7a5200;
  white-space: nowrap;
}
.hall-season-btn:hover {
  background: #f8e8b0;
}
.hall-season-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: #fffaf0;
  border: 2px solid #c89820;
  border-radius: 6px;
  box-shadow: 0 4px 10px #0003;
}
.hall-season-menu[hidden] {
  display: none;
}
.hall-season-menu .rk-season {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 2px 14px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #e0c070;
  border-radius: 5px;
  background: #fff;
  color: #7a5200;
  white-space: nowrap;
  text-align: center;
}
.hall-season-menu .rk-season.on {
  background: #f8d050;
  border-color: #c89820;
  color: #5a3a00;
}
.hall-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hall-col-list .board-row {
  flex: none;
}
.hall-col-empty {
  font-size: 12px;
  color: #8a7040;
  padding: 12px 4px;
  text-align: center;
}
.hall-col-me {
  flex: none;
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a3a00;
  background: #f8e8b0;
  border-radius: 4px;
  padding: 3px 6px;
}
.hall-col-me.none {
  color: #8a7040;
  background: #f4ecd0;
}
.rk-frame.is-hall .rk-me {
  display: none;
}
.rk-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rk-head-row .rk-note {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.rk-head-row .rk-pager {
  flex: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rk-head-row .rk-pager .small-btn {
  min-height: 0;
  padding: 2px 10px;
}
.rk-frame.is-hall .rk-foot {
  display: none;
}
.hall-col {
  padding: 5px 6px;
}
.hall-col-head {
  gap: 1px;
  padding: 0 2px 4px;
  margin-bottom: 4px;
}
.hall-col-title {
  height: 22px;
}
.hall-col-title b {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-col-n {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 9px;
  background: #f8e8b0;
  line-height: 18px;
}
.hall-col-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hall-col-list {
  gap: 2px;
}
.hall-col-list .board-row {
  min-height: 0 !important;
  height: 28px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 13px;
}
.hall-col-list .board-row .board-rank {
  min-width: 22px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}
.hall-col-me {
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 11px;
}
:root {
  --ui-btn-lg-h:60px;
  --ui-btn-lg-fs:18px;
  --ui-btn-lg-px:24px;
  --ui-btn-h:48px;
  --ui-btn-fs:16px;
  --ui-btn-px:18px;
  --ui-btn-minw:88px;
  --ui-btn-sm-h:38px;
  --ui-btn-sm-fs:14px;
  --ui-btn-sm-px:12px;
  --ui-btn-xs-h:30px;
  --ui-btn-xs-fs:12px;
  --ui-btn-xs-px:8px;
  --ui-top-h:52px;
  --ui-top-fs:15px;
  --ui-fs-title:24px;
  --ui-fs-h3:16px;
  --ui-fs-body:14px;
  --ui-fs-note:12px;
  --ui-fs-num:18px;
  --ui-fs-eyebrow:11px;
  --ui-c-title:#404858;
  --ui-c-h3:#b05048;
  --ui-c-note:#687080 ;
}
@media (max-height:470px) {
  :root {
    --ui-btn-lg-h:42px;
    --ui-btn-lg-fs:15px;
    --ui-btn-lg-px:14px;
    --ui-btn-h:34px;
    --ui-btn-fs:13px;
    --ui-btn-px:12px;
    --ui-btn-minw:68px;
    --ui-btn-sm-h:28px;
    --ui-btn-sm-fs:12px;
    --ui-btn-sm-px:9px;
    --ui-btn-xs-h:24px;
    --ui-btn-xs-fs:11px;
    --ui-btn-xs-px:6px;
    --ui-top-h:36px;
    --ui-top-fs:12px;
    --ui-fs-title:18px;
    --ui-fs-h3:14px;
    --ui-fs-body:12px;
    --ui-fs-note:11px;
    --ui-fs-num:15px;
    --ui-fs-eyebrow:10px ;
  }
}
@media (max-width:600px) and (min-height:471px) {
  :root {
    --ui-top-h:44px;
  }
}
.briefing .brief-buttons > button,
.report-actions > button,
.road-actions .road-go,
.road-actions .road-pack-btn,
.exp-battle-result > .panel:not(.victory-card) > button {
  min-height: var(--ui-btn-lg-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--ui-btn-lg-px) !important;
  padding-right: var(--ui-btn-lg-px) !important;
  font-size: var(--ui-btn-lg-fs) !important;
  font-weight: 700;
  line-height: 1.2;
}
.road-actions .road-pack-btn,
.briefing .brief-buttons > .auto-clear {
  font-size: var(--ui-btn-fs) !important;
}
.dialog .dialog-actions button,
.arena-head-actions > button,
.arena-panel .opponent > button.primary,
.shop-head > button,
.lan-row > button,
.lan-join > .lan-scan-btn,
.set-row > button:not(.switch):not(.key-cap),
.about-actions > button,
.briefing-head .info-button {
  min-height: var(--ui-btn-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--ui-btn-px) !important;
  padding-right: var(--ui-btn-px) !important;
  font-size: var(--ui-btn-fs) !important;
  font-weight: 700;
  line-height: 1.2;
}
.dialog .dialog-actions button {
  min-width: var(--ui-btn-minw);
}
.profile-back .dialog-actions .pf-rename, .profile-back .dialog-actions .pf-look, .profile-back .dialog-actions .pf-account, .profile-back .dialog-actions .pf-show-set {
  min-height: var(--ui-btn-h) !important;
  padding: 0 var(--ui-btn-px) !important;
  font-size: var(--ui-btn-fs) !important;
}
.settings-back .dialog-actions button,
.profile-back .dialog-actions button {
  min-height: var(--ui-btn-h) !important;
}
.pocket-tabs button,
.mart-modes .mart-mode,
.mart-sell-tools button,
.set-tab,
.set-chips .chip,
.seg .seg-btn,
.set-row .switch,
.set-row .key-cap,
.champion-sub button,
.road-shop-bar .champion-refresh,
.board-main button,
.remote-tabs .chip,
body[data-screen=tasks] .task button {
  min-height: var(--ui-btn-sm-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--ui-btn-sm-px) !important;
  padding-right: var(--ui-btn-sm-px) !important;
  font-size: var(--ui-btn-sm-fs) !important;
  font-weight: 700;
  line-height: 1.2;
}
.stats-head .ev-toggle,
.pc-screen .pc-actions button,
.lan-join .lan-manual,
.pf-show-h .pf-show-set {
  min-height: var(--ui-btn-xs-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--ui-btn-xs-px) !important;
  padding-right: var(--ui-btn-xs-px) !important;
  font-size: var(--ui-btn-xs-fs) !important;
  font-weight: 700;
  line-height: 1.2;
}
.lan-join .lan-manual {
  height: auto !important;
  width: auto !important;
}
.pc-screen .pc-actions button {
  padding-left: 3px !important;
  padding-right: 3px !important;
}
@media (max-height:470px) {
  .pc-screen .pc-actions button {
    font-size: 10px !important;
  }
}
.topbar .top-back,
.topbar .resource-pill,
.topbar .tut-button,
.topbar .friend-button,
.topbar .top-actions > button {
  min-height: var(--ui-top-h) !important;
  height: var(--ui-top-h);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.topbar .top-back,
.topbar .tut-button,
.topbar .friend-button,
.topbar .top-actions > button {
  font-size: var(--ui-top-fs) !important;
  font-weight: 700;
}
.topbar .top-back {
  display: inline-flex;
  align-items: center;
}
:root {
  --ui-top-px:10px;
  --ui-top-gap:6px;
}
@media (max-height:470px) {
  :root {
    --ui-top-px:6px;
    --ui-top-gap:4px;
  }
}
@media (orientation:portrait) and (max-width:480px) {
  :root {
    --ui-top-px:7px;
  }
}
.topbar .top-back,
.topbar .resource-pill,
.topbar .tut-button,
.topbar .friend-button,
.topbar .top-actions > button {
  padding-left: var(--ui-top-px) !important;
  padding-right: var(--ui-top-px) !important;
}
.topbar .resource-pill {
  gap: var(--ui-top-gap) !important;
}
.topbar.tb-tight .top-back, .topbar.tb-tight .resource-pill, .topbar.tb-tight .tut-button, .topbar.tb-tight .friend-button, .topbar.tb-tight .top-actions > button {
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.topbar.tb-noname .page-name {
  display: none !important;
}
.dex-panel > h1,
.tasks-panel > h1,
.arena-panel .section-heading h1,
.report h1,
.report-main > h1,
.stage-list > h2,
.briefing-head h2,
.lan-layout .panel > h2,
.shop-head h2,
.road-status-title h2,
.dialog > h2,
.exp-battle-result > .panel:not(.victory-card) > h2 {
  font-size: var(--ui-fs-title) !important;
  line-height: 1.25;
}
.dex-panel > h1,
.tasks-panel > h1,
.arena-panel .section-heading h1,
.stage-list > h2,
.briefing-head h2,
.lan-layout .panel > h2,
.shop-head h2,
.dialog > h2 {
  color: var(--ui-c-title);
}
.set-h,
.road-rules-sec > h3,
.pc-screen h3,
.stats-head > h3 {
  font-size: var(--ui-fs-h3) !important;
  line-height: 1.3;
}
.eyebrow {
  font-size: var(--ui-fs-eyebrow) !important;
  letter-spacing: 1px;
}
.dialog > p,
.dialog .sub {
  font-size: var(--ui-fs-body);
}
.shop-head > small.muted {
  flex: 1;
  min-width: 0;
  align-self: center;
}
.shop-head > button {
  margin: 0 !important;
  align-self: center;
  white-space: nowrap;
}
@media (max-height:470px) {
  button.primary {
    border-width: 4px;
  }
}
html,
body,
* {
  -webkit-tap-highlight-color: transparent;
}
@font-face {
  font-family: MapPixel;
  src: url(/_expedition/assets/pokesurvivor/fonts/MapPixel.woff2) format("woff2");
  font-display: block;
}
.rmap-back {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(24, 16, 10, .55),
      rgba(10, 6, 4, .86));
  animation: rmapIn .22s ease-out;
}
@keyframes rmapIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.road-map-host {
  background: #1a1410;
}
.rmap {
  position: relative;
  width: 96vw;
  width: min(96vw, calc((100vh - 16px)*16/9));
  aspect-ratio: 16/9;
  --ar: 16/9;
  max-height: calc(100vh - 16px);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35));
  animation: rmapUnroll .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes rmapUnroll {
  from {
    transform: scaleX(.92) translateY(6px);
    opacity: .4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.rmap-paper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.rmap-nodes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.rmap-floor {
  position: absolute;
  top: 17%;
  transform: translateX(-50%);
  font: 12px/1 var(--font);
  color: #6a4a2a;
  opacity: .85;
  pointer-events: none;
  letter-spacing: 1px;
}
.rmap-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s;
}
.rmap-node:hover,
.rmap-node.sel {
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 3;
}
.rmap-seal {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f0e0b4;
  box-shadow: 0 0 0 3px #3a2414, inset 0 0 0 2px #c8a86a;
  overflow: hidden;
}
.rmap-seal img {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 118%;
  transform: translateX(-50%);
  image-rendering: pixelated;
  filter: sepia(.25) contrast(1.05);
}
.rmap-node.k-elite {
  width: 50px;
  height: 50px;
}
.rmap-node.k-elite .rmap-seal {
  background: #f2d0b0;
  box-shadow:
    0 0 0 3px #3a2414,
    0 0 0 6px #a8322a,
    0 0 0 8px #3a2414,
    inset 0 0 0 2px #e8a080;
}
.rmap-node.k-elite::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: -12px;
  left: -12px;
  background:
    conic-gradient(
      from 0deg,
      #3a2414 0 6deg,
      transparent 6deg 30deg,
      #3a2414 30deg 36deg,
      transparent 36deg 60deg,
      #3a2414 60deg 66deg,
      transparent 66deg 90deg,
      #3a2414 90deg 96deg,
      transparent 96deg 120deg,
      #3a2414 120deg 126deg,
      transparent 126deg 150deg,
      #3a2414 150deg 156deg,
      transparent 156deg 180deg,
      #3a2414 180deg 186deg,
      transparent 186deg 210deg,
      #3a2414 210deg 216deg,
      transparent 216deg 240deg,
      #3a2414 240deg 246deg,
      transparent 246deg 270deg,
      #3a2414 270deg 276deg,
      transparent 276deg 300deg,
      #3a2414 300deg 306deg,
      transparent 306deg 330deg,
      #3a2414 330deg 336deg,
      transparent 336deg);
  -webkit-mask:
    radial-gradient(
      circle,
      transparent 31px,
      #000 32px,
      #000 37px,
      transparent 38px);
  mask:
    radial-gradient(
      circle,
      transparent 31px,
      #000 32px,
      #000 37px,
      transparent 38px);
  opacity: .85;
}
.rmap-node.k-boss {
  width: 70px;
  height: 70px;
}
.rmap-node.k-boss .rmap-seal {
  background: #f4e2a8;
  box-shadow:
    0 0 0 3px #3a2414,
    0 0 0 7px #e0a828,
    0 0 0 9px #3a2414,
    inset 0 0 0 3px #fff0b0;
}
.rmap-crown {
  position: absolute;
  left: 50%;
  top: -24px;
  width: 34px;
  height: 20px;
  transform: translateX(-50%);
  display: block;
}
.rmap-crown svg,
.rmap-ic svg,
.rmap-card-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rmap-ic {
  display: block;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 0 rgba(58, 36, 20, .35));
}
.rmap-node.done .rmap-seal,
.rmap-node.done .rmap-ic {
  filter: grayscale(.5) brightness(.95);
}
.rmap-node.done::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  border-radius: 50%;
  border: 3px solid #a8322a;
  transform: rotate(-8deg);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%);
}
.rmap-node.past:not(.done) {
  opacity: .38;
  filter: grayscale(.8);
}
.rmap-node.open {
  animation: rmapPulse 1.1s ease-in-out infinite;
}
.rmap-node.open .rmap-seal,
.rmap-node.open .rmap-ic {
  box-shadow:
    0 0 0 3px #3a2414,
    0 0 0 6px #ffd86a,
    0 0 14px 6px rgba(255, 216, 106, .75);
}
.rmap-node.open .rmap-ic {
  border-radius: 4px;
}
@keyframes rmapPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}
.rmap-pin {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 16px;
  height: 24px;
  transform: translateX(-50%);
  background: linear-gradient(#a8322a, #a8322a) 2px 0/12px 10px no-repeat, linear-gradient(#3a2414, #3a2414) 0 0/2px 24px no-repeat;
  animation: rmapPin 1.4s ease-in-out infinite;
  image-rendering: pixelated;
}
@keyframes rmapPin {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}
.rmap-head {
  position: absolute;
  left: 4%;
  right: 4%;
  top: -2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.rmap-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #3a2414;
  color: #f8e8c0;
  padding: 5px 14px 6px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 92% 100%, 8% 100%, 0 78%);
  box-shadow: 0 2px 0 #a8322a;
  font-family: var(--font);
}
.rmap-title strong {
  font-size: 17px;
  letter-spacing: 2px;
}
.rmap-title small {
  font-size: 11px;
  color: #e0c890;
}
.rmap-hint {
  margin-top: 22px;
  flex: 1;
  text-align: center;
  font: 13px/1.3 var(--font);
  color: #4a3018;
  text-shadow: 0 1px 0 #f4e4bc;
}
.rmap-tools {
  display: flex;
  gap: 6px;
  pointer-events: auto;
  margin-top: 6px;
}
.rmap-tools button {
  padding: 3px 10px !important;
  font-size: 12px;
  min-height: 0 !important;
}
.rmap-points {
  display: flex;
  align-items: center;
  background: #f0e0b4;
  border: 2px solid #3a2414;
  padding: 0 6px;
  font-size: 12px;
}
.rmap-legend {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.2%;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 4px 12px;
  white-space: nowrap;
  background: rgba(240, 224, 180, .92);
  border: 2px solid #3a2414;
  box-shadow: 2px 2px 0 rgba(58, 36, 20, .4);
  font: 11px/1.2 var(--font);
  color: #3a2414;
  pointer-events: none;
}
.rmap-legend .lg {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rmap-buffs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 9.5%;
  flex-direction: row !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 9px;
  background: rgba(240, 224, 180, .92);
  border: 2px solid #3a2414;
  font: 11px/1.25 var(--font);
  color: #3a2414;
  white-space: nowrap;
}
.rmap-buffs span + span::before {
  content: "·";
  margin-right: 4px;
}
.rmap-buffs b {
  color: #a8322a;
}
.rmap-card {
  position: absolute;
  right: 3%;
  top: 14%;
  width: 36%;
  width: min(270px, 36%);
  padding: 10px 12px;
  background: #f4e6c0;
  border: 3px solid #3a2414;
  box-shadow: 4px 4px 0 rgba(58, 36, 20, .45);
  font-family: var(--font);
  color: #3a2414;
  z-index: 5;
  animation: rmapIn .15s;
}
.rmap-card[hidden] {
  display: none;
}
.rmap-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rmap-card-head small {
  display: block;
  font-size: 11px;
  color: #7a5a30;
}
.rmap-card-head strong {
  display: block;
  font-size: 15px;
  margin: 1px 0;
}
.rmap-card-head em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #a8322a;
}
.rmap-card-pic {
  width: 40px;
  height: 56px;
  object-fit: contain;
  object-position: top;
  image-rendering: pixelated;
  background: #e8d4a4;
  border: 2px solid #3a2414;
}
.rmap-card-ic {
  width: 40px;
  height: 40px;
  display: block;
}
.rmap-card-mons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 9px 0 8px;
}
.rmap-mon {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  --ar: 1;
  background: #e8d4a4;
  border: 2px solid #8a6a42;
}
.rmap-mon.ace {
  border-color: #a8322a;
  background: #f6d8b8;
}
.rmap-mon-pic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.rmap-mon b {
  position: absolute;
  right: -5px;
  top: -7px;
  color: #e0a020;
  font-size: 13px;
  text-shadow: 0 0 2px #3a2414, 1px 1px 0 #3a2414;
}
.rmap-card-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.rmap-card-act button {
  padding: 4px 14px !important;
  min-height: 0 !important;
}
.rest-box p {
  margin: 4px 0;
}
.rest-or {
  font-size: 13px;
  color: var(--muted);
}
.rest-opt button {
  width: 100%;
  text-align: left;
}
.rest-opt button span {
  display: flex;
  flex-direction: column;
}
.rest-opt small {
  font-size: 12px;
  opacity: .85;
}
.rest-mons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.rest-mon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px !important;
  font-size: 12px;
  min-height: 0 !important;
}
.rest-mon-pic {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.rest-mon small {
  margin-left: auto;
  opacity: .8;
}
.rw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rw-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px !important;
  min-height: 0 !important;
  text-align: center;
}
.rw-card em {
  font-style: normal;
  font-size: 11px;
  padding: 1px 8px;
  background: #3a2414;
  color: #f8e8c0;
}
.rw-card.k-buff em {
  background: #a8322a;
}
.rw-card strong {
  font-size: 14px;
}
.rw-card small {
  font-size: 11px;
  line-height: 1.35;
  opacity: .85;
}
.rw-buff-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: #a8322a;
  border: 2px solid #3a2414;
}
.road-buffs {
  font-size: 12px !important;
}
.road-map-btn {
  margin-right: 0;
}
@media (max-height:420px) {
  .rmap-node {
    width: 32px;
    height: 32px;
  }
  .rmap-node.k-elite {
    width: 42px;
    height: 42px;
  }
  .rmap-node.k-boss {
    width: 58px;
    height: 58px;
  }
  .rmap-card {
    top: 16%;
    padding: 8px 10px;
  }
  .rmap-card-mons {
    margin: 6px 0;
  }
}
.rmap,
.rmap * {
  font-family: MapPixel, var(--font) !important;
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-weight: 400 !important;
}
.rmap-title strong {
  font-size: 24px !important;
  letter-spacing: 2px;
}
.rmap-title small,
.rmap-hint,
.rmap-legend,
.rmap-buffs,
.rmap-floor,
.rmap-card small,
.rmap-card em,
.rmap-card-act,
.rmap-tools button,
.rmap-points {
  font-size: 12px !important;
}
.rmap-card-head strong {
  font-size: 24px !important;
  line-height: 1.1;
}
.rmap-legend .lg-ic {
  display: block;
  width: 13px;
  height: 13px;
  flex: none;
}
.rmap-legend .lg-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rmap-legend .k-trainer .lg-ic {
  width: 11px;
  height: 11px;
}
.rmap-legend .k-boss .lg-ic {
  width: 14px;
  height: 8px;
}
.rmap-legend i:not(.lg-ic) {
  display: none;
}
.rmap-legend,
.rmap-buffs,
.rmap-card,
.rmap-points {
  border-radius: 0 !important;
}
.rmap-art {
  display: block;
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(58, 36, 20, .4));
}
.rmap-node.open .rmap-art {
  filter: drop-shadow(0 0 6px #ffd86a) drop-shadow(0 0 2px #ffd86a);
}
.rmap-node.done .rmap-art,
.rmap-node.past .rmap-art {
  filter: grayscale(.6);
}
.rmap-card-art {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}
.rmap-card-note {
  color: #7a5a30 !important;
}
.rmap-legend .lg-art {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  display: block;
}
.rmap-points small {
  font-size: 12px;
  margin-left: 2px;
  color: #7a5a30;
}
.shop-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-head p {
  margin: 0;
}
.shop-head small {
  color: var(--muted);
}
.shop-art {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  flex: none;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
}
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px;
  border: 2px solid #8a6a42;
  background: rgba(240, 224, 180, .35);
  text-align: center;
}
.shop-card.mystery {
  border-color: #6a3a9a;
  background: rgba(160, 120, 220, .15);
}
.shop-card.sold {
  opacity: .45;
}
.shop-card strong {
  font-size: 13px;
}
.shop-card small {
  font-size: 11px;
  line-height: 1.3;
  opacity: .85;
  min-height: 2.6em;
}
.shop-buy {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-buy button {
  padding: 2px 12px !important;
  min-height: 0 !important;
}
.shop-back .dialog {
  max-width: 980px !important;
  max-width: min(96vw, 980px) !important;
  width: 96vw;
}
.shop-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  max-height: none !important;
  overflow: visible !important;
  gap: 6px !important;
}
.shop-card {
  display: grid !important;
  grid-template-columns: 36px 1fr;
  grid-template-areas: "ic nm" "ic nt" "by by";
  align-items: center;
  text-align: left !important;
  gap: 1px 6px !important;
  padding: 5px 6px !important;
}
.shop-card > .item-icon,
.shop-card > .rw-buff-ic {
  grid-area: ic;
  width: 32px !important;
  height: 32px !important;
  font-size: 14px;
}
.shop-card strong {
  grid-area: nm;
  font-size: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card small {
  grid-area: nt;
  min-height: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px !important;
}
.shop-card .shop-buy {
  grid-area: by;
  justify-content: space-between;
}
.shop-head .shop-art {
  width: 48px;
  height: 48px;
}
@media (max-width:700px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
.shop-card strong {
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.15;
  font-size: 13px !important;
}
.buff-ic {
  position: relative;
  display: inline-block;
  flex: none;
}
.buff-ic img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}
.buff-ic .buff-star {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 45%;
  height: 45%;
  min-width: 12px;
  min-height: 12px;
}
.shop-card > .buff-ic {
  grid-area: ic;
}
.rmap-buff {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rmap-buffs .buff-ic .buff-star {
  right: -3px;
  top: -3px;
}
.shop-card strong {
  white-space: nowrap !important;
  font-size: 12px !important;
}
.shop-card > .buff-ic {
  width: 32px !important;
  height: 32px !important;
}
.shop-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.shop-card strong {
  overflow: hidden !important;
  text-overflow: ellipsis;
}
@media (max-width:700px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.shop-grid.k-buffs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.shop-grid.k-buffs .shop-card {
  grid-template-columns: 40px 1fr;
}
.shop-grid.k-buffs .shop-card > .buff-ic {
  width: 40px !important;
  height: 40px !important;
}
.shop-grid.k-buffs .shop-card strong {
  font-size: 14px !important;
}
.shop-grid.k-buffs .shop-card small {
  font-size: 11px !important;
}
.rmap-seal {
  overflow: hidden !important;
}
.rmap-seal img {
  transform: none;
}
.rmap-node.k-shop,
.rmap-node.k-buffshop {
  width: 48px;
  height: 48px;
}
.rmap-node .rmap-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rmap-node.k-boss .rmap-crown {
  z-index: 2;
}
.rmap-back {
  gap: 10px;
}
.rmap {
  width: calc(96vw - 210px) !important;
  width: min(calc(96vw - 210px), calc((100vh - 16px)*16/9)) !important;
}
.rmap-side {
  flex: none;
  width: 200px;
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rmap-side .rmap-card {
  position: static !important;
  width: auto !important;
  top: auto;
  right: auto;
  animation: none;
  padding: 8px 10px;
}
.rmap-side .rmap-card-head {
  gap: 8px;
}
.rmap-side .rmap-card-head strong {
  font-size: 12px !important;
  line-height: 1.3;
}
.rmap-side .rmap-card-pic {
  width: 36px;
  height: 50px;
}
.rmap-side .rmap-card-mons {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 8px 0;
}
.rmap-side .rmap-card-act {
  flex-wrap: wrap;
}
.rmap-card-idle {
  margin: 6px 0;
  font-size: 12px;
  color: #7a5a30;
  text-align: center;
  line-height: 1.5;
}
.rmap-back {
  gap: 8px;
}
.rmap {
  width: calc(96vw - 2 * 118px) !important;
  width: min(calc(96vw - 2 * 118px), calc((100vh - 16px)*16/9)) !important;
}
.rmap-side {
  width: 110px !important;
}
.rmap-spacer {
  visibility: hidden;
}
.rmap-side .rmap-card {
  padding: 6px 7px !important;
}
.rmap-side .rmap-card-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px !important;
}
.rmap-side .rmap-card-pic {
  width: 34px;
  height: 46px;
}
.rmap-side .rmap-card-head small,
.rmap-side .rmap-card-head em {
  font-size: 11px !important;
  line-height: 1.25;
}
.rmap-side .rmap-card-head strong {
  font-size: 12px !important;
}
.rmap-side .rmap-card-mons {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 4px !important;
  margin: 6px 0 !important;
}
.rmap-side .rmap-card-act {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.rmap-side .rmap-card-act button {
  width: 100%;
  padding: 3px 0 !important;
}
.rmap-side .rmap-card-act .muted {
  font-size: 11px;
  text-align: center;
}
.rmap-mon-no {
  position: absolute;
  left: -1px;
  bottom: -1px;
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  background: #3a2414;
  color: #f8e8c0;
  font: 11px/13px MapPixel, var(--font);
  font-style: normal;
  text-align: center;
}
.road-pc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-bottom,0px));
  background: #1a1410;
}
.rpc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8e8c0;
  font: 16px var(--font);
}
.rpc-title img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.rpc-layout {
  flex: 1;
  min-height: 0;
  height: auto !important;
}
.rpc-boxhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.box-cell.rpc-busy {
  opacity: .35;
}
.rpc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
}
.rpc-sum {
  flex: 1;
  font-size: 14px;
}
.rmap-node.k-event {
  width: 44px;
  height: 44px;
}
.road-pc .rpc-layout {
  display: grid;
  gap: 10px;
  align-items: stretch;
}
.rpc-boxhead button {
  padding: 0 10px !important;
  min-height: 0 !important;
  height: 22px;
  font-size: 12px;
}
.rpc-boxhead strong {
  min-width: 90px;
  text-align: center;
}
.rpc-bar {
  padding: 4px 10px !important;
}
.rpc-bar button {
  padding: 4px 18px !important;
  min-height: 0 !important;
}
.buff-ic {
  box-sizing: border-box;
  border: 2px solid #3a2414;
  box-shadow: inset 0 0 0 2px var(--tier,#c08040);
}
.buff-ic.t0 {
  border: 0;
  box-shadow: none;
}
.buff-ic.t1 {
  --tier:#c07a3a;
  --tier-bg:#f0c896;
}
.buff-ic.t2 {
  --tier:#b8c4d0;
  --tier-bg:#e8eef4;
}
.buff-ic.t3 {
  --tier:#f8c838;
  --tier-bg:#fff0a8;
}
.buff-ic.ph {
  display: inline-grid;
  place-items: center;
  background: var(--tier-bg);
}
.buff-ic.ph b {
  font: bold calc(var(--s,40px)*.5)/1 MapPixel, var(--font);
  color: #3a2414;
}
.buff-ic.ph.foe {
  background: #5a3a6a;
}
.buff-ic.ph.foe b {
  color: #f0e0ff;
}
.buff-ic.unboss {
  background: #3a2414;
}
.buff-ic.unboss b {
  color: #f8c838;
}
.rmap-perk {
  all: unset;
  position: relative;
  display: inline-block;
  cursor: pointer;
  line-height: 0;
}
.rmap-perk .rmi-left {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 11px;
  padding: 0 1px;
  background: #3a2414;
  color: #fff4dc;
  font: 9px/11px MapPixel, var(--font);
  text-align: center;
  font-style: normal;
}
.rmap-card-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0 6px;
}
.rmap-card-perks small {
  width: 100%;
  text-align: center;
  color: #7a5a30;
}
.rmap-info {
  visibility: visible !important;
}
.rmap-info .rmi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 7px !important;
}
.rmi-h {
  font: 11px/1.2 MapPixel, var(--font) !important;
  color: #a8322a;
  margin-top: 3px;
}
.rmi-mons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.rmi-mon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rmi-mon .rmi-pic {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.rmi-mon.down .rmi-pic {
  filter: grayscale(1) brightness(.7);
}
.rmi-hp {
  display: block;
  width: 28px;
  height: 3px;
  background: #3a2414;
  margin-top: 1px;
}
.rmi-hp i {
  display: block;
  height: 100%;
  background: #58c858;
}
.rmi-hp i.mid {
  background: #f0c030;
}
.rmi-hp i.low {
  background: #e84838;
}
.rmi-st {
  position: absolute;
  left: 0;
  top: 0;
  font: 9px/10px MapPixel, var(--font);
  font-style: normal;
  color: #fff;
  background: #a8322a;
  padding: 0 1px;
}
.rmi-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rmi-none {
  margin: 0;
  font-size: 11px;
  color: #7a5a30;
}
.rmap-side .rmap-card:empty {
  display: none;
}
.rmap-mon.down .rmap-mon-pic {
  filter: grayscale(1) brightness(.7);
}
.rmap-mon .rmi-hp {
  position: absolute;
  left: 13px;
  right: 1px;
  bottom: 1px;
  width: auto;
  height: 4px;
  margin: 0;
  border: 1px solid #3a2414;
  box-sizing: border-box;
}
.rmap-mon .rmi-st {
  left: auto;
  right: -1px;
  top: -1px;
}
.rmap-info .rmap-card-mons {
  margin: 2px 0 4px !important;
}
.road-pc {
  padding: 6px 10px calc(6px + var(--safe-bottom,0px)) !important;
  background: #1a1410 !important;
}
.rpc-monitor {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 7px 9px 13px;
  background: #d8ccb0;
  border: 2px solid #3a2e22;
  box-shadow:
    inset 2px 2px 0 #f4ecd8,
    inset -2px -2px 0 #a89878,
    3px 3px 0 #000;
}
.rpc-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 7px;
  background: #2a3450;
  border: 3px solid #141a28;
  box-shadow: inset 0 0 0 2px #48587c, inset 0 0 18px rgba(120, 200, 255, .18);
}
.rpc-screen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, .08) 0 1px,
      transparent 1px 3px);
  z-index: 3;
}
.rpc-led {
  position: absolute;
  right: 16px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  background: #58e070;
  border: 1px solid #2a3a22;
  box-shadow: 0 0 4px #58e070;
}
.rpc-monitor::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 4px;
  width: 40px;
  height: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      #8a7a5a 0 2px,
      transparent 2px 4px);
}
.rpc-screen .rpc-title {
  font-size: 14px;
}
.rpc-screen .rpc-title img {
  width: 24px;
  height: 24px;
}
.rpc-sub {
  margin-left: 8px;
  color: #a8c0e8;
  font-size: 12px;
}
.rpc-no {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background: #3a2414;
  color: #fff4dc;
  font: 12px/1 MapPixel, var(--font);
  font-style: normal;
  flex: none;
}
.rpc-step .panel-title {
  display: flex;
  align-items: center;
}
.rpc-step.now .rpc-no {
  background: #e84838;
  animation: rpcBlink 1s steps(2) infinite;
}
.rpc-step.done .rpc-no {
  background: #3a9a48;
}
@keyframes rpcBlink {
  50% {
    background: #f8a040;
  }
}
.pc-box.rpc-step {
  position: relative;
}
.rpc-step-h {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 4px;
  color: #f8e8c0;
  font: 13px var(--font);
}
.party-slot {
  position: relative;
}
.rpc-tag {
  position: absolute;
  right: 3px;
  top: 3px;
  padding: 1px 4px;
  font: 11px/1.2 MapPixel, var(--font);
  font-style: normal;
  color: #fff;
  border: 1px solid #3a2414;
  z-index: 2;
}
.rpc-tag.out {
  background: #d84838;
}
.rpc-tag.in {
  background: #3a9a48;
}
.box-cell .rpc-tag {
  right: -4px;
  top: -6px;
  font-size: 10px;
}
.rpc-sum {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.rpc-pick {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.rpc-pick span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.rpc-pick small {
  font-size: 10px;
  font-weight: bold;
}
.rpc-pick b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpc-pick.out small {
  color: #d84838;
}
.rpc-pick.in small {
  color: #3a9a48;
}
.rpc-pick-pic,
.rpc-pick-q {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid #8a6a42;
  background: #e8d4a4;
}
.rpc-pick.out .rpc-pick-pic {
  border-color: #d84838;
}
.rpc-pick.in .rpc-pick-pic {
  border-color: #3a9a48;
}
.rpc-pick-q {
  display: grid;
  place-items: center;
  font: bold 16px MapPixel, var(--font);
  font-style: normal;
  color: #8a6a42;
  border-style: dashed;
}
.rpc-pick.empty b {
  color: #8a7a60;
  font-weight: normal;
}
.rpc-arrow {
  font-style: normal;
  font-size: 20px;
  color: #a89878;
}
.rpc-arrow.ready {
  color: #e8a020;
  animation: rpcSwing .8s ease-in-out infinite alternate;
}
@keyframes rpcSwing {
  to {
    transform: scaleX(-1);
  }
}
.rpc-go {
  animation: rpcPulse 1s steps(2) infinite;
}
@keyframes rpcPulse {
  50% {
    filter: brightness(1.18);
  }
}
.rpc-confirm {
  text-align: center;
}
.rpc-confirm p {
  margin: 8px 0 0;
}
.rpc-cf-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.rpc-cf-mon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rpc-cf-pic {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 3px solid #8a6a42;
  background: #f0e0b4;
}
.rpc-cf-mon.out .rpc-cf-pic {
  border-color: #d84838;
  filter: saturate(.7);
}
.rpc-cf-mon.in .rpc-cf-pic {
  border-color: #3a9a48;
}
.rpc-cf-mon.out small {
  color: #d84838;
}
.rpc-cf-mon.in small {
  color: #3a9a48;
}
.rpc-confirm .rpc-arrow {
  font-size: 28px;
}
.party-slot .rpc-tag {
  top: -7px;
  right: 6px;
}
.box-cell .rpc-tag {
  top: -9px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
}
.box-cell {
  overflow: visible;
}
.party-slot .rpc-tag {
  top: 2px;
  left: 3px;
  right: auto;
}
.party-slot .rpc-tag {
  top: auto;
  bottom: 3px;
  left: auto;
  right: 3px;
}
.road-buffs {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 300px;
}
.road-buffs small {
  font-size: 11px;
  color: #a8322a;
}
.field-top .road-buffs {
  flex-wrap: wrap;
  flex-direction: row !important;
  align-self: stretch;
  max-width: 430px;
  max-width: min(430px, calc(100vw - 490px));
  width: auto;
  white-space: nowrap;
  row-gap: 3px;
}
.road-buffs .rmap-perk {
  flex: none;
}
.rmap-perk .rmi-left {
  right: -4px;
  bottom: -4px;
  min-width: 10px;
  padding: 0 1px;
  font-size: 9px;
  line-height: 10px;
  border: 1px solid #fff4dc;
  box-sizing: content-box;
}
.rmap-mon.empty {
  background: #d8c494;
  border-style: dashed;
  opacity: .7;
}
.rmap-info .rmap-card-head small {
  color: #a8322a;
}
.rmap-card-face {
  position: relative;
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #f0e0b4;
  border: 2px solid #3a2414;
  box-shadow: inset 0 0 0 1px #c8a86a;
}
.rmap-card-face img {
  position: absolute;
  image-rendering: pixelated;
}
.rmap-card-face img.face-tile {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ev-box {
  text-align: center;
}
.ev-box p {
  margin: 4px 0;
}
.ev-cost {
  font-size: 12px;
  color: #a8322a;
}
.ev-two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.ev-card.poor {
  opacity: .5;
}
.ev-coin {
  display: grid;
  place-items: center;
  height: 40px;
  font-size: 18px;
}
.ev-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
  padding: 4px;
}
.ev-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 72px;
  padding: 4px !important;
  min-height: 0 !important;
}
.ev-item small {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rest-pick {
  min-height: 96px;
}
.rest-pick strong {
  font-size: 16px;
}
.rest-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.rest-watch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 52vh;
  overflow: auto;
}
.rest-buff {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.rest-buff > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rest-buff small {
  font-size: 11px;
  color: #7a5a30;
}
.rmi-lv {
  position: absolute;
  left: -1px;
  top: -1px;
  padding: 0 2px;
  font: 9px/11px MapPixel, var(--font);
  font-style: normal;
  color: #fff;
  background: #d87020;
  border: 1px solid #3a2414;
}
.unboss-ic {
  position: relative;
  display: inline-block;
  grid-area: ic;
  width: 32px;
  height: 32px;
}
.unboss-x {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      45deg,
      transparent 44%,
      #d83020 44% 56%,
      transparent 56%),
    linear-gradient(
      -45deg,
      transparent 44%,
      #d83020 44% 56%,
      transparent 56%);
}
.unboss-x {
  z-index: 2;
  background:
    linear-gradient(
      45deg,
      transparent 40%,
      #e02818 40% 60%,
      transparent 60%),
    linear-gradient(
      -45deg,
      transparent 40%,
      #e02818 40% 60%,
      transparent 60%) !important;
}
.shop-deal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.2;
  grid-column: 1/-1;
}
.shop-deal s {
  color: #8a7a60;
}
.shop-deal b {
  color: #fff;
  background: #d84838;
  padding: 0 3px;
}
.shop-card {
  position: relative;
}
.shop-save {
  position: absolute;
  right: -2px;
  top: -2px;
  padding: 0 3px;
  font: 10px/13px var(--font);
  font-style: normal;
  color: #fff;
  background: #d84838;
  border: 1px solid #3a2414;
  z-index: 1;
}
.shop-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.shop-was {
  font-size: 10px;
  color: #8a7a60;
}
.ev-card .unboss-ic {
  width: 40px;
  height: 40px;
}
.ev-tablet {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
}
.ev-tablet .ev-card {
  min-width: 0;
}
.ev-card.seal {
  background: #3a2e4a !important;
  color: #f0e0ff;
}
.ev-card.seal small {
  color: #c8b0e0 !important;
}
.stele-back {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(40, 70, 80, .55),
      rgba(6, 8, 12, .92) 70%);
  animation: steleIn .35s ease-out;
}
.stele-back.k-seal {
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(70, 40, 90, .6),
      rgba(8, 4, 14, .93) 70%);
}
@keyframes steleIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.stele {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  max-width: 760px;
  max-width: min(92vw, 760px);
  max-height: calc(100% - 20px);
}
.stele-art {
  width: 64px;
  height: 128px;
  align-self: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(120, 230, 220, .55));
}
.k-seal .stele-art {
  filter: drop-shadow(0 0 10px rgba(190, 120, 255, .6));
}
.stele-face {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 14px 18px 12px;
  color: #d8e6e4;
  text-align: center;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, .06) 0 2px,
      transparent 3px) 0 0/23px 19px,
    radial-gradient(
      circle at 70% 60%,
      rgba(0, 0, 0, .18) 0 2px,
      transparent 3px) 0 0/17px 29px,
    linear-gradient(
      180deg,
      #6a6e74,
      #50545c 60%,
      #44474e);
  border: 4px solid #26282e;
  border-radius: 28px 28px 6px 6px;
  box-shadow:
    inset 3px 3px 0 #7e838a,
    inset -3px -3px 0 #383b42,
    0 8px 0 #1a1b20,
    0 0 40px rgba(120, 230, 220, .18);
}
.k-seal .stele-face {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, .06) 0 2px,
      transparent 3px) 0 0/23px 19px,
    linear-gradient(
      180deg,
      #5e5670,
      #463f58 60%,
      #3a3448);
  box-shadow:
    inset 3px 3px 0 #7a7090,
    inset -3px -3px 0 #2e2a3c,
    0 8px 0 #18141f,
    0 0 40px rgba(190, 120, 255, .22);
}
.k-seal .stele-face::before,
.k-seal .stele-face::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  height: 6px;
  background:
    repeating-linear-gradient(
      90deg,
      #f0c040 0 8px,
      #9a6a10 8px 10px,
      transparent 10px 14px);
  filter: drop-shadow(0 0 4px #f0c040);
}
.k-seal .stele-face::before {
  top: 34%;
}
.k-seal .stele-face::after {
  top: 68%;
}
.stele-title {
  margin: 0 0 4px;
  font: 22px/1.2 MapPixel, var(--font);
  letter-spacing: 6px;
  color: #bff4ee;
  text-shadow: 0 0 8px rgba(120, 230, 220, .8), 1px 1px 0 #1a1c20;
}
.k-seal .stele-title {
  color: #e8d0ff;
  text-shadow: 0 0 8px rgba(190, 120, 255, .9), 1px 1px 0 #1a1420;
}
.stele-intro {
  margin: 0 0 2px;
  font-size: 13px;
  color: #cfd8d8;
  text-shadow: 1px 1px 0 #222;
}
.stele-note {
  margin: 0 0 10px;
  font-size: 11px;
  color: #9fb8b4;
}
.k-seal .stele-note {
  color: #c8b0e0;
}
.stele-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1;
}
.stele-line {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  cursor: pointer;
  color: #a8b4b4;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .28),
      rgba(0, 0, 0, .12));
  border: 2px solid #34373e;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .35), inset -1px -1px 0 rgba(255, 255, 255, .08);
  transition:
    color .15s,
    box-shadow .15s,
    background .15s;
}
.stele-line:hover,
.stele-line:focus-visible {
  color: #e8fffb;
  background:
    linear-gradient(
      180deg,
      rgba(60, 160, 150, .35),
      rgba(20, 60, 60, .25));
  box-shadow: inset 0 0 12px rgba(140, 255, 240, .45), 0 0 10px rgba(120, 230, 220, .5);
}
.stele-line.seal:hover,
.stele-line.seal:focus-visible {
  color: #fff0ff;
  background:
    linear-gradient(
      180deg,
      rgba(150, 80, 200, .38),
      rgba(60, 20, 80, .25));
  box-shadow: inset 0 0 12px rgba(220, 160, 255, .5), 0 0 10px rgba(190, 120, 255, .6);
}
.stele-glyph {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  filter: grayscale(.6) brightness(.85);
}
.stele-line:hover .stele-glyph {
  filter: none;
}
.stele-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.stele-txt b {
  font: 16px/1.25 MapPixel, var(--font);
  letter-spacing: 2px;
}
.stele-txt small {
  font-size: 11px;
  opacity: .8;
}
.stele-acts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.stele-btn {
  background: #2e3036 !important;
  color: #cfd8d8 !important;
  border: 2px solid #1a1b20 !important;
  box-shadow: none !important;
  padding: 3px 14px !important;
  min-height: 0 !important;
}
.st-up {
  font-style: normal;
  color: #ff7868;
  margin-left: 6px;
}
.st-down {
  font-style: normal;
  color: #78a8ff;
  margin-left: 6px;
}
.stele-line {
  position: relative;
}
.stele-line.adv {
  border-color: #a8801a;
  box-shadow: inset 0 0 10px rgba(240, 200, 80, .35), 0 0 6px rgba(240, 200, 80, .35);
}
.stele-line.adv .stele-txt b {
  color: #ffe9a8;
  text-shadow: 0 0 6px rgba(240, 200, 80, .8);
}
.stele-adv {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  font: 11px/1.3 MapPixel, var(--font);
  font-style: normal;
  color: #3a2400;
  background:
    linear-gradient(
      180deg,
      #ffe48a,
      #e0a828);
  border: 1px solid #5a3a00;
  animation: advGlow 1.6s ease-in-out infinite alternate;
}
@keyframes advGlow {
  to {
    box-shadow: 0 0 8px #ffd860;
  }
}
.stele-txt small {
  color: inherit;
}
.k-seal .stele-face::before {
  top: 6px !important;
}
.k-seal .stele-face::after {
  top: auto !important;
  bottom: 6px;
}
.st-up {
  font-style: normal;
  color: #ff7868;
  margin-left: 6px;
}
.st-down {
  font-style: normal;
  color: #78a8ff;
  margin-left: 6px;
}
.stele-line {
  position: relative;
}
.stele-line.adv {
  border-color: #a8801a;
  box-shadow: inset 0 0 10px rgba(240, 200, 80, .35), 0 0 6px rgba(240, 200, 80, .35);
}
.stele-line.adv .stele-txt b {
  color: #ffe9a8;
  text-shadow: 0 0 6px rgba(240, 200, 80, .8);
}
.stele-adv {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  font: 11px/1.3 MapPixel, var(--font);
  font-style: normal;
  color: #3a2400;
  background:
    linear-gradient(
      180deg,
      #ffe48a,
      #e0a828);
  border: 1px solid #5a3a00;
  animation: advGlow 1.6s ease-in-out infinite alternate;
}
@keyframes advGlow {
  to {
    box-shadow: 0 0 8px #ffd860;
  }
}
.stele-txt small {
  color: inherit;
}
.stele-glyph {
  filter: none !important;
  display: grid;
  place-items: center;
  color: #5ac8c0;
}
.stele-line:hover .stele-glyph {
  color: #c8fff8;
  filter: drop-shadow(0 0 4px #8ffff0) !important;
}
.k-seal .stele-glyph {
  color: #a878d8;
}
.k-seal .stele-line:hover .stele-glyph {
  color: #f0d8ff;
  filter: drop-shadow(0 0 4px #e0b0ff) !important;
}
.stele-line.adv .stele-glyph {
  color: #f0c050;
}
.rune {
  display: block;
  width: 24px;
  height: 28px;
}
.rune svg {
  width: 100%;
  height: 100%;
  display: block;
}
.k-seal .stele-face::before {
  top: 6px !important;
}
.k-seal .stele-face::after {
  top: auto !important;
  bottom: 6px;
}
.stele-line.on {
  border-color: #c890ff;
  box-shadow: inset 0 0 12px rgba(220, 160, 255, .5), 0 0 10px rgba(190, 120, 255, .6);
}
.stele-face {
  width: 400px;
  width: min(46vw, 400px);
}
.stele-side {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  width: min(20vw, 180px);
  padding: 10px 10px 12px;
  color: #f0e4ff;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 0,
      rgba(255, 220, 120, .18),
      transparent 60%),
    linear-gradient(
      180deg,
      #2c1a3c,
      #1a0f26);
  border: 2px solid #b08a3a;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #5a3a10, 0 0 18px rgba(190, 120, 255, .45);
  animation: sideIn .25s ease-out;
}
@keyframes sideIn {
  from {
    opacity: 0;
    transform: translate(-10px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
.stele-side-title {
  margin: 0 0 2px;
  font: 15px/1.2 MapPixel, var(--font);
  letter-spacing: 6px;
  color: #ffd878;
  text-shadow: 0 0 6px rgba(255, 200, 80, .7);
}
.stele-side .stele-intro {
  font-size: 11px;
  color: #d8c8ec;
  text-shadow: none;
  margin-bottom: 8px;
}
.stele-side .stele-line {
  padding: 6px 8px;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid #6a4a8a;
  box-shadow: none;
}
.stele-side .stele-line:hover {
  background: rgba(190, 120, 255, .18);
  border-color: #e0b0ff;
  box-shadow: 0 0 10px rgba(190, 120, 255, .5);
}
.stele-side .stele-txt b {
  font-size: 13px;
  letter-spacing: 0;
}
.stele-side .stele-note {
  color: #a898c0;
}
.stele-art {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
}
.stele-side {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 12px 14px !important;
  image-rendering: pixelated;
  background:
    repeating-conic-gradient(
      #2a1838 0,
      #2a1838 25%,
      #24142f 0,
      #24142f 50%) 0 0/4px 4px !important;
  box-shadow:
    0 0 0 2px #120a1a,
    0 0 0 4px #e0b450,
    0 0 0 6px #8a6420,
    0 0 0 8px #120a1a,
    6px 6px 0 8px rgba(0, 0, 0, .45) !important;
}
.stele-side::before,
.stele-side::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff0b0;
  box-shadow: 0 0 0 2px #8a6420;
}
.stele-side::before {
  left: -6px;
  top: -6px;
}
.stele-side::after {
  right: -6px;
  bottom: -6px;
}
.stele-side-title {
  text-shadow: 2px 2px 0 #5a3a10 !important;
}
.stele-side .stele-line {
  border-radius: 0 !important;
  border: 2px solid #4a2e60 !important;
  background: #1e1229 !important;
  box-shadow: inset 2px 2px 0 #3a2450 !important;
}
.stele-side .stele-line:hover {
  background: #3a2050 !important;
  border-color: #e0b450 !important;
  box-shadow: inset 2px 2px 0 #5a3a78, 0 0 0 2px #120a1a !important;
}
.buff-ic.gear {
  display: inline-grid;
  place-items: center;
  background: var(--tier-bg);
}
.buff-ic.gear img {
  image-rendering: pixelated;
}
.gear-head {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 6px;
}
.stele-back.k-wish {
  background:
    radial-gradient(
      1px 1px at 12% 20%,
      #fff 99%,
      transparent),
    radial-gradient(
      1px 1px at 80% 30%,
      #fff 99%,
      transparent),
    radial-gradient(
      2px 2px at 30% 75%,
      #ffe9a0 99%,
      transparent),
    radial-gradient(
      1px 1px at 65% 85%,
      #fff 99%,
      transparent),
    radial-gradient(
      2px 2px at 90% 60%,
      #fff 99%,
      transparent),
    radial-gradient(
      1px 1px at 45% 12%,
      #fff 99%,
      transparent),
    radial-gradient(
      ellipse at 50% 40%,
      rgba(40, 60, 120, .75),
      rgba(4, 6, 20, .95) 70%);
}
.k-wish .stele-art {
  width: 48px;
  height: 96px;
  filter: drop-shadow(0 0 12px rgba(255, 230, 140, .9));
  animation: wishTwinkle 1.4s steps(2) infinite;
}
@keyframes wishTwinkle {
  50% {
    filter: drop-shadow(0 0 4px rgba(255, 230, 140, .5));
  }
}
.k-wish .stele-face {
  border-radius: 0 !important;
  background:
    repeating-conic-gradient(
      #141c3c 0,
      #141c3c 25%,
      #111834 0,
      #111834 50%) 0 0/4px 4px !important;
  border: 0 !important;
  box-shadow:
    0 0 0 2px #0a0e20,
    0 0 0 4px #e0c060,
    0 0 0 6px #8a6a20,
    0 0 0 8px #0a0e20,
    6px 6px 0 8px rgba(0, 0, 0, .45) !important;
  color: #e8ecff;
}
.k-wish .stele-title {
  color: #ffe9a0;
  text-shadow: 2px 2px 0 #5a4010 !important;
}
.k-wish .stele-intro {
  color: #d0d8f8;
  text-shadow: none;
}
.k-wish .stele-note {
  color: #a8b4e0;
}
.k-wish .stele-line {
  border-radius: 0;
  background: #0e1430;
  border: 2px solid #2a3870;
  box-shadow: inset 2px 2px 0 #1e2a58;
  color: #c8d0f0;
}
.k-wish .stele-line:hover {
  background: #1c2858;
  border-color: #e0c060;
  box-shadow: inset 2px 2px 0 #2e3e7a, 0 0 0 2px #0a0e20;
  color: #fff8e0;
}
.k-wish .stele-glyph {
  filter: none;
}
.wish-stars {
  font-style: normal;
  color: #ffd860;
  letter-spacing: 1px;
  font-size: 12px;
}
.info-pop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 16, .55);
}
.info-card {
  width: 360px;
  width: min(86vw, 360px);
  padding: 12px 14px;
  background: #f4ead0;
  color: #3a2414;
  border: 0;
  box-shadow:
    0 0 0 2px #3a2414,
    0 0 0 4px #e0c060,
    0 0 0 6px #3a2414,
    5px 5px 0 6px rgba(0, 0, 0, .4);
  animation: steleIn .15s;
}
.info-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #e8d4a4;
  box-shadow: inset 0 0 0 2px #8a6a42;
}
.info-ic img {
  image-rendering: pixelated;
}
.info-head strong {
  display: block;
  font: 16px/1.2 MapPixel, var(--font);
}
.info-head small {
  display: block;
  font-size: 11px;
  color: #7a5a30;
  margin-top: 2px;
}
.info-desc {
  margin: 10px 0 4px;
  font-size: 13px;
  line-height: 1.5;
}
.info-note {
  margin: 4px 0;
  font-size: 11px;
  color: #7a5a30;
  line-height: 1.4;
}
.info-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.shop-card {
  cursor: pointer;
}
.info-desc {
  white-space: pre-line;
}
.info-move {
  margin-top: 8px;
  max-height: 45vh;
  overflow: auto;
}
.info-move > * {
  margin: 0;
}
.rmap {
  perspective: 1600px;
}
.rmap-flip {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  transform-origin: left center;
  transform-style: preserve-3d;
  animation: rmapPageTurn 1.1s cubic-bezier(.55, .05, .4, 1) .7s forwards;
  pointer-events: none;
}
.rmap-flip > .rmap-paper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: sepia(.15) brightness(.97);
}
.rmap-flip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      90deg,
      rgba(60, 30, 10, 0) 60%,
      rgba(60, 30, 10, .35));
  opacity: 0;
  animation: rmapPageShade 1.1s .7s forwards;
}
.rmap-flip-txt {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #3a2414;
}
.rmap-flip-txt strong {
  font: 28px/1 MapPixel, var(--font);
  letter-spacing: 8px;
  text-shadow: 2px 2px 0 rgba(255, 240, 200, .6);
}
@supports (width: min(1px, 2px)) {
  .rmap-flip-txt strong {
    font: clamp(28px, 6vw, 54px)/1 MapPixel, var(--font);
  }
}
.rmap-flip-txt em {
  font: 16px/1 MapPixel, var(--font);
  font-style: normal;
  color: #a8322a;
  border: 3px solid #a8322a;
  padding: 4px 14px;
  transform: rotate(-8deg);
  animation: rmapStamp .3s steps(3) .15s both;
}
@supports (width: min(1px, 2px)) {
  .rmap-flip-txt em {
    font: clamp(16px, 3vw, 26px)/1 MapPixel, var(--font);
  }
}
@keyframes rmapPageTurn {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(-178deg);
    opacity: .0;
  }
}
@keyframes rmapPageShade {
  to {
    opacity: 1;
  }
}
@keyframes rmapStamp {
  from {
    transform: rotate(-8deg) scale(2.2);
    opacity: 0;
  }
  to {
    transform: rotate(-8deg) scale(1);
    opacity: 1;
  }
}
.act-turn .rmap-title {
  animation: rmapTitleIn .5s steps(4) 1.5s both;
}
@keyframes rmapTitleIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.runbag-slot {
  position: relative;
}
.slot-buffs {
  position: absolute;
  right: 1px;
  top: 1px;
  display: flex;
  gap: 1px;
  pointer-events: none;
  z-index: 2;
}
.slot-buffs .buff-ic {
  box-shadow: 0 0 0 1px #303850;
}
.runbag-buffs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.runbag-buffs small {
  font-size: 11px;
  color: #a8322a;
}
.runbag-buffs .rmap-perk {
  flex: none;
}
