.battle-mode-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 25px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.battle-mode-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  background: #222222;
  color: #8a8a8a;
  border: 1px solid #ffffff07;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
}
.battle-mode-tabs button.active {
  background: #ededed0e;
  color: var(--mint);
  border-color: #ededed28;
}
.battle-mode-tabs .icon {
  width: 16px;
  height: 16px;
}
.battle-mode-tabs button > span {
  font-size: 10px;
  background: #ededed0c;
  padding: 3px 5px;
  border-radius: 4px;
}
.pvp-sync-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #8d8d8d;
}
.pvp-sync-label .icon {
  width: 14px;
  height: 14px;
}
.pvp-lobby-layout {
  display: grid;
  grid-template-columns: 305px 1fr;
  gap: 22px;
  align-items: start;
  margin: 25px 0;
}
.pvp-create {
  background:
    radial-gradient(ellipse at 50% 20%, #ededed07, transparent 60%), #232323;
  border: 1px solid #ffffff09;
  border-radius: 14px;
  padding: 22px;
}
.pvp-create-art {
  height: 165px;
  margin: 9px -7px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pvp-create-art > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pvp-create > label {
  display: block;
  color: #949494;
  font-size: 10px;
  margin: 17px 0 11px;
}
.pvp-create > select {
  height: 40px;
  width: 100%;
  max-width: 100%;
  font-size: 10px;
  background: #1c1c1c;
}
.pvp-quantities {
  width: 100%;
  justify-content: space-between;
  background: #1c1c1c;
}
.pvp-quantities button {
  flex: 1;
}
.pvp-entry-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff08;
  margin: 20px 0 18px;
  padding-top: 18px;
  gap: 9px;
}
.pvp-entry-cost > span {
  font-size: 10px;
  color: #8b8b8b;
}
.pvp-entry-cost > strong {
  font-size: 22px;
  color: var(--mint);
}
.pvp-create > .primary {
  width: 100%;
  font-size: 11px;
}
.pvp-create > p {
  font-size: 10px;
  line-height: 1.9;
  color: #747474;
  margin-top: 15px;
}
.pvp-room-list-panel {
  min-width: 0;
  padding: 6px 0;
}
.pvp-room-list-panel .section-title h2 {
  font-size: 19px;
}
.pvp-room-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #212121;
  border: 1px solid #ffffff08;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 11px;
}
.pvp-room-row > img {
  width: 75px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.pvp-room-row h3 {
  font-size: 13px;
  line-height: 1.7;
}
.pvp-room-row p {
  font-size: 10px;
  line-height: 1.8;
  color: #8c8c8c;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.pvp-room-row > div > span {
  font-size: 10px;
  color: #707070;
  display: block;
  margin-top: 5px;
}
.pvp-room-row-cost {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}
.pvp-room-row-cost strong {
  font-size: 16px;
  color: #c2dfd8;
}
.pvp-room-row-cost small {
  display: block;
  font-size: 10px;
  color: #6f6f6f;
  margin-top: 7px;
}
.pvp-room-row > .primary,
.pvp-room-row > .secondary {
  min-height: 35px;
  padding: 0 13px;
  font-size: 10px;
}
.pvp-active-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #ededed09;
  border: 1px solid #ededed27;
  border-radius: 10px;
  color: var(--mint);
  padding: 17px;
  margin-bottom: 16px;
}
.pvp-active-banner span {
  flex: 1;
}
.pvp-active-banner strong {
  display: block;
  font-size: 12px;
}
.pvp-active-banner small {
  display: block;
  font-size: 10px;
  color: #709c9a;
  margin-top: 8px;
}
.pvp-active-banner .icon {
  width: 18px;
  height: 18px;
}
.pvp-running-heading {
  font-size: 12px;
  color: #9c9c9c;
  margin: 27px 0 15px;
}
.pvp-history-row {
  width: 100%;
  background: transparent;
  text-align: left;
  color: inherit;
}
.pvp-history-row:hover {
  background: #ffffff03;
}
.pvp-history-row > .icon {
  width: 14px;
  height: 14px;
  color: #707070;
}
.pvp-won {
  color: var(--mint) !important;
}
.pvp-lost {
  color: #e18c9a !important;
}
.pvp-tie {
  color: var(--gold) !important;
}
.pvp-rules {
  font-size: 10px;
}
.pvp-room-heading h1 {
  margin-top: 14px;
}
.pvp-room-heading .pill {
  font-size: 10px;
}
.pvp-connection {
  font-size: 10px;
  color: #888888;
  display: flex;
  gap: 7px;
  align-items: center;
}
.pvp-connection.connected {
  color: #78b5a7;
}
.pvp-connection > .icon {
  width: 14px;
  height: 14px;
}
.pvp-waiting {
  display: grid;
  grid-template-columns: 1fr 230px 1fr;
  background:
    radial-gradient(ellipse at 20% 50%, #ededed09, transparent 55%), #212121;
  border: 1px solid #ffffff09;
  border-radius: 15px;
  padding: 34px 25px;
  min-height: 285px;
  align-items: center;
  margin: 25px 0 19px;
}
.pvp-wait-player {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.pvp-wait-player .battle-avatar {
  width: 66px;
  height: 66px;
  margin-bottom: 17px;
}
.pvp-wait-player h2 {
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin-bottom: 13px;
}
.pvp-wait-player.empty .battle-avatar {
  border-style: dashed;
  color: #6b6b6b;
  border-color: #ffffff16;
  background: #ffffff02;
}
.pvp-wait-player.empty h2 {
  color: #989898;
  font-size: 15px;
}
.pvp-wait-player p {
  font-size: 10px;
  color: #6f6f6f;
  line-height: 1.9;
}
.pvp-wait-player .pill {
  font-size: 10px;
}
.pvp-wait-center {
  position: relative;
  text-align: center;
}
.pvp-wait-center > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: Geist, sans-serif;
  font-size: 65px;
  font-weight: 500;
  color: #ffffff05;
  z-index: 0;
}
.pvp-wait-case {
  height: 175px;
  position: relative;
  z-index: 1;
}
.pvp-wait-case > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pvp-invite-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #282828;
  border: 1px solid #ffffff08;
  border-radius: 10px;
  padding: 20px 23px;
  margin-bottom: 28px;
}
.pvp-invite-bar > div {
  margin-right: auto;
}
.pvp-invite-bar strong {
  font-size: 13px;
  line-height: 1.7;
  display: block;
  color: #b1d1cf;
}
.pvp-invite-bar small {
  font-size: 10px;
  color: #7e7e7e;
  display: block;
  margin-top: 8px;
}
.pvp-invite-bar button {
  font-size: 10px;
  min-height: 37px;
  padding: 0 14px;
}
.pvp-share-input {
  width: 100%;
  background: #1b1b1b;
  border: 1px solid #ededed3a;
  border-radius: 8px;
  padding: 13px;
  color: #bde8dd;
  font-size: 11px;
}
.pvp-live-caption {
  text-align: center;
  margin: 20px auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 78px;
}
.pvp-live-caption > strong {
  font-size: 15px;
  color: #c0c0c0;
}
.pvp-live-caption > span {
  font-size: 22px;
  color: var(--mint);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pvp-live-caption > small {
  color: #727272;
  font-size: 10px;
  line-height: 1.9;
}
.pvp-no-cancel {
  text-align: center;
  color: #5d5d5d;
  font-size: 10px;
  padding: 16px;
  border-top: 1px solid #ffffff07;
}
.pvp-arena .battle-side-heading > div:nth-child(2) {
  min-width: 0;
}
.pvp-countdown {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.pvp-countdown > strong {
  font-family: Geist, sans-serif;
  font-size: 66px;
  color: var(--mint);
  font-weight: 600;
}
.pvp-countdown > span {
  font-size: 10px;
  color: #787878;
}
.pvp-revealed-skin {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--rarity) 15%, transparent),
    transparent 70%
  );
  animation: pvp-reveal 0.28s ease-out;
}
.pvp-revealed-skin img {
  width: 90%;
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px #0005);
}
.pvp-revealed-skin small {
  font-size: 10px;
  color: #7d7d7d;
  margin-top: 3px;
}
.pvp-revealed-skin strong {
  font-size: 11px;
  color: #dddddd;
  margin-top: 6px;
}
.pvp-revealed-skin > span {
  font-size: 13px;
  color: var(--rarity);
  font-weight: 500;
  margin-top: 7px;
}
.pvp-spin-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.pvp-spin-track {
  display: flex;
  gap: 8px;
  will-change: transform;
}
.pvp-spin-track .reel-item {
  flex-shrink: 0;
}
.pvp-finished {
  margin: 25px 0;
  border: 1px solid #ededed1e;
  border-radius: 13px;
  background: #ededed05;
  padding: 28px;
  text-align: center;
}
.pvp-finished > div:first-child {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ededed1b;
  background: #ededed0b;
  border-radius: 50%;
  margin: 0 auto 17px;
}
.pvp-finished > div:first-child .icon {
  width: 23px;
  height: 23px;
}
.pvp-finished h2 {
  font-size: 21px;
  line-height: 1.7;
}
.pvp-finished p {
  font-size: 11px;
  line-height: 1.9;
  color: #8e8e8e;
  margin: 12px 0 20px;
}
.pvp-finished > div:last-child {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pvp-finished button {
  font-size: 11px;
}
.pvp-terminal {
  margin: 25px 0;
}
.pvp-terminal > .icon {
  color: #6eafa0;
}
@keyframes pvp-reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Contract forging is a finite sequence: collect, seal, scan, open, reveal. */
.contract-forging .reactor-orbit {
  border-color: #c4a9e626;
  transition: border-color 0.3s;
}
.contract-forging .reactor-socket {
  transition: opacity 0.2s;
}
.forge-machine {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}
.forge-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}
.forge-track,
.forge-progress-line {
  fill: none;
  stroke-width: 1;
}
.forge-track {
  stroke: #baa0df21;
}
.forge-progress-line {
  stroke: #cdcdcd;
  stroke-width: 2;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  stroke-linecap: round;
}
.forge-vault {
  position: absolute;
  inset: 13px;
  border: 1px solid #bfa3df42;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #373737, #1d1d1d 75%);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 6px #14141455,
    0 10px 25px #0004;
}
.forge-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 4;
  background: linear-gradient(135deg, #3f3f3f, #282828 60%, #343434);
  border: 1px solid #8f8f8f2c;
  box-shadow: inset 0 0 0 5px #1b1b1b66;
}
.forge-door.left {
  left: 0;
  border-radius: 100% 0 0 100%;
}
.forge-door.right {
  right: 0;
  border-radius: 0 100% 100% 0;
}
.forge-door i {
  position: absolute;
  top: 25%;
  bottom: 25%;
  width: 4px;
  background: #ad98cc66;
  border-radius: 2px;
}
.forge-door.left i {
  right: 12px;
}
.forge-door.right i {
  left: 12px;
}
.forge-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #ad98cc66;
  background: #242424;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  z-index: 5;
  color: #d4b7ef;
  box-shadow: 0 0 0 5px #1a1a1a;
}
.forge-seal > .icon {
  width: 24px;
  height: 24px;
}
.forge-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  z-index: 6;
  background: linear-gradient(transparent, #c6b1e22c, transparent);
  border-bottom: 1px solid #e0cbff77;
  opacity: 0;
}
.forge-result {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--rarity) 13%, transparent),
    transparent 70%
  );
}
.forge-result > img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px #0007);
}
.forge-result > span {
  font-size: 10px;
  color: #a1a1a1;
  margin-top: 2px;
}
.forge-result > strong {
  font-size: 10px;
  color: #e8e8e8;
  margin-top: 7px;
  text-align: center;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forge-result > small {
  font-size: 12px;
  color: var(--rarity);
  font-weight: 500;
  margin-top: 7px;
}
.forge-status {
  position: absolute;
  left: -25px;
  right: -25px;
  top: calc(100% + 12px);
  text-align: center;
  color: #969696;
  font-size: 10px;
  letter-spacing: 0.1px;
}
.forge-flying-card {
  position: absolute;
  z-index: 6;
  border: 1px solid color-mix(in srgb, var(--rarity) 55%, transparent);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--rarity) 13%, #222222),
    #222222
  );
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 5px 12px #0005;
  will-change: transform, opacity;
  pointer-events: none;
}
.forge-flying-card > img {
  width: 100%;
  height: 75%;
  object-fit: contain;
}
.forge-flying-card > span {
  font-size: 10px;
  color: #d0d0d0;
  margin-top: 3px;
}
@media (max-width: 1100px) {
  .pvp-lobby-layout {
    grid-template-columns: 265px 1fr;
    gap: 16px;
  }
  .pvp-create {
    padding: 19px;
  }
  .pvp-room-row {
    flex-wrap: wrap;
    gap: 11px;
    padding: 14px;
  }
  .pvp-room-row > img {
    width: 59px;
    height: 48px;
  }
  .pvp-room-row > div:nth-child(2) {
    flex: 1;
    min-width: 110px;
  }
  .pvp-room-row-cost {
    margin-left: 0;
    text-align: left;
    min-width: 90px;
  }
  .pvp-room-row > button {
    margin-left: auto;
  }
  .pvp-waiting {
    grid-template-columns: 1fr 165px 1fr;
    padding: 30px 17px;
  }
  .pvp-wait-player h2 {
    font-size: 16px;
  }
  .pvp-wait-player.empty h2 {
    font-size: 13px;
  }
  .pvp-invite-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pvp-invite-bar > div {
    width: 100%;
    margin-bottom: 6px;
  }
  .pvp-invite-bar > button {
    flex: 1;
  }
  .forge-machine {
    width: 185px;
    height: 185px;
  }
  .forge-result > img {
    height: 76px;
  }
  .forge-result > strong {
    font-size: 10px;
    max-width: 133px;
  }
}
@media (max-width: 760px) {
  .battle-mode-tabs {
    gap: 6px;
    margin: 0 0 22px;
    padding-bottom: 18px;
  }
  .battle-mode-tabs button {
    font-size: 10px;
    padding: 0 11px;
    gap: 6px;
    min-height: 37px;
  }
  .battle-mode-tabs .icon {
    width: 14px;
    height: 14px;
  }
  .battle-mode-tabs button > span {
    font-size: 10px;
  }
  .pvp-lobby-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 18px;
  }
  .pvp-create {
    padding: 19px;
  }
  .pvp-create-art {
    height: 155px;
    max-width: 230px;
    margin: 8px auto 10px;
  }
  .pvp-create .workbench-label {
    font-size: 10px;
  }
  .pvp-create > label {
    font-size: 10px;
    margin-top: 16px;
  }
  .pvp-create > select {
    font-size: 10px;
    min-height: 41px;
  }
  .pvp-create > .primary {
    min-height: 43px;
    font-size: 11px;
  }
  .pvp-quantities button {
    max-width: none;
  }
  .pvp-entry-cost > strong {
    font-size: 23px;
  }
  .pvp-create > p {
    font-size: 10px;
  }
  .pvp-room-list-panel .section-title h2 {
    font-size: 19px;
  }
  .pvp-room-row {
    padding: 13px;
    gap: 10px;
  }
  .pvp-room-row > img {
    width: 57px;
    height: 47px;
  }
  .pvp-room-row h3 {
    font-size: 12px;
  }
  .pvp-room-row p {
    font-size: 10px;
    margin-top: 4px;
  }
  .pvp-room-row > div > span {
    font-size: 10px;
    margin-top: 4px;
  }
  .pvp-room-row-cost strong {
    font-size: 16px;
  }
  .pvp-room-row-cost small {
    font-size: 10px;
  }
  .pvp-room-row > button {
    min-height: 32px;
    font-size: 10px;
  }
  .pvp-sync-label {
    font-size: 10px;
  }
  .pvp-room-heading {
    gap: 15px;
  }
  .pvp-room-heading h1 {
    font-size: 23px;
    margin-top: 12px;
  }
  .pvp-room-heading .pill {
    font-size: 10px;
  }
  .pvp-connection {
    font-size: 10px;
  }
  .pvp-waiting {
    grid-template-columns: 1fr 76px 1fr;
    gap: 6px;
    padding: 25px 13px;
    min-height: 242px;
    margin-top: 18px;
  }
  .pvp-wait-player .battle-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
  }
  .pvp-wait-player .battle-avatar .icon {
    width: 23px;
    height: 23px;
  }
  .pvp-wait-player h2 {
    font-size: 11px;
    line-height: 1.9;
    margin-bottom: 10px;
  }
  .pvp-wait-player.empty h2 {
    font-size: 10px;
  }
  .pvp-wait-player p {
    font-size: 10px;
    line-height: 1.9;
  }
  .pvp-wait-player .pill {
    font-size: 10px;
    padding: 5px;
  }
  .pvp-wait-case {
    height: 90px;
    width: 130%;
    margin-left: -15%;
  }
  .pvp-wait-center > span {
    font-size: 35px;
  }
  .pvp-invite-bar {
    padding: 17px 15px;
    gap: 8px;
  }
  .pvp-invite-bar strong {
    font-size: 12px;
  }
  .pvp-invite-bar small {
    font-size: 10px;
  }
  .pvp-invite-bar > button {
    width: 100%;
    flex: auto;
    font-size: 10px;
    min-height: 36px;
  }
  .pvp-live-caption > strong {
    font-size: 13px;
  }
  .pvp-live-caption > span {
    font-size: 20px;
  }
  .pvp-live-caption > small {
    font-size: 10px;
    max-width: 320px;
  }
  .pvp-no-cancel {
    font-size: 10px;
    line-height: 1.9;
  }
  .pvp-countdown > strong {
    font-size: 46px;
  }
  .pvp-countdown > span {
    font-size: 10px;
  }
  .pvp-revealed-skin {
    padding: 8px;
  }
  .pvp-revealed-skin img {
    height: 74px;
  }
  .pvp-revealed-skin small {
    font-size: 10px;
  }
  .pvp-revealed-skin strong {
    font-size: 10px;
    max-width: 130px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .pvp-revealed-skin > span {
    font-size: 10px;
    margin-top: 5px;
  }
  .pvp-finished {
    padding: 23px 17px;
  }
  .pvp-finished h2 {
    font-size: 17px;
    line-height: 1.8;
  }
  .pvp-finished p {
    font-size: 10px;
  }
  .pvp-finished button {
    font-size: 10px;
    min-height: 36px;
    padding: 0 12px;
  }
  .pvp-share-input {
    font-size: 10px;
  }
  .pvp-rules {
    font-size: 10px;
  }
  .pvp-history-row h3 {
    font-size: 10px;
  }
  .pvp-history-row p {
    font-size: 10px;
  }
  .forge-machine {
    width: 175px;
    height: 175px;
  }
  .forge-status {
    font-size: 10px;
    top: calc(100% + 10px);
  }
  .forge-result > img {
    height: 66px;
  }
  .forge-result > span {
    font-size: 10px;
  }
  .forge-result > strong {
    font-size: 10px;
    max-width: 126px;
  }
  .forge-result > small {
    font-size: 10px;
  }
  .forge-seal {
    width: 41px;
    height: 41px;
    border-radius: 9px;
  }
  .forge-seal > .icon {
    width: 20px;
    height: 20px;
  }
  .forge-flying-card > span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pvp-revealed-skin {
    animation: none;
  }
  .forge-flying-card {
    will-change: auto;
  }
}
