@font-face {
  font-family: Arena Han;
  src: url('../assets/interface/arena-cn.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
:root {
  --font: Lilita, 'Arena Han', 'Microsoft YaHei', sans-serif;
  --copy: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --ink: #101b37;
  --gold: #ffcf42;
  --muted: #bbcce6;
  --trim: #47628f;
}
body {
  background: radial-gradient(ellipse at 49% -20%, #3972c1 0, #26529a 30%, #193873 60%, #10234e 100%) fixed;
}
body::before {
  content: '';
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url('../assets/interface/pattern-tile.webp') repeat center / 335px auto;
  opacity: 0.32;
}
.app-shell,
.handoff {
  position: relative;
  z-index: 1;
}
.app-shell {
  max-width: 1610px;
  margin: auto;
  padding: 0 clamp(14px, 2.25vw, 40px) 22px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 79px;
}
.brand,
.top nav,
.shop-actions,
.arena-tools,
.pair-buttons,
.panel-title,
.bench-info,
.battle-status,
.shop-head,
.wallet {
  display: flex;
  align-items: center;
}
.brand {
  gap: 9px;
  isolation: isolate;
}
.brand-skull {
  width: 49px;
  height: 48px;
  object-fit: contain;
  transform: rotate(-8deg);
  filter: drop-shadow(0 3px 0 #142448);
}
.wordmark {
  transform: skew(-5deg);
}
.wordmark > span {
  display: block;
  color: #ffda64;
  font:
    14px/0.95 Lilita,
    sans-serif;
  letter-spacing: 1.8px;
  text-shadow: 0 2px #122040;
}
.brand h1 {
  font: 900 clamp(23px, 2.2vw, 35px)/1.15 var(--font);
  letter-spacing: -1.6px;
  text-shadow: 0 3px #111e33;
  -webkit-text-stroke: 0.45px #16213c;
  paint-order: stroke fill;
}
.brand h1 span {
  color: #ffdb55;
}
.top nav,
.arena-tools,
.shop-actions,
.pair-buttons {
  gap: 7px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 34px;
  padding: 5px 12px;
  border: 2px solid #111f39;
  border-radius: 6px;
  background: linear-gradient(#3c5992, #304a7c);
  box-shadow:
    inset 0 2px #ffffff1c,
    0 2px #172743;
  font-family: var(--copy);
  font-weight: 800;
  line-height: 1.2;
}
.btn:not(:disabled):hover,
.role-tile:hover,
.gear-tile:hover {
  filter: brightness(1.17);
}
.btn:disabled {
  opacity: 0.55;
}
.btn.primary,
.btn.reroll {
  color: #37290e;
  background: linear-gradient(175deg, #ffe371 0%, #ffce3f 54%, #ffba25 55%, #f9af20 100%);
  border-color: #44351c;
  box-shadow:
    inset 0 2px #fff2aa,
    0 3px #61421b;
}
.btn.primary {
  min-width: 141px;
  min-height: 36px;
  padding: 5px 18px;
  font: 900 17px/1.2 var(--font);
}
.btn.primary .icon {
  width: 1.05em;
}
.nav-button,
.mode-button {
  min-height: 33px;
  border-color: #19315b;
  border-radius: 6px;
  color: #eff5ff;
  font-size: 13px;
}
.nav-button {
  background: #172f5fb5;
  box-shadow:
    inset 0 1px #ffffff18,
    0 2px #172a50;
}
.mode-button {
  background: linear-gradient(#3c71af, #2d5690);
}
.coin {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  object-fit: contain;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(162px, 0.76fr) minmax(0, 3.15fr) minmax(168px, 0.8fr);
  grid-template-areas: 'left center right' 'shop shop shop';
  gap: 13px;
  align-items: start;
}
.left-column,
.right-column,
.center-column {
  display: grid;
  gap: 11px;
  min-width: 0;
}
.left-column {
  grid-area: left;
}
.right-column {
  grid-area: right;
}
.center-column {
  grid-area: center;
}
.panel {
  min-width: 0;
  overflow: hidden;
  border: 2px solid #101d39;
  border-radius: 11px;
  background: linear-gradient(142deg, #2a4373, #20365e 72%);
  box-shadow:
    inset 0 1px #a0b9e345,
    0 3px 0 #152447,
    0 6px 13px #10264d42;
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 900 16px/1.28 var(--font);
  text-shadow: 0 1px 1px #172744;
}
.panel h2 > .icon {
  color: #9acaec;
  stroke-width: 2.5;
}
.panel-title,
.bench-info {
  justify-content: space-between;
  gap: 6px;
}
.panel-emblem {
  width: 24px;
  height: 23px;
  object-fit: contain;
}
.players,
.traits,
.picked,
.damage,
.warehouse,
.upcoming {
  padding: 12px;
}
.players h2,
.traits h2,
.upcoming h2 {
  margin-bottom: 10px;
}
.team-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 7px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #101e37;
  border-left: 4px solid #59dafa;
  background: linear-gradient(115deg, #3b628d, #2e4568);
}
.team-card.bot {
  border-left-color: #ff776d;
  background: linear-gradient(115deg, #724655, #44364e);
}
.avatar {
  width: 38px;
  height: 39px;
  border: 2px solid #142238;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #263751;
  overflow: hidden;
  flex: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar .team-badge {
  padding: 3px;
  object-fit: contain;
  background: #243954;
}
.team-summary {
  min-width: 0;
  flex: 1;
}
.team-summary strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.team-summary > i,
.damage-body > i {
  display: block;
  height: 4px;
  background: #162a43;
  border-radius: 3px;
  overflow: hidden;
}
.team-summary > i::before {
  content: '';
  display: block;
  width: var(--hp);
  height: 100%;
  background: #75e286;
}
.team-hp {
  font-size: 12px;
  line-height: 17px;
}
.team-hp .icon {
  width: 11px;
  color: #ff8683;
  margin-right: 2px;
}
.team-hp b {
  font: 15px Lilita;
}
.team-hp small {
  font-size: 9px;
  color: #cbd7e8;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.role-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 1px;
  background: #1b3159;
  border: 1px solid #48628a;
  border-radius: 5px;
  color: #e7effc;
  font-size: 10px;
  font-weight: 700;
}
.role-art {
  display: inline-block;
  height: 23px;
  width: 23px;
  object-fit: contain;
  vertical-align: middle;
}
.tray-note,
.warehouse p {
  margin-top: 9px;
  color: #c3d1e6;
  font: 500 11px/1.55 var(--copy);
}
.trait-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #425d86;
  border-radius: 5px;
  background: #1b3154;
  text-align: left;
  font-size: 12px;
}
.trait-row i {
  width: 29px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--t) 40%, #192947);
}
.trait-row span:not(.trait-faces) {
  flex: 1;
}
.trait-row b {
  font: 17px Lilita;
  color: #d3e4f8;
}
.trait-row b small {
  color: #a4b8d4;
  font: 12px Lilita;
}
.trait-row.active {
  background: linear-gradient(110deg, #6c5430, #504941);
  border-color: #bf964c;
}
.trait-row.active b {
  color: #ffdc62;
}
.trait-faces {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 25px;
}
.trait-faces img {
  position: absolute;
  width: 19px;
  height: 20px;
  object-fit: cover;
  top: 0;
  left: 0;
  border-radius: 3px;
  border: 1px solid #172641;
}
.trait-faces img + img {
  left: 10px;
  top: 5px;
}
.picked-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.picked-title img {
  height: 38px;
  width: 38px;
  border: 2px solid #101b32;
  border-radius: 5px;
}
.picked-title b,
.picked-title small {
  display: block;
}
.picked-title small,
.yellow {
  color: var(--gold);
}
.wide,
.pair-buttons .btn {
  width: 100%;
}
.pair-buttons {
  margin-top: 6px;
}
.picked .btn {
  font-size: 12px;
  padding-inline: 5px;
  min-height: 29px;
}
.arena {
  position: relative;
  background: #162946;
  border: 3px solid #14223f;
  box-shadow:
    0 4px #101e39,
    0 9px 19px #142a5066;
}
.map-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  isolation: isolate;
  min-height: 66px;
  padding: 8px 13px;
  border-bottom: 3px solid #27253c;
  background: #443c68;
  overflow: hidden;
}
.map-head::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--scene) center 51% / cover;
}
.map-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #172641e6, #202c4d62 42%, #20305714 60%, #202e4fac);
}
.map-insignia {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  flex: none;
}
.map-badge {
  width: 41px;
  height: 41px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px #14233b);
}
.map-name small {
  display: block;
  color: #ffdd79;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 800;
  text-shadow: 0 1px 2px #1e2141;
}
.map-head h2 {
  font: 900 clamp(22px, 2vw, 32px)/1.1 var(--font);
  letter-spacing: 0.1px;
  text-shadow:
    0 2px #20203c,
    1px 0 #20203c;
}
.map-english {
  align-self: flex-end;
  margin-bottom: 5px;
  color: #fff0dc;
  font: 13px/1 Lilita;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #202032;
}
.round {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding: 4px 9px;
  background: #19243ce8;
  border: 1px solid #9db0cd6b;
  border-radius: 5px;
  color: #f2f6ff;
  white-space: nowrap;
}
.round small {
  font-size: 10px;
  color: #d2def2;
}
.round b {
  font: 25px/0.96 Lilita;
  color: #ffe385;
}
.round span {
  font: 13px Lilita;
  color: #b7c7e1;
}
.arena-stage {
  position: relative;
  background: #a18069;
  overflow: hidden;
}
.field {
  position: relative;
  width: 100%;
  aspect-ratio: 2.03;
  isolation: isolate;
}
#battle-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.arena-interaction {
  position: absolute;
  inset: 7.66129% 4.166667%;
  pointer-events: none;
}
.deploy-grid {
  pointer-events: auto;
}
.deploy-grid {
  position: absolute;
  inset: 62.5% 0 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.drop-cell,
.unit-hit {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
}
.drop-cell:hover,
.drop-cell:focus-visible {
  outline: 2px solid #e1f8ff9c;
  outline-offset: -3px;
  background: #e7fbff24;
}
.field.moving .drop-cell:hover {
  background: #fff39f4d;
  outline-color: #ffed85;
}
#pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.unit-hit {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -82%);
  width: 6%;
  height: 15%;
  min-width: 22px;
  cursor: grab;
}
.unit-hit:hover,
.unit-hit:focus-visible {
  outline: 2px solid #ffe28d;
  outline-offset: 1px;
}
.arena-bottom {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 6px 10px;
  background: linear-gradient(101deg, #263d66, #263a60 54%, #304972);
  border-top: 2px solid #132340;
}
.battle-status {
  flex: 1;
  min-width: 0;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #d8e6fb;
}
.battle-status > b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font: 900 15px var(--font);
}
.battle-status i {
  width: 7px;
  height: 7px;
  background: #8fe3a3;
  border-radius: 50%;
  box-shadow: 0 0 6px #76df8b44;
}
.battle-status small {
  color: #b8cae0;
  font-size: 10px;
}
.btn.mini,
.text-button {
  min-height: 27px;
  padding: 3px 7px;
  font-size: 12px;
}
.text-button {
  background: #304c76;
  color: #d9ecff;
  border-color: #182c49;
}
.result-badge {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-2deg);
  min-width: 180px;
  text-align: center;
  padding: 11px 24px;
  background: linear-gradient(125deg, #243a68f5, #1a2b53f5);
  border: 3px solid #f9cf58;
  border-radius: 8px;
  box-shadow: 0 4px #372e3e;
}
.result-badge strong,
.result-badge span {
  display: block;
}
.result-badge strong {
  font: 900 24px var(--font);
  color: #ffe381;
}
.result-badge span {
  font-size: 12px;
  margin-top: 3px;
}
.reward-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  vertical-align: middle;
}
.bench {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  background: linear-gradient(175deg, #425c89 0%, #314b76 49%, #243959 100%);
}
.bench-info {
  flex: none;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}
.bench-info h2 {
  font-size: 14px;
}
.bench-info h2 small {
  font: 12px Lilita;
  color: #b9cce4;
}
.bench-info .text-button {
  font-size: 10px;
  min-height: 20px;
  padding: 2px 5px;
  border-width: 1px;
}
.bench-slots {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}
.bench-slot {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  height: clamp(36px, 3.9vw, 57px);
  padding: 0;
  border: 2px solid #172940;
  border-bottom-color: #527198;
  border-radius: 5px;
  background: linear-gradient(145deg, #243a5c, #1d3051);
  box-shadow: inset 0 3px 5px #15284280;
}
.bench-slot i {
  height: 3px;
  width: 18px;
  border-radius: 10px;
  background: #566f92;
  box-shadow: 0 1px #142940;
}
.bench-slot:not(.filled)::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, #7894b83a 0 5px, transparent 5px) top left/15px 12px no-repeat,
    linear-gradient(315deg, #6f8aab36 0 5px, transparent 5px) bottom right/15px 12px no-repeat;
  pointer-events: none;
}
.bench-slot.filled {
  border-bottom: 3px solid var(--rarity);
  background: color-mix(in srgb, var(--rarity) 45%, #182b4a);
}
.bench-slot img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 40%;
}
.bench-slot span {
  position: absolute;
  left: 2px;
  bottom: 0;
  font-size: 11px;
  color: #ffdc50;
  text-shadow:
    0 1px 2px #0a1731,
    1px 0 #0a1731;
}
.bench-slot.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.bench-slot:not(:disabled):hover {
  border-color: #91cfff;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  margin: 10px 0 8px;
  background: #172b4d;
  border-radius: 5px;
}
.segmented button {
  padding: 4px 2px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #bdcee6;
  font-size: 11px;
  font-weight: 800;
}
.segmented button[aria-pressed='true'] {
  background: #4c70a4;
  color: white;
  box-shadow: 0 1px 2px #10223e;
}
.empty-damage {
  display: grid;
  place-items: center;
  gap: 5px;
  color: #b4c6e1;
  font-size: 11px;
  padding: 12px 0;
  min-height: 68px;
}
.empty-damage .icon {
  width: 25px;
  height: 25px;
  color: #7ca2d0;
}
.damage-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 5px;
}
.damage-face img {
  width: 29px;
  height: 29px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.damage-body {
  flex: 1;
  min-width: 0;
}
.damage-body > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
}
.damage-body b {
  font: 15px Lilita;
  color: #ffdf7e;
}
.damage-body > i {
  margin-top: 3px;
}
.damage-body > i > b {
  display: block;
  height: 100%;
  background: #ffd25c;
}
.gear-preview,
.gear-pile {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.gear-preview img,
.gear-tile {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.gear-tile {
  padding: 2px;
  border: 1px solid #6780a6;
  border-radius: 5px;
  background: #213858;
}
.gear-tile img {
  max-height: 100%;
  margin: auto;
}
.warehouse .text-button {
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 11px;
  padding: 0;
  min-height: 20px;
  color: #b8d9fa;
}
.round-track {
  display: flex;
  gap: 4px;
  justify-content: space-between;
}
.round-track > div {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  border-radius: 5px;
  background: #1e3357;
  border: 1px solid #465d82;
}
.round-track img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin: auto;
}
.round-track b {
  display: block;
  color: #bdd3ed;
  font: 12px Lilita;
}
.shop {
  grid-area: shop;
  padding: 10px 12px 7px;
  background: linear-gradient(145deg, #385886, #253d68 60%);
  border-color: #14233e;
}
.shop-head {
  gap: 10px;
  margin: 0 1px 8px;
}
.shop-head h2 {
  font-size: 20px;
}
.shop-head h2 .icon {
  color: #ffde6d;
}
.shop-actions {
  margin-left: auto;
  gap: 6px;
}
.shop-option {
  min-height: 29px;
  padding: 3px 9px;
  font-size: 12px;
}
.btn.chosen {
  color: #ffdf68;
  border-color: #caa14e;
}
.wallet {
  gap: 4px;
  min-height: 25px;
  padding: 1px 9px 1px 5px;
  background: #192c4a;
  border: 1px solid #566c8a;
  border-radius: 5px;
  color: #ffde69;
}
.wallet b {
  font: 19px Lilita;
}
.shop-rack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.shop-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  height: clamp(110px, 9.4vw, 150px);
  text-align: left;
  border: 2px solid #17243e;
  border-bottom: 4px solid var(--rarity, #43577c);
  border-radius: 7px;
  background: linear-gradient(
    116deg,
    color-mix(in srgb, var(--rarity) 44%, #101936),
    color-mix(in srgb, var(--rarity) 80%, #263953) 60%,
    var(--rarity)
  );
  box-shadow: 0 2px #122444;
}
.shop-card:not(.sold)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-conic-gradient(from 20deg at 65% 74%, #ffffff1c 0deg 11deg, transparent 12deg 32deg);
}
.shop-card:not(.sold)::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, #111d35ed 0%, #142039ac 12%, #14203933 31%, transparent 54%);
  pointer-events: none;
}
.shop-card:not(:disabled):hover {
  border-color: #ffdfa0;
  box-shadow:
    0 0 0 1px #ffdf8033,
    0 3px #16233a;
  transform: translateY(-2px);
}
.shop-card:disabled:not(.sold) {
  filter: saturate(0.69) brightness(0.85);
}
.shop-picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shop-picture img {
  width: 82%;
  height: 146%;
  max-width: none;
  position: absolute;
  right: 2%;
  top: 3%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(2px 3px 0 #17243a90);
}
.card-role,
.card-price,
.card-meta,
.copy-count {
  position: absolute;
  z-index: 1;
}
.card-role {
  left: 6px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #1d253e9c;
  border: 1px solid #c9dbfb50;
}
.card-role .role-art {
  width: 21px;
  height: 21px;
}
.card-price {
  right: 5px;
  top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 3px;
  background: #182331e6;
  border: 1px solid #0d1a2d;
  border-radius: 5px;
}
.card-price b {
  font: 17px/1.15 Lilita;
  color: #ffe172;
}
.card-meta {
  bottom: 5px;
  left: 9px;
  right: 4px;
  text-shadow: 0 2px 1px #101a2b;
}
.card-meta small,
.card-meta strong {
  display: block;
}
.card-meta small {
  color: #e0e8f5;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.card-meta strong {
  font: 900 clamp(16px, 1.45vw, 23px)/1.15 var(--font);
}
.copy-count {
  bottom: 6px;
  right: 6px;
  color: #ffdf77;
  font: 14px Lilita;
}
.shop-card.sold {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  background: repeating-linear-gradient(135deg, #20375a 0 12px, #223a5e 12px 24px);
  color: #a6b9d2;
  font-size: 12px;
}
.sold-emblem {
  width: 35px;
  height: 35px;
  object-fit: contain;
  opacity: 0.22;
  filter: grayscale(1);
}
.sold .icon {
  width: 13px;
  margin-right: 4px;
}
.xp-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
  color: #bfd1e9;
}
.xp-line b {
  font-weight: 700;
}
.xp-line > i {
  width: 66px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #182c4c;
}
.xp-line > i > b {
  display: block;
  height: 100%;
  background: #8cdaf8;
}
dialog {
  border-color: #142343;
  background: #263e68;
}
.dialog-head {
  background: linear-gradient(105deg, #3c619c, #34517f);
}
.dialog-head h2,
.hero-summary h3,
.handoff h1 {
  font-family: var(--font);
  font-weight: 900;
}
.hero-summary p .role-art {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -4px;
}
.trait-lead .role-art,
.trait-lead .trait-faces {
  margin-right: 7px;
}
.stat-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 1100px) and (max-height: 810px) {
  .top {
    min-height: 60px;
  }
  .map-head {
    min-height: 48px;
    padding-block: 4px;
  }
  .field {
    aspect-ratio: 2.25;
  }
  .arena-bottom {
    min-height: 44px;
  }
  .bench-slot {
    height: 39px;
  }
  .shop-card {
    height: 99px;
  }
  .bench,
  .shop {
    padding-block: 6px;
  }
  .dashboard,
  .left-column,
  .right-column,
  .center-column {
    gap: 8px;
  }
}
@media (min-width: 1650px) {
  .field {
    aspect-ratio: 2;
  }
  .top {
    min-height: 88px;
  }
}
@media (max-width: 1120px) and (min-width: 801px) {
  .app-shell {
    padding: 0 9px 15px;
  }
  .dashboard {
    grid-template-columns: 153px minmax(0, 1fr) 153px;
    gap: 8px;
  }
  .players,
  .traits,
  .picked,
  .damage,
  .warehouse,
  .upcoming {
    padding: 8px;
  }
  .panel h2 {
    font-size: 14px;
  }
  .top {
    min-height: 65px;
  }
  .map-head h2 {
    font-size: 22px;
  }
  .map-english {
    display: none;
  }
  .battle-status small {
    display: none;
  }
  .btn.primary {
    min-width: 108px;
    font-size: 15px;
  }
  .role-grid {
    gap: 3px;
  }
  .bench {
    gap: 6px;
    padding: 7px;
  }
  .shop-card {
    height: 112px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    padding: 0 9px 14px;
  }
  .top {
    min-height: 61px;
  }
  .brand-skull {
    width: 39px;
    height: 39px;
  }
  .brand h1 {
    font-size: 25px;
  }
  .wordmark > span {
    font-size: 10px;
  }
  .top nav {
    gap: 4px;
  }
  .top .btn {
    min-height: 29px;
    font-size: 11px;
    padding: 3px 7px;
  }
  .dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'center center' 'shop shop' 'left right';
    gap: 9px;
  }
  .center-column,
  .left-column,
  .right-column {
    gap: 7px;
  }
  .map-head {
    min-height: 52px;
    padding: 5px 9px;
  }
  .map-head h2 {
    font-size: 24px;
  }
  .map-english {
    font-size: 11px;
  }
  .map-badge,
  .map-insignia {
    width: 34px;
    height: 34px;
  }
  .field {
    aspect-ratio: 1.94;
  }
  .shop-card {
    height: 110px;
  }
  .bench-slot {
    height: 40px;
  }
  .shop-actions {
    gap: 4px;
  }
}
@media (max-width: 520px) {
  .app-shell {
    padding: 0 5px 12px;
  }
  .top {
    gap: 4px;
    min-height: 56px;
  }
  .top nav {
    gap: 3px;
  }
  .top .btn {
    padding: 3px 5px;
    font-size: 10px;
    border-width: 1px;
  }
  .top .icon {
    width: 13px;
  }
  .brand {
    gap: 3px;
  }
  .brand-skull {
    width: 33px;
    height: 35px;
  }
  .brand h1 {
    font-size: 20px;
  }
  .wordmark > span {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .dashboard {
    gap: 7px;
  }
  .panel {
    border-radius: 7px;
  }
  .arena {
    border-width: 2px;
  }
  .map-head {
    min-height: 45px;
    gap: 5px;
  }
  .map-head h2 {
    font-size: 19px;
  }
  .map-english {
    display: none;
  }
  .map-name small {
    font-size: 8px;
  }
  .round b {
    font-size: 19px;
  }
  .map-insignia,
  .map-badge {
    width: 30px;
    height: 30px;
  }
  .field {
    aspect-ratio: 1.6;
  }
  .arena-bottom {
    min-height: 39px;
    padding: 4px 6px;
  }
  .btn.primary {
    min-height: 28px;
    min-width: 86px;
    font-size: 13px;
    padding: 4px 7px;
  }
  .battle-status {
    gap: 4px;
    font-size: 10px;
  }
  .battle-status > b {
    font-size: 12px;
  }
  .battle-status small {
    display: none;
  }
  .arena-tools {
    gap: 3px;
  }
  .btn.mini {
    font-size: 10px;
    min-height: 23px;
    padding: 3px 5px;
  }
  .bench {
    gap: 4px;
    padding: 5px;
  }
  .bench-info {
    gap: 1px;
  }
  .bench-info h2 {
    font-size: 11px;
    gap: 2px;
  }
  .bench-info h2 small {
    font-size: 9px;
  }
  .bench-info .text-button {
    font-size: 8px;
    min-height: 16px;
    padding: 1px 2px;
  }
  .bench-slots {
    gap: 2px;
  }
  .bench-slot {
    height: 29px;
    border-width: 1px;
  }
  .bench-slot i {
    width: 10px;
  }
  .shop {
    padding: 6px;
  }
  .shop-head {
    gap: 3px;
    margin: 0 0 5px;
  }
  .shop-head h2 {
    font-size: 14px;
    gap: 3px;
  }
  .shop-head .wallet {
    padding: 1px 4px;
    gap: 1px;
    min-height: 19px;
  }
  .wallet b {
    font-size: 13px;
  }
  .shop-option {
    font-size: 9px;
    min-height: 22px;
    padding: 3px 4px;
    gap: 1px;
    border-width: 1px;
  }
  .shop-option .icon {
    width: 11px;
  }
  .coin {
    width: 13px;
    height: 13px;
  }
  .shop-rack {
    gap: 3px;
  }
  .shop-card {
    height: 92px;
    border-width: 1px;
    border-bottom-width: 3px;
    border-radius: 4px;
  }
  .card-role {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }
  .card-role .role-art {
    width: 14px;
    height: 14px;
  }
  .card-price {
    right: 2px;
    top: 2px;
    gap: 0;
    padding: 0 2px;
  }
  .card-price b {
    font-size: 12px;
  }
  .card-price .coin {
    width: 10px;
    height: 10px;
  }
  .card-meta {
    left: 3px;
    bottom: 4px;
  }
  .card-meta strong {
    font-size: 13px;
  }
  .card-meta small {
    font-size: 8px;
    white-space: normal;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .shop-picture img {
    height: 106%;
    top: 7%;
    right: -12%;
    width: 123%;
  }
  .copy-count {
    font-size: 10px;
    bottom: 2px;
    right: 2px;
  }
  .xp-line {
    font-size: 9px;
    margin-top: 4px;
  }
  .players,
  .traits,
  .picked,
  .damage,
  .warehouse,
  .upcoming {
    padding: 8px;
  }
  .panel h2 {
    font-size: 13px;
  }
  .panel .map-name h2 {
    font-size: 19px;
  }
  .trait-row {
    font-size: 11px;
  }
  .avatar {
    height: 29px;
    width: 29px;
  }
  .team-card {
    min-height: 50px;
  }
  .team-summary strong {
    font-size: 11px;
  }
  .codex-row,
  .target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ability-list {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 10px;
  }
  .dialog-head {
    padding: 8px;
  }
  .shop-head h2 {
    font-size: 13px;
  }
}
@media (min-width: 801px) {
  .traits {
    max-height: clamp(210px, 43vh, 420px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #7695ba #213958;
  }
  .left-column:has(.picked) .traits {
    max-height: clamp(153px, 25vh, 265px);
  }
  .field {
    max-height: clamp(248px, calc(100svh - 508px), 575px);
  }
  .top {
    min-height: clamp(58px, 7.6vh, 80px);
  }
  .bench-slot {
    max-height: 48px;
  }
  .shop-card {
    max-height: clamp(95px, 13.5vh, 145px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}
