@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,400..700,0..1,-50..200&display=swap');

:root {
  color-scheme: dark;
  font-family: "Roboto Flex", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #dddddd;
  --muted: #abb5c1;

  --line: rgba(152, 153, 153, 0.34);
  --panel: rgba(3, 10, 20, .88);
  --page: #02050b;
  --fire: #d23433;
  --water: #00a7ff;
  --steel: #a8b0b8;
  --accent: #0ea5e9;
  --gold: #f6b73c;
  --danger: #ef4444;
  --homepage-width: 900px;
  --ease-app: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--ink);
}

html.is-battle-capturing,
body.is-battle-capturing {
  overflow: hidden;
}

body.is-battle-flow-locked .xb-arena,
body.is-battle-flow-locked .battle-result,
body.is-battle-flow-locked .battle-support-panel {
  pointer-events: none;
}

a {
  color: #fff;
}

a:hover {
  text-decoration: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

p.text-warning-on-dark {
  color: #f26767 !important;

}

button,
input,
select {
  font: inherit;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid black;
  border-radius: 6px;
  padding: 0 14px;
  /* background: linear-gradient(180deg, rgba(14, 165, 233, .22), rgba(2, 6, 23, .92)); */
  /* color: #dff6ff; */
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background-color: #d23433;
  user-select: none;

  background: linear-gradient(180deg, #d23433, rgba(220, 21, 3, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -16px 28px rgba(0, 0, 0, .25), 0 0 16px rgba(255, 59, 31, .16);
}

button:hover {
  cursor: pointer;
  color: #000;
  background-color: #fff;
  background: linear-gradient(180deg, #fefefe, rgba(249, 249, 249, 0.74));
  box-shadow: inset 0 1px 0 rgba(117, 117, 117, 0.2), inset 0 -16px 28px rgba(0, 0, 0, .25), 0 0 16px rgba(255, 59, 31, .16);
}

button:disabled {
  background: linear-gradient(180deg, #626262, rgba(52, 52, 52, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -16px 28px rgba(0, 0, 0, .25), 0 0 16px rgba(255, 59, 31, .16);
}

button.is-loading,
button[aria-busy="true"] {
  position: relative;
  pointer-events: none;
}

.button-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, .34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spinner-spin .7s linear infinite;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 1.25em;
  min-width: 1.25em;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL"0, "wght"600, "GRAD"0, "opsz"24;
}

.material-symbols-rounded::before {
  content: attr(data-icon);
}

.fonts-loading .material-symbols-rounded {
  color: transparent;
}

.button-label {
  display: inline-block;
}

button.secondary {
  background: rgba(0, 0, 0, .82);
  color: #ccc;
  border-color: rgba(255, 255, 255, .26);
}

button.secondary:hover {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, .26);
}

button.danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, .34), rgba(31, 7, 7, .94));
  border-color: rgba(248, 113, 113, .55);
}

button.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ccc;
  box-shadow: none;
  font-size: .88rem;
  font-weight: 800;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 18px;
}

button.link-button:hover {
  color: #bbb;
  text-decoration: none;

}

button:disabled {
  opacity: .55;
  pointer-events: none;
  background-color: #222;
  color: #888;
}

.panel.latest-message {
  min-height: 225px;
  font-size: 25px;
  text-align: center;
  padding: 75px 50px 0;
  opacity: 0.4;
  font-style: italic;
}

.empty-open-pack {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: start;
}

.empty-open-pack h2,
.empty-open-pack p {
  max-width: 520px;
  margin: 0;
}

.empty-open-pack h2 {
  color: #f8fbff;
  text-transform: uppercase;
}

.empty-open-pack p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.35;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(1, 6, 14, .88);
  color: var(--ink);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9fb7ca;
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #f8fbff;
  background: rgba(255, 255, 255, .08);
}

.password-toggle .material-symbols-rounded {
  font-size: 1.25rem;
}

.app-shell {
  --screen-enter-x: 0px;
  --screen-enter-y: 18px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 18px 118px;
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
}

.app-shell[data-transition="forward"] {
  --screen-enter-x: 22px;
}

.app-shell[data-transition="back"] {
  --screen-enter-x: -22px;
}

.app-shell.is-route-pending {
  pointer-events: none;
}

.app-shell.is-screen-entering {
  animation: app-fade-enter .42s ease-out both;
}

.app-shell.is-screen-entering :where(.homepage, .dashboard-screen, .collection-screen, .battle-screen, .battle-arena, .battle-final, .packs-screen, .account-screen, .admin-screen) {
  animation: screen-panel-enter .54s var(--ease-app) both;
}

.app-shell.is-screen-entering[data-transition="forward"] :where(.homepage, .dashboard-screen, .collection-screen, .battle-screen, .battle-arena, .battle-final, .packs-screen, .account-screen, .admin-screen, .missions-screen) {
  animation-name: screen-forward-enter;
}

.app-shell.is-screen-entering[data-transition="back"] :where(.homepage, .dashboard-screen, .collection-screen, .battle-screen, .battle-arena, .battle-final, .packs-screen, .account-screen, .admin-screen, .missions-screen) {
  animation-name: screen-back-enter;
}

.app-shell.is-screen-entering :where(.dashboard-panel, .panel, .filter-rail, .collection-header, .battle-setup, .pack-card) {
  animation: panel-lift-enter .54s var(--ease-app) both;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat) {
  animation: tile-rise-enter .5s var(--ease-app) both;
  transform-origin: center bottom;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat) {
  animation: content-settle-enter .34s var(--ease-app) both;
  transform-origin: center bottom;
}

.screen-transition-ghost {
  position: fixed;
  top: var(--ghost-top, 0);
  left: var(--ghost-left, 0);
  z-index: 4;
  width: var(--ghost-width, 100vw);
  height: var(--ghost-height, 100vh);
  padding: 16px 18px 118px;
  overflow: hidden;
  pointer-events: none;
  background: #000;
  transform-origin: center top;
  animation: screen-ghost-exit .36s ease-out both;
}

.screen-transition-ghost .notification-stack,
.screen-transition-ghost .bottom-nav,
.screen-transition-ghost .battle-capture-overlay,
.screen-transition-ghost .card-overlay {
  display: none;
}

.route-wipe {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: hidden;
  pointer-events: auto;
}

.route-wipe__panel {
  position: absolute;
  top: -28vh;
  left: -90vw;
  bottom: -28vh;
  width: 280vw;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .98), #000 18%, #000 82%, rgba(0, 0, 0, .98));
  box-shadow:
    -28px 0 46px rgba(0, 0, 0, .82),
    inset 1px 0 0 rgba(255, 255, 255, .04);
  transform: translateX(112%) skewX(-18deg);
  transform-origin: center;
  animation: route-wipe-panel-in .36s cubic-bezier(.72, 0, .22, 1) forwards;
}

.route-wipe__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(116px, 16vw, 210px);
  height: auto;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
  filter: drop-shadow(0 0 26px rgba(210, 52, 51, .28));
  animation: route-wipe-logo-in .28s .14s var(--ease-app) forwards;
}

.route-wipe.is-exiting .route-wipe__panel {
  animation: route-wipe-panel-out .42s cubic-bezier(.76, 0, .2, 1) forwards;
}

.route-wipe.is-exiting .route-wipe__logo {
  animation: route-wipe-logo-out .22s ease-in forwards;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(1) {
  animation-delay: 40ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(1) {
  animation-delay: 20ms;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(2) {
  animation-delay: 75ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(2) {
  animation-delay: 35ms;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(3) {
  animation-delay: 110ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(3) {
  animation-delay: 50ms;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(4) {
  animation-delay: 145ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(4) {
  animation-delay: 65ms;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(5) {
  animation-delay: 180ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(5) {
  animation-delay: 80ms;
}

.app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(n+6) {
  animation-delay: 215ms;
}

.app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat):nth-child(n+6) {
  animation-delay: 95ms;
}

.topbar,
.panel,
.beast-card {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px 18px;
  border: none;
}

#installButton {
    position: fixed;
    top: 0px;
    left: calc(50% - 50px);
    border: none;
    background: #fff;
    border-radius: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #000;
    font-size: 14px;
    padding: 0px 10px;
    min-height: 30px;
}

#installButton:hover {
  background: #888;
  color: #fff;
}

#installButton[hidden] {
  display: none;
}

.topbar-actions {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions[hidden] {
  display: none;
}

.topbar-play[hidden] {
  display: none;
}

.topbar-play {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: max(0px, calc((100% - var(--homepage-width)) / 2));
  color: #fff;
  border-color: rgba(210, 52, 51, .78);
  background: linear-gradient(180deg, rgba(210, 52, 51, .52), rgba(40, 3, 3, .9));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .08), 0 0 16px rgba(210, 52, 51, .24);
}

.settings-menu {
  position: relative;
}

.topbar-icon-button {
  width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

button.topbar-icon-button:hover {
  background: transparent;
  color: #d23433;
}

.topbar-icon-button .material-symbols-rounded {
  font-size: 1.75rem;
  font-variation-settings: "FILL"1, "wght"700, "GRAD"0, "opsz"28;
}

.topbar-icon-button:hover,
.topbar-icon-button:focus-visible {
  color: #f8fbff;
  border-color: rgba(210, 52, 51, .78);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .08), 0 0 16px rgba(210, 52, 51, .24);
}

.topbar-home.is-active {
  color: #d23433;
  border-color: #d23433;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .08), 0 0 18px rgba(255, 255, 255, .2);
  pointer-events: none;
}

.settings-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(210, 52, 51, .18), transparent 44%),
    rgba(3, 8, 16, .98);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .06), 0 18px 34px rgba(0, 0, 0, .55);
}

.settings-menu__panel[hidden] {
  display: none;
}

.settings-menu__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  border-left: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(3, 8, 16, .98);
  transform: rotate(45deg);
}

.settings-menu__panel button {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbeafe;
  font-size: .95rem;
  text-align: left;
  box-shadow: none;
}

.settings-menu__panel button[hidden] {
  display: none;
}

.settings-menu__panel button:hover,
.settings-menu__panel button:focus-visible {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.view-stack #backDashboard,
.view-stack #missionBack,
.view-stack #accountBack {
  display: none;
}

.profile-plate {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body:not(.is-authenticated) .profile-plate {
  visibility: hidden;
  position: fixed;
  top: -999rem;
}

.avatar-mark, .avatar-mark:hover {
  display: block;
  width: 56px;
  height: 56px;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  background:
    url('/assets/images/profiles.webp') var(--avatar-x, 0%) var(--avatar-y, 0%) / 800% 500% no-repeat,
    rgba(4, 15, 29, .88);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .4), 0 0 18px rgba(255, 255, 255, .5);
  overflow: hidden;
}

.profile-name {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  display: block;
  justify-self: center;
  margin: 0;
  line-height: 0;
}

.brand__picture,
.brand__logo {
  display: block;
}

.brand__logo {
  width: clamp(180px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, .8));
}

.status-pill {
  display: inline-flex;
  margin-top: 3px;
  color: #fa5b5b;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.view-stack {
  display: grid;
  gap: 14px;
  padding: 14px 0 28px;
}

.panel {
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 34%), rgba(3, 10, 20, .88);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .09);
}

.panel.auth-panel {
  width: min(100%, 420px);
  margin: 10px auto 0;
  padding: 30px 20px;
}

.panel h1,
.panel h2 {
  margin: 0 0 12px;
  line-height: 1.05;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: #f8fbff;
}

.panel h2 {
  font-size: 1.4rem;
}

.auth-panel h1 {
  text-align: center;
}

.auth-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-title .material-symbols-rounded {
  color: #ef4444;
  font-size: 1em;
  font-variation-settings: "FILL"1, "wght"700, "GRAD"0, "opsz"32;
}

.auth-intro {
  margin: -4px 0 16px;
  color: #bbb;
  text-align: center;
}

.homepage {
  position: relative;
  padding-top: 10px;
}

.homepage-content {
  display: grid;
  gap: 16px;
  width: min(100%, var(--homepage-width));
  margin: 0 auto;
  transition: filter .24s ease, opacity .24s ease;
}

.homepage.is-auth-open .homepage-content,
.homepage.is-auth-open .homepage-footer {
  filter: blur(8px);
  opacity: .42;
  pointer-events: none;
  user-select: none;
}

.homepage-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, var(--homepage-width));
  margin: 58px auto 0;
  padding: 18px 0 6px;
  transition: filter .24s ease, opacity .24s ease;
}

.homepage-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px;
  max-height: 82px;
  padding: 9px 34px;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 14px;
  /* background: linear-gradient(135deg, rgba(0, 167, 255, .12), rgba(210, 52, 51, .08)); */
  color: #d7ecff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .04);
}

.homepage-footer a:hover,
.homepage-footer a:focus-visible {
  border-color: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 167, 255, .22), rgba(210, 52, 51, .16));
}

.homepage-footer__badge {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  background: no-repeat;
  padding: 0 28px;
  min-height: auto;

}

a.homepage-footer__badge:hover {
  border: none;
  background: none;
}

.homepage-footer__badge:hover,
.homepage-footer__badge:focus-visible {
  border-color: transparent;
  background: transparent;
}

.homepage-footer__badge img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.homepage-footer .material-symbols-rounded {
  font-size: 1.2em;
}

.x-social-mark {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  color: #fff;
}

.homepage-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(280px, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: #050914;
  text-align: left;
}

button.homepage-panel:hover {
  /* background-color: #d23433; */
  background: #000;
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: none !important;
}

.homepage-panel img {
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.homepage-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* background:
    linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .7) 48%, rgba(0, 0, 0, .92)),
    radial-gradient(circle at 78% 20%, rgba(210, 52, 51, .18), transparent 42%); */

  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .1) 28%, rgba(0, 0, 0, 1) 48%), radial-gradient(circle at 78% 20%, rgba(210, 52, 51, .18), transparent 42%);
     box-shadow: inset 6px 8px 80px 0px rgba(255, 255, 255, 0.24);
         border: 1px solid var(--line);
}



.homepage-panel__title,
.homepage-panel__copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.homepage-panel__title {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 34px 10px 20px;
  color: #f8fbff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-panel__copy {
  align-self: end;
  max-width: 560px;
  padding: 0 34px 34px 20px;
  color: #cbd5e1;
  font-size: clamp(.98rem, 1.8vw, 1.2rem);
  line-height: 1.2;
  font-weight: 100;
  text-transform: none;
}

.homepage-panel__copy strong {
  display: block;
  margin-bottom: 18px;
  color: #ef4444;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
}

.auth-overlay .auth-panel {
  margin: 0;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .09), 0 24px 80px rgba(0, 0, 0, .72);
}

.dashboard-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, .95fr);
  gap: 16px;
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%),
    rgba(3, 10, 20, .9);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .06), 0 16px 34px rgba(0, 0, 0, .36);
}

.dashboard-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #f8fbff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-transform: uppercase;
}

.dashboard-heading span {
  color: var(--fire);
  font-weight: 1000;
}

.dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 5, 12, .48);
}

.dashboard-stat {
  min-height: 75px;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  padding: 16px 16px 0 16px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.dashboard-stat:hover {
  overflow: unset;
}

.dashboard-stat:last-child {
  border-right: 0;
}

.dashboard-stat span {
  align-self: end;
  color: #c24847;
  font-weight: 500;
  font-size: 0.8rem;
}

.dashboard-stat strong {
  color: #f8fbff;
  font-size: clamp(1rem, 2rem, 1.5rem);
  line-height: .95;
  font-weight: 200;
  padding-top: 5px;
}

/* .dashboard-stat strong:hover {
      overflow:unset;
    text-overflow:unset;
    z-index: 999;
    font-size: 30px;
} */


.dashboard-claim-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.3fr) minmax(220px, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.dashboard-claim-button {
  justify-content: space-between;
}

.dashboard-next-claim {
  align-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(0, 5, 12, .48);
  text-align: right;
}

.dashboard-next-claim span {
  color: #a7b3c0;
}

.dashboard-next-claim strong {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-left: 10px;

  font-weight: 300;
}

.dashboard-snapshot__body {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
}

.dashboard-donut {
  justify-self: center;
  width: min(155px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--donut);
  position: relative;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .12), 0 16px 30px rgba(0, 0, 0, .32);
}

.dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  background: #02050b;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .05);
}

.dashboard-donut strong,
.dashboard-donut span {
  position: relative;
  z-index: 1;
}

.dashboard-donut strong {
  color: #f8fbff;
  font-size: clamp(1.5rem, 1rem, 2rem);
  line-height: 1;
  /* margin-bottom: -100px; */
  margin-top: -13px;
}

.dashboard-donut span {
  margin-top: 20px;
  color: #a7b3c0;
  /* font-weight: 900; */
  text-transform: uppercase;
  font-size: 0.8rem;
  position: absolute;
}

.dashboard-breakdown {
  display: grid;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(0, 5, 12, .42);
}

.dashboard-breakdown__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  padding: 8px 14px;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: #a7b3c0;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 30px;
}

.dashboard-breakdown__item:last-child {
  border-bottom: 0;
}

.dashboard-breakdown__item:hover,
.dashboard-breakdown__item:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: #f8fbff;
}

.dashboard-breakdown__item span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: #d23433;
}

.dashboard-breakdown__item--holographic span::before {
  background: #00a7ff;
}

.dashboard-breakdown__item--gold span::before {
  background: #f6b73c;
}

.dashboard-breakdown__item--xtreme span::before {
  background: #7c3aed;
}

.dashboard-breakdown__item strong {
  color: #f8fbff;
}

.dashboard-tiles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.store-hub {
  display: grid;
  gap: 18px;
}

.store-hub__tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-latest {
  grid-column: 1 / -1;
}

.dashboard-latest__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 1.55fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-latest__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.dashboard-latest__grid>.panel {
  grid-column: 1 / -1;
  margin: 0;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mission-group {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mission-group__header {
  display: grid;
  gap: 4px;
      border-top: 1px solid var(--line);
    padding: 20px 0 10px;
}

.mission-group__header h2 {
  margin: 0;
  color: #f8fbff;
  text-transform: uppercase;
}

.mission-group__header p {
  margin: 0;
  color: var(--muted);
}

.mission-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.mission-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mission-card__header>span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(228, 45, 45, .5);
  border-radius: 6px;
  color: var(--danger);
  background: rgba(228, 45, 45, .1);
  box-shadow: 0 0 18px rgba(228, 45, 45, .16);
}

.mission-card__header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.mission-card__header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.mission-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.mission-progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), #ffb347);
  box-shadow: 0 0 16px rgba(228, 45, 45, .44);
  transition: width .28s var(--ease-app);
}

.mission-card.is-complete .mission-progress span {
  background: linear-gradient(90deg, var(--accent), #6ef7ff);
  box-shadow: 0 0 16px rgba(0, 167, 255, .48);
}

.mission-card.is-claimed {
  opacity: .72;
}

.mission-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.mission-card__meta strong {
  color: var(--text);
  text-align: right;
}

.mission-complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(12px);
  animation: overlay-fade-enter .22s var(--ease-app) both;
}

.mission-complete-modal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(460px, 100%);
  padding: 28px;
border: 1px solid var(--line);
  border-radius: 8px;
  color: #f8fbff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(0, 167, 255, .24), transparent 48%),
    linear-gradient(145deg, rgba(8, 17, 29, .98), rgba(1, 5, 12, .98));
  box-shadow: 0 0 44px rgba(0, 167, 255, .18), 0 22px 80px rgba(0, 0, 0, .55);
  animation: modal-focus-enter .3s var(--ease-app) both;
}

.mission-complete-modal__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 167, 255, .55);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(0, 167, 255, .12);
  box-shadow: 0 0 24px rgba(0, 167, 255, .26);
}

.mission-complete-modal__icon .material-symbols-rounded {
  font-size: 2rem;
}

.mission-complete-modal__eyebrow {
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;

}

.mission-complete-modal h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.mission-complete-modal p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
}

.mission-complete-modal>strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 1.2rem;
      margin: 15px 0;
}

.dashboard-collect-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 0 18px;
}

.dashboard-collect-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  text-transform: uppercase;
}

.dashboard-collect-panel h3 .material-symbols-rounded {
  color: var(--fire);
  font-size: 1.1em;
}

.dashboard-collect-panel p {
  margin: 0;
  color: #a7b3c0;
  line-height: 1.45;
}

.dashboard-collect-panel__actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
}

.dashboard-leaderboard {
  grid-column: 1 / -1;
}

.dashboard-leaderboard__list {
  display: grid;
  gap: 8px;
}

.dashboard-leaderboard__row {
  display: grid;
  grid-template-columns: 42px 44px minmax(160px, 1fr) repeat(3, minmax(72px, .32fr)) minmax(88px, .38fr) minmax(92px, .38fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(210, 52, 51, .14), transparent 30%),
    rgba(0, 5, 12, .5);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .035);
}

.dashboard-leaderboard__row:first-child {
  border-color: rgba(246, 183, 60, .42);
  background:
    linear-gradient(90deg, rgba(246, 183, 60, .2), transparent 34%),
    rgba(0, 5, 12, .58);
}

.dashboard-leaderboard__row.is-current-player {
  border-color: rgba(0, 167, 255, .58);
  box-shadow: inset 0 0 20px rgba(0, 167, 255, .1), 0 0 22px rgba(0, 167, 255, .12);
}

.dashboard-leaderboard__rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #f8fbff;
  font-weight: 900;
  background: rgba(255, 255, 255, .05);
}

.dashboard-leaderboard__avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background:
    url('/assets/images/profiles.webp') var(--avatar-x, 0%) var(--avatar-y, 0%) / 800% 500% no-repeat,
    rgba(4, 15, 29, .88);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, .32), 0 0 12px rgba(255, 255, 255, .2);
}

.dashboard-leaderboard__player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-leaderboard__player strong {
  color: #f8fbff;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-leaderboard__player em {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(0, 167, 255, .5);
  border-radius: 999px;
  color: #9fdfff;
  font-size: .7rem;
  font-style: normal;
  text-transform: uppercase;
}

.dashboard-leaderboard__record {
  display: grid;
  gap: 2px;
}

.dashboard-leaderboard__record strong,
.dashboard-leaderboard__xp {
  color: #f8fbff;
  font-weight: 900;
}

.dashboard-leaderboard__record small,
.dashboard-leaderboard__meta {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.dashboard-leaderboard__xp,
.dashboard-leaderboard__meta {
  justify-self: end;
}

.dashboard-tile {
  position: relative;
  min-height: 310px;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .18);
  background: #050914;
  text-align: left;
}

.dashboard-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
     box-shadow: inset 6px 8px 80px 0px rgba(255, 255, 255, 0.24);
         border: 1px solid var(--line);
         z-index: 1;
}

.dashboard-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.dashboard-tile__title,
.dashboard-tile__cta {
  position: relative;
  z-index: 1;
}

.dashboard-tile__title {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #f8fbff;
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  font-weight: 700;
  text-shadow: 0 0 8px #000;
}


.dashboard-tile__cta {
  display: block;
  padding: 18px;
  color: #eee;
  background: rgba(0, 5, 12, .5);
  font-weight: 800;
  min-width: 100%;
  position: absolute;
  bottom: 0;
  font-size: 0.8rem;
}

.dashboard-tile__cta .material-symbols-rounded {
  top: 3px;
  display: inline-block;
  position: relative;
}


.dashboard-utility-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pack-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(3, 10, 20, .96) 0 48%, rgba(3, 10, 20, .72) 62%, rgba(3, 10, 20, .1)), url(/assets/images/thumbnail-packs.webp) right center / auto 100% no-repeat, rgb(0 0 0 / 88%);
}

.pack-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  width: min(100%, 58%);
  min-height: 100%;
}

.pack-card p {
  min-height: 44px;
  color: var(--muted);
}

.pack-card__balance {
  margin-bottom: 12px;
}

.pack-card__buy-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr)) minmax(150px, auto);
  gap: 12px;
  align-items: stretch;
}

.pack-card__buy-row button {
  min-height: 100%;
  height: 60px;
}

.pack-reveal {
  display: grid;
  gap: 14px;
}

.pack-reveal.is-waiting-for-opening-overlay {
  visibility: hidden;
}

.pack-reveal__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.pack-reveal__header h2,
.pack-reveal__header p {
  margin: 0;
}

.pack-reveal__header h2 {
  color: #f8fbff;
  text-transform: uppercase;
}

.muted-copy {
  color: var(--muted);
}

.collection-screen {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: 14px;
}

.collection-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 0 10px;

}

.collection-header.battle-picker-header {
  padding: 0 0 18px;
}

.collection-header h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
}



.collection-header span#collectionCount {
  font-size: 100;
}

.search-field input {
  min-height: 46px;
  padding-right: 42px;
}

.collection-header-actions .search-field {
  width: min(36vw, 320px);
}

.collection-header-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.collection-select-toggle,
.collection-filter-toggle {
  width: 46px;
  min-width: 46px;
  padding-inline: 0;
}

.collection-filter-toggle {
  display: none;
}

.collection-select-toggle .button-label {
  display: none;
}

.collection-filter-toggle.is-active {
    border-color: rgba(255, 59, 31, .72);
    color: #fff;
    background: rgba(210, 52, 51, .22);
}

.collection-sort-controls {
  display: inline-flex;
  gap: 0;
  align-items: center;
}

.collection-sort-controls button {
  min-height: 44px;
  padding: 0 14px;
}

.collection-sort-controls button.is-active {
  border: 1px solid #666;
  background: #222;
}

.collection-sort-controls button.is-active:hover {
  color: #fff;
}

.collection-sort-controls button:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 1px;

}

.collection-sort-controls button:last-child {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.collection-sort-controls .material-symbols-rounded {
  font-size: 1.2rem;
}

.collection-select-toggle.is-active {
  border-color: rgba(255, 59, 31, .72);
  color: #fff;
  background: rgba(210, 52, 51, .22);
}

.collection-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-rail {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 0 16px 0 0;
    /* border: 1px solid rgba(14, 165, 233, .26); /
    / border-radius: 6px; */
    background: rgb(0 0 0 / 84%);
}

.filter-rail h2 {
  margin: 0;
  color: #d23433;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
}

.filter-accordion {
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 6px;
    background: rgba(0, 5, 12, .34);
    overflow: hidden;
    background: rgba(2, 8, 17, .84);
}

.filter-accordion summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  list-style: none;
}

.filter-accordion summary::-webkit-details-marker {
  display: none;
}

.filter-accordion summary::before {
  content: "+";
  color: #d23433;
  font-weight: 1000;
}

.filter-accordion[open] summary::before {
  content: "-";
}

.filter-accordion summary span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-accordion summary small {
  color: #888;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-accordion__body {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}

.filter-rail button {
  justify-content: start;
  text-align: left;

}

.filter-rail button:hover {
  color: #000;
}

.filter-rail button:hover .material-symbols-rounded {
  color: #000;
}

.filter-rail .material-symbols-rounded {
  width: 1.35em;
  color: #ddd;
}

.filter-rail button.is-active {
  border-color: #000;
  background-color: transparent;
  border: 1px solid #d23433;
}

.collection-main {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

.collection-load-more {
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding-top: 20px;
}

.collection-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 520px);
  margin: 40px auto;
  padding: 34px 22px;
  text-align: center;
}

.collection-loading .material-symbols-rounded {
  color: #d23433;
  font-size: 2.25rem;
  animation: collection-loading-spin 1.1s linear infinite;
}

.collection-loading h1 {
  margin: 0;
}

.collection-loading p {
  margin: 0;
  color: #a7b3c0;
}

.loading-card-strip,
.loading-element-strip {
  display: grid;
  gap: 10px;
  width: min(100%, 430px);
  margin-top: 12px;
}

.loading-card-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.loading-card,
.loading-element {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 0 20px rgba(14, 165, 233, .08);
}

.loading-card {
  min-height: 76px;
  border-radius: 6px;
}

.loading-element-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loading-element {
  min-height: 42px;
  border-radius: 999px;
}

.loading-element--fire {
  box-shadow: inset 0 0 20px rgba(210, 52, 51, .18);
}

.loading-element--water {
  box-shadow: inset 0 0 20px rgba(0, 167, 255, .18);
}

.loading-element--steel {
  box-shadow: inset 0 0 20px rgba(168, 176, 184, .14);
}

.loading-card::after,
.loading-element::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, .16) 42%, transparent 72%);
  transform: translateX(-110%);
  animation: loading-sheen 1.25s ease-in-out infinite;
}

@keyframes collection-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.battle-tabs {
  margin-bottom: 12px;
}

.battle-setup-panel {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(420px, 1.65fr);
  align-items: stretch;
  gap: 24px;
}

.battle-setup-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.battle-setup-copy h1,
.battle-setup-copy p {
  margin: 0;
}

.battle-setup-actions {
  min-width: 0;
}

.simple-battle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.element-battle-button {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 8px;
  /* aspect-ratio: 16 / 5; */
  padding: 18px;
  border-radius: 8px;
  background-color: transparent;
  background-image:
    linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .72) 100%),
    url('/assets/images/battle-types.webp');
  background-size: 100% 300%;
  background-repeat: no-repeat;
  overflow: hidden;
}



.element-battle-button span {
  color: white;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1;
  text-shadow: 0 0 14px #000;
}

.element-battle-button small {
  color: #ccc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-shadow: 0 0 8px #000;
}

.element-battle-button.element-Fire small {
  color: #ffc7a9;
}

.element-battle-button.element-Water small {
  color: #77c0ed;
}

.element-battle-button.element-Steel small {
  color: #ccc;
}

.element-battle-button.element-Fire {
  border-color: rgba(224, 50, 24, 0.68);
  background-position: center top;
  box-shadow: inset 0 0 24px rgba(255, 59, 31, .13), 0 0 20px rgba(255, 59, 31, .1);
}

.element-battle-button.element-Water {
  border-color: rgba(0, 167, 255, .7);
  background-position: center center;
  box-shadow: inset 0 0 24px rgba(0, 167, 255, .16), 0 0 20px rgba(0, 167, 255, .12);
}

.element-battle-button.element-Steel {
  border-color: rgba(168, 176, 184, .62);
  background-position: center bottom;
  box-shadow: inset 0 0 24px rgba(168, 176, 184, .1), 0 0 20px rgba(168, 176, 184, .08);
}

.element-battle-button:hover {
  background-color: #000;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 200%),
    url('/assets/images/battle-types.webp');
  border-color: #fff;
}

.element-battle-button:hover small {
  color: #fff !important;
}

.element-battle-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.battle-advanced-prompt {
  display: flex;
  justify-content: center;
}

.xb-arena,
.battle-result {
  position: relative;
  overflow: hidden;
  /* border: 1px solid #0ea5e9;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .16), transparent 36%),
    linear-gradient(225deg, rgba(220, 38, 38, .14), transparent 34%),
    #050914;
  color: #e5f4ff;
  box-shadow: inset 0 0 34px rgba(14, 165, 233, .16), 0 16px 40px rgba(2, 6, 23, .2); */

  box-shadow: inset 0 0 34px rgb(0, 0, 0);
}

.xb-arena {
  display: grid;
  gap: 16px;
  padding: 28px 28px 0 28px;
}

/* .battle-support-panel {
  margin-top: 16px;
} */

.battle-card-feature {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: clamp(18px, 6vw, 72px);
    align-items: center;
    min-height: clamp(260px, 34vw, 340px);
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
    background: radial-gradient(circle at 74% 46%, rgba(0, 167, 255, .12), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%), rgba(3, 10, 20, .92);
}

.battle-card-feature h2 {
margin: 0;
    color: #f8fbff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: .92;
    text-transform: uppercase;
    text-wrap: balance;
    padding: 0 0 0 20%;
}

.battle-card-feature__arrow {
    display: inline-block;
    margin-left: .15em;
    color: var(--fire);
    font-size: 1em;
    vertical-align: .02em;
    position: absolute;
    margin-top: -3px;
}

.battle-card-feature__card {
  justify-self: left;
  width: min(100%, 430px);
}

.battle-card-feature__card .beast-card {
  width: min(100%, 300px);
  margin-inline: auto;
}

.xb-versus-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.xb-combatant {
  display: grid;
  min-height: 74px;
  align-content: center;
  border: 1px solid rgba(14, 165, 233, .45);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 6, 23, .72);
}

.xb-combatant-opponent {
  border-color: rgba(248, 113, 113, .55);
  text-align: right;
}

.xb-combatant strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
  text-transform: uppercase;
}

.xb-combatant span,
.xb-countdown span {
  color: #f8fbff;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.xb-vs-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 255, 255, .4);
}

.battle-result .xb-vs-mark {
  opacity: 0;
}


.xb-element-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.xb-element {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .72);
  font-weight: 900;
  text-transform: uppercase;
}

.xb-element.is-selected {
  border-color: #38bdf8;
  color: white;
  box-shadow: 0 0 18px rgba(14, 165, 233, .42);
}

.element-Fire.is-selected {
  border-color: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, .42);
}

.element-Steel.is-selected {
  border-color: #94a3b8;
  box-shadow: 0 0 18px rgba(148, 163, 184, .32);
}

.xb-battle-stage {
  --arena-card-size: clamp(132px, 28vw, 360px);
  --arena-mid-size: clamp(58px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, var(--arena-card-size)) var(--arena-mid-size) minmax(0, var(--arena-card-size));
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 7vw, 104px);
  box-shadow: inset 0 0 230px 140px #000;
  background: #333;
  padding: clamp(18px, 4vw, 42px) 0;
  margin-top: -50px;
  padding-bottom: 20px;

}

.xb-arena-card {
  --arena-card-rest-y: 180deg;
  max-width: none;
  width: min(100%, var(--arena-card-size, 360px));
  justify-self: center;
  perspective: 1000px;
  overflow: visible;
  /* border: 1px solid rgba(56, 189, 248, .55); */
  border-radius: 8px;
  background: transparent;

}

.xb-arena-card[data-card-detail] {
  cursor: zoom-in;
}

.xb-arena-card[data-card-detail]:focus-visible {
  outline: 2px solid rgba(56, 189, 248, .95);
  outline-offset: 8px;
}

.xb-arena-card-opponent {
  --arena-card-rest-y: 160deg;
  border-color: rgba(248, 113, 113, .6);
}

.xb-arena-card-player {
  --arena-card-rest-y: 200deg;
}

.xb-arena-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2, .72, .18, 1);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.7);
  border-radius: 18px;
}

.xb-arena-card-opponent .xb-arena-card__inner {
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.7);
}



.xb-arena-card.is-flipped .xb-arena-card__inner {
  transform: rotateY(var(--arena-card-rest-y));
}

.xb-arena-card.is-static,
.xb-arena-card.is-static .xb-arena-card__inner,
.xb-arena-card.is-static .xb-arena-card__front,
.xb-arena-card.is-static .xb-arena-card__front::after {
  animation: none !important;
  transition: none !important;
}

.xb-battle-stage.reveal-player .xb-arena-card-player.is-flipped .xb-arena-card__inner,
.xb-battle-stage.reveal-both .xb-arena-card-opponent.is-flipped .xb-arena-card__inner {
  animation: arena-card-flip .82s cubic-bezier(.16, .86, .28, 1) both;
}

.xb-arena-card__face {
  position: absolute;
  inset: 0;
  /* overflow: hidden; */
  /* border: 1px solid rgba(56, 189, 248, .55); */
  border-radius: 8px;
  background: rgba(2, 6, 23, .9);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
}

/* .xb-arena-card-opponent .xb-arena-card__face {
  border-color: rgba(248, 113, 113, .6);
} */

.xb-arena-card__front {
  overflow: hidden;
  transform: rotateY(180deg);
}

.xb-arena-card.foil-Holographic::after,
.xb-arena-card.foil-Gold::after,
.xb-arena-card.foil-Xtreme::after {
  content: none;
}

.xb-arena-card.foil-Holographic .xb-arena-card__front::after,
.xb-arena-card.foil-Gold .xb-arena-card__front::after,
.xb-arena-card.foil-Xtreme .xb-arena-card__front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: screen;
}

.xb-arena-card.foil-Holographic .xb-arena-card__front::after {
  background: linear-gradient(115deg, transparent 20%, rgba(34, 211, 238, .6), rgba(244, 114, 182, .55), transparent 78%);
}

.xb-arena-card.foil-Gold .xb-arena-card__front::after {
  background: linear-gradient(115deg, transparent 22%, rgba(251, 191, 36, .75), transparent 72%);
}

.xb-arena-card.foil-Xtreme .xb-arena-card__front::after {
  background: linear-gradient(115deg, transparent 18%, rgba(45, 212, 191, .65), rgba(251, 191, 36, .55), transparent 82%);
}

.xb-arena-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

@keyframes arena-card-flip {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(var(--arena-card-rest-y));
  }
}

.card-rarity {
  bottom: 20px;
  padding: 12px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: .48rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.xb-countdown {
  display: grid;
  place-items: center;
  gap: 8px;
  width: var(--arena-mid-size, 110px);
  min-width: 0;
}

.xb-countdown strong {
  display: grid;
  place-items: center;
  width: min(96px, var(--arena-mid-size, 110px));
  height: min(96px, var(--arena-mid-size, 110px));
  border: 2px solid #d23433;
  border-radius: 999px;
  color: white;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  text-shadow: 0 0 18px rgba(0, 0, 0, .4);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .2), 0 0 24px rgba(0, 0, 0, .2);
}

.battle-result {
  border-width: 2px;
  padding: 20px;
  text-align: center;
  border: none;
}



.battle-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #02050b;
  opacity: 0;
  pointer-events: auto;
  animation: battleCaptureFadeIn .45s ease forwards;
}

.battle-final__summary.is-capture-pending,
.battle-final__actions.is-capture-pending {
  display: none;
}

.battle-capture-overlay iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #02050b;
}

.battle-capture-overlay.is-exiting {
  pointer-events: none;
  animation: battleCaptureFadeOut .45s ease forwards;
}

.pack-opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #02050b;
  opacity: 0;
  pointer-events: auto;
  animation: battleCaptureFadeIn .45s ease forwards;
}

.pack-opening-overlay iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #02050b;
}

.pack-opening-overlay.is-exiting {
  pointer-events: none;
  animation: battleCaptureFadeOut .45s ease forwards;
}

@keyframes battleCaptureFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes battleCaptureFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.battle-result h1 {
  font-size: clamp(2.2rem, 8vw, 5rem);
  letter-spacing: 0;
  margin: 0 0 12px;
  text-shadow: 0 0 18px rgba(255, 255, 255, .62);
}

.battle-final {
  display: grid;
  gap: 18px;
}

.battle-final__cards {
  --arena-card-size: clamp(132px, 28vw, 360px);
  --arena-mid-size: clamp(58px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, var(--arena-card-size)) var(--arena-mid-size) minmax(0, var(--arena-card-size));
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 7vw, 104px);
}

.battle-final__cards .xb-arena-card,
.battle-final__cards .xb-arena-card__inner {
  animation: none !important;
  transition: none !important;
}

.battle-final__cards .xb-arena-card.is-muted {
  opacity: .38;
  filter: grayscale(.45) brightness(.68) saturate(.72);
}

.battle-final__cards .xb-arena-card.is-focus {
  position: relative;
  isolation: isolate;
  filter: brightness(1.08) saturate(1.08);
}

.battle-final__cards .xb-arena-card.is-focus::before,
.battle-final__cards .xb-arena-card.is-focus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 122%;
  aspect-ratio: 1;
  border: 1px solid var(--battle-focus-ring, rgba(255, 255, 255, .28));
  border-radius: 999px;
  opacity: .62;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.battle-final__cards .xb-arena-card.is-focus::before {
  box-shadow:
    0 0 0 18px var(--battle-focus-ring-soft, rgba(255, 255, 255, .01)),
    0 0 0 46px var(--battle-focus-ring-faint, rgba(255, 255, 255, .01)),
    0 0 54px var(--battle-focus-ring-soft, rgba(255, 255, 255, .01));
}

.battle-final__cards .xb-arena-card.is-focus::after {
  width: 176%;
  opacity: .28;
  box-shadow:
    0 0 0 28px var(--battle-focus-ring-faint, rgba(255, 255, 255, .04)),
    0 0 0 72px var(--battle-focus-ring-whisper, rgba(255, 255, 255, .025));
}

.battle-final__cards .xb-arena-card.is-focus .xb-arena-card__inner {
  position: relative;
  z-index: 1;
}

.battle-final__cards .xb-arena-card.is-focus .xb-arena-card__inner {
  box-shadow:
    var(--battle-focus-shadow, 0 0 28px rgba(255, 255, 255, .22)),
    20px 20px 40px rgba(0, 0, 0, .7);
}

.battle-final__cards .xb-arena-card-opponent.is-focus .xb-arena-card__inner {
  box-shadow:
    var(--battle-focus-shadow, 0 0 28px rgba(255, 255, 255, .22)),
    -20px 20px 40px rgba(0, 0, 0, .7);
}

.battle-final__cards .xb-arena-card.is-win {
  --battle-focus-shadow: 0 0 34px rgba(34, 211, 238, .32);
  --battle-focus-ring: rgba(34, 211, 238, .34);
  --battle-focus-ring-soft: rgba(34, 211, 238, .09);
  --battle-focus-ring-faint: rgba(34, 211, 238, .05);
  --battle-focus-ring-whisper: rgba(34, 211, 238, .025);
}

.battle-final__cards .xb-arena-card.is-loss {
  --battle-focus-shadow: 0 0 34px rgba(248, 113, 113, .32);
  --battle-focus-ring: rgba(248, 113, 113, .34);
  --battle-focus-ring-soft: rgba(248, 113, 113, .09);
  --battle-focus-ring-faint: rgba(248, 113, 113, .05);
  --battle-focus-ring-whisper: rgba(248, 113, 113, .025);
}

.battle-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 0, 0, .48);
  pointer-events: none;
}

.xb-arena-card.is-win .battle-card-badge {
  border-color: rgba(34, 211, 238, .62);
  color: #bff4ff;
  box-shadow: 0 0 20px rgba(34, 211, 238, .22);
}

.xb-arena-card.is-loss .battle-card-badge {
  border-color: rgba(248, 113, 113, .62);
  color: #ffd4d4;
  box-shadow: 0 0 20px rgba(248, 113, 113, .22);
}

.app-shell.is-screen-entering .battle-final,
.app-shell.is-screen-entering .battle-final__cards,
.app-shell.is-screen-entering .battle-final__cards .xb-arena-card,
.app-shell.is-screen-entering .battle-final__cards .xb-arena-card__inner {
  animation: none !important;
  transition: none !important;
}

.battle-final__summary {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 0;
  position: absolute;
  left: calc(50% - 200px);
  top: 18%;
  width: 400px;
  pointer-events: none;
}



.battle-final__summary p {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 900;
  text-transform: uppercase;
}

.battle-help-inline {
  display: inline-grid;
  place-items: center;
  width: 1em;
  min-width: 1em;
  height: 1em;
  min-height: 0;
  margin-left: 0;
  padding: 0;
  vertical-align: .08em;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 0;
  pointer-events: all !Important;
}

.battle-help-inline .material-symbols-rounded {
  font-size: .95em;
}

.battle-final__summary>strong {
  color: #fff;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.result-win .battle-final__summary>strong,
.result-win .battle-final__summary h1,
.result-win .battle-final__summary p {
  text-shadow: 4px 14px 40px rgb(29, 29, 29);
  color: #fff;
}

.result-win .battle-final__summary h1 {
  color: #3edaff;
}

/*
.result-win .xb-arena-card .xb-arena-card__inner {
    box-shadow: 20px 20px 40px rgb(87 61 1 / 100%);
}

.result-win .xb-arena-card-opponent .xb-arena-card__inner {
   box-shadow: -20px 20px 40px rgb(87 61 1 / 100%);
}

.result-win .battle-final__summary {
    border-top: 1px solid rgba(150, 107, 13, 0.2);
} */


.battle-final__summary>span {
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-win {

  background-color: #2ce8de;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(158, 112, 11, 1) 10%, rgb(131 230 0) 25%, rgb(47 218 235) 50%, rgb(0 74 230) 75%, rgba(158, 112, 11, 1) 90%, rgba(0, 0, 0, 1) 100%);
}

.result-draw {
  background-color: #7f7f7f;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgb(4 3 2) 10%, rgb(148 130 131) 25%, rgb(93 92 92) 50%, rgb(137 137 167) 75%, rgb(5 3 0) 90%, rgba(0, 0, 0, 1) 100%);
}

.battle-result {
  box-shadow: inset 0 0 250px 190px #000;
}

@media (max-width: 1400px) {
  .battle-result {
    box-shadow: inset 0 0 250px 180px #000;
  }
}

@media (max-width: 1200px) {
  .battle-result {
    box-shadow: inset 0 0 220px 130px #000;
  }
}

@media (max-width: 1000px) {
  .battle-result {
    box-shadow: inset 0 0 150px 110px #000;
  }
}

@media (max-width: 800px) {
  .battle-result {
    box-shadow: inset 0 0 150px 50px #000;
  }
}

@media (max-width: 600px) {
  .battle-result {
    box-shadow: inset 0 0 120px 25px #000;
  }
}

.result-loss {
  background-color: #cf0404;
}

.result-loss h1 {
  text-shadow: 0 0 18px #000;
  color: #ff5656;
}

.result-draw {
  border-color: #94a3b8;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-insight-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)),
    rgba(1, 6, 14, .72);
  box-shadow: inset 0 0 28px rgba(0, 167, 255, .05);
}

.admin-insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 48, 42, .58);
}

.admin-insight-card--accent::before {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 167, 255, .6);
}

.admin-insight-card h2,
.admin-dashboard-panel h2 {
  margin: 0 0 14px;
}

.admin-insight-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-mini-stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(0, 0, 0, .26);
}

.admin-mini-stat span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.admin-mini-stat strong {
  display: block;
  margin-top: 4px;
  color: #f8fbff;
  font-size: 1.35rem;
  line-height: 1;
}

.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.admin-dashboard-panel {
  min-width: 0;
}

.admin-dashboard-panel--wide {
  grid-column: span 2;
}

.admin-split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-data-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-data-list div,
.admin-breakdown__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-data-list dt {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.admin-data-list dd,
.admin-breakdown__row strong {
  margin: 0;
  color: #f8fbff;
  font-weight: 800;
}

.admin-breakdown h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.admin-breakdown__row span {
  color: #dce8f7;
}

.admin-breakdown__row i {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) var(--admin-bar, 0%), rgba(255, 255, 255, .1) var(--admin-bar, 0%));
}

.admin-table-wrap table {
  min-width: 520px;
}

.stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(1, 6, 14, .64);
}

.battle-support-panel .stat {
  text-align: center;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.stat strong {
  font-size: 1.1rem;
  color: #f8fbff;
  font-weight: 500;
}

.card-overlay-ep-stat.is-ep-updated {
  animation: epStatPulse 2.2s ease both;
}

.card-overlay-ep-stat.is-ep-updated strong {
  animation: epValuePulse 2.2s ease both;
}

@keyframes epStatPulse {

  0%,
  100% {
    border: 1px solid var(--line);
    box-shadow: 0 0 34px rgba(0, 167, 255, 0), inset 0 0 24px rgba(0, 167, 255, 0);
    background: rgba(1, 6, 14, .64);
    text-shadow: 0px 0px 0px rgb(75 199 252);
  }

  18%,
  68% {
    border-color: rgb(155 218 251 / 90%);
    box-shadow: 0 0 34px rgba(0, 167, 255, .72), inset 0 0 24px rgba(0, 167, 255, .28);
    background: rgba(0, 167, 255, .22);
    text-shadow: 0px 0px 5px rgb(75 199 252);
  }
}

@keyframes epValuePulse {

  0%,
  100% {
    color: #f8fbff;
    text-shadow: none;
  }

  18%,
  68% {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(0, 167, 255, .9);
  }
}

.form-row {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}

.admin-form {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-form h3 {
  margin: 0;
}

.admin-mission-list {
  display: grid;
  gap: 16px;
}

.admin-mission-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-mission-group-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(1, 6, 14, .44);
}

.admin-mission-group-section h3 {
  margin: 0;
  color: #f8fbff;
  text-transform: uppercase;
}

.admin-mission-group-section p {
  margin: -4px 0 2px;
  color: var(--muted);
}

.admin-mission-accordion {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(1, 6, 14, .7);
}

.admin-mission-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-mission-accordion summary::-webkit-details-marker {
  display: none;
}

.admin-mission-accordion summary>span:first-child {
  display: grid;
  gap: 3px;
}

.admin-mission-accordion summary strong {
  color: #f8fbff;
  text-transform: uppercase;
}

.admin-mission-accordion summary small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.admin-mission-accordion__status {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-mission-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.admin-mission-accordion .admin-mission-form {
  margin: 0 14px 14px;
}

.admin-mission-form textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-mission-form {
  background: rgba(1, 6, 14, .64);
}

.admin-card-editor-list {
  display: grid;
  gap: 16px;
}

.admin-card-editor {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(1, 6, 14, .64);
}

.admin-card-editor img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #050914;
}

.admin-card-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-editor__header h2 {
  margin: 0;
}

.admin-library-card.is-inactive {
  opacity: .54;
}

.admin-card-status-badge {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  color: #f8fbff;
  background: rgba(0, 0, 0, .76);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-danger-zone {
  border-color: rgba(248, 113, 113, .42);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, .22), transparent 42%),
    var(--panel);
}

.admin-danger-zone p {
  margin: 0;
  color: #fca5a5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* margin-bottom: 18px; */
  /* justify-content: center; */
  z-index: 1;
  margin-bottom: 15px;
}
.battle-result .actions button {
      border-radius: 26px;
    padding: 16px 22px;
}


.avatar-picker .actions, .battle-result .actions {
  justify-content: center;
}

.battle-result .actions {
  transform-origin: center bottom;
}




.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tabs button {
  white-space: nowrap;
}

.notification-stack {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: 100%;
  pointer-events: none;
  margin: 0;
  text-align: center;
}

.message {
  pointer-events: auto;
  padding: 18px 12px;
  background: #d23433;
  color: #fff;
  backdrop-filter: blur(12px);
  transform: translateY(0);
  opacity: 1;
  transition: opacity .24s ease, transform .24s ease;
  font-size: 2rem;
}

.message.is-exiting {
  opacity: 0;
  transform: translateY(-18px);
}

.message.error {
  background: #f0caca;
  color: #b50909;
}

.avatar-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, .6);
}

.avatar-picker {
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
  padding: 18px;
}

.avatar-picker h2 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.avatar-picker__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.avatar-picker__nav {
  width: 48px;
  padding: 0;
}

.avatar-preview {
  justify-self: center;
  width: min(220px, 48vw);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 999px;
  background:
    url('/assets/images/profiles.webp') var(--avatar-x, 0%) var(--avatar-y, 0%) / 800% 500% no-repeat,
    rgba(4, 15, 29, .88);
  box-shadow: inset 0 0 28px rgba(14, 165, 233, .28), 0 0 28px rgba(14, 165, 233, .22);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
  align-content: start;
}

.filters {
  margin-top: 14px;
}

.beast-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .15), transparent 24%),
    rgba(2, 6, 23, .94);
  box-shadow: inset 0 0 16px rgba(14, 165, 233, .13), 0 12px 24px rgba(0, 0, 0, .28);
  /* override */
  border: 1px solid #555 !important;
  user-select: none;
}

.beast-card:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.beast-card.is-selectable::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .04);
}

.beast-card.is-selected {
  border-color: rgba(255, 59, 31, .9) !important;
  box-shadow:
    inset 0 0 18px rgba(210, 52, 51, .28),
    0 0 0 2px rgba(210, 52, 51, .35),
    0 18px 32px rgba(0, 0, 0, .36);
}

.collection-select-check {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  box-shadow: 0 0 18px rgba(0, 0, 0, .45);
}

.beast-card.is-selected .collection-select-check {
  border-color: rgba(255, 59, 31, .95);
  background: rgba(210, 52, 51, .86);
  box-shadow: 0 0 22px rgba(210, 52, 51, .45);
}

.collection-select-check .material-symbols-rounded {
  font-size: 1.25rem;
}

.beast-card__art {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #050914;
  box-shadow: none;
}

.beast-card__price {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(248, 251, 255, .24);
    border-radius: 4px;
    color: #f8fbff;
    background: rgba(0, 0, 0, .6);
    box-shadow: 0 0 18px rgba(0, 167, 255, .22);
    font-size: .75rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.beast-card__price .material-symbols-rounded {
  color: #fff;
  font-size: 1rem;
}

.marketplace-card.is-own-listing .beast-card__price {
    border-color: rgb(255 255 255 / 45%);
    box-shadow: 0 0 20px rgb(255 255 255 / 28%);
}

.beast-card__price--transfer {
    border-color: rgba(92, 225, 230, .58);
    color: #e9fcff;
    background: rgba(0, 20, 28, .76);
    box-shadow: 0 0 22px rgba(92, 225, 230, .28);
}

.is-transfer-pending .beast-card__art img {
  filter: saturate(.7) brightness(.78);
}

.marketplace-seller {
  color: #8ea7b8;
  display: none;
}

.beast-card__art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.5);
  background: #050914;
  margin: 0 0 0 20px;
}

.beast-card__body {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-top: 1px solid rgba(56, 189, 248, .2);
      text-align: left;
}

.beast-card__body strong {
  color: #f8fbff;
  text-transform: uppercase;
}

.beast-card__body span {
  color: #aaa;
  font-size: .8rem;
}

.card-details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.beast-card__body span.card-xp {
  color: #dff5ff;
  font-weight: 900;
  white-space: nowrap;
  font-size: 1.5rem;
  position: absolute;
  right: 10px;
  margin-top: -21px;
}

.beast-card.element-Fire .beast-card__body span.card-xp {
  color: rgba(255, 59, 31, .8);
}

.beast-card.element-Water .beast-card__body span.card-xp {
  color: rgba(0, 167, 255, .8);
}

.beast-card.element-Steel .beast-card__body span.card-xp {
  color: rgba(168, 176, 184, .8);
}




.beast-card__body span.card-xp i {
  font-size: 0.6rem;
  color: #ccc;
  padding-left: 3px;
  font-weight: 300;
  width: 100%;
  display: block;
  text-align: right;
  margin-top: -5px;
}

.collection-batch-bar {
  position: sticky;
  z-index: 12;
  bottom: 92px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 10px 10px 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(210, 52, 51, .24), transparent 48%),
    rgba(3, 10, 20, .94);
  box-shadow: 0 8px 45px rgba(0, 0, 0, .75), inset 0 0 18px rgba(255, 255, 255, .06);
  backdrop-filter: blur(90px);
}

.collection-batch-bar strong,
.collection-batch-bar span {

  text-transform: uppercase;
  font-weight: 900;
}

.collection-batch-bar span {

  font-size: .9rem;
}

.battle-card .battle-card__fight {
  width: 100%;
  margin-top: 5px;
  /* border-color: rgba(255, 255, 255, .18); */
  background: linear-gradient(0deg, rgb(90 90 90), rgb(138 138 138 / 74%));
  color: #f8fbff;
  /* font-size: clamp(1.05rem, 2vw, 1.45rem); */
  letter-spacing: .04em;
  font-weight: 700;
  text-shadow: -1 -1px 0 rgba(0, 0, 0, .8), 0 0 12px rgba(255, 255, 255, .02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -16px 28px rgba(0, 0, 0, .22);
}

.battle-card.element-Fire .battle-card__fight {
  /* border-color: rgba(255, 59, 31, .72); */
  background: linear-gradient(0deg, rgb(146 35 13), rgb(255 64 47 / 74%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -16px 28px rgba(0, 0, 0, .25), 0 0 16px rgba(255, 59, 31, .16);
}

.battle-card.element-Water .battle-card__fight {
  /* border-color: rgba(0, 167, 255, .72); */
  background: linear-gradient(0deg, rgba(70, 178, 255, .24), rgb(45 124 187 / 78%));background: linear-gradient(0deg, rgb(19 85 133), rgb(45 124 187 / 78%));
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -16px 28px rgba(0, 0, 0, .25), 0 0 16px rgba(0, 167, 255, .16);
}

.battle-card.element-Steel .battle-card__fight {
  /* border-color: rgba(206, 214, 222, .62); */
}

.battle-card .battle-card__fight:hover {
  background: #fff;
  box-shadow: none;
  text-shadow: none;
  color: #000;
}

.card-count-badge {
  position: absolute;
  top: -1px;
  right: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-bottom-left-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1), 0 0 18px rgba(255, 255, 255, .1);
}

.card-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  padding: clamp(14px, 3vw, 36px);
  background:
    radial-gradient(circle at 50% 35%, rgba(14, 165, 233, .12), transparent 34%),
    rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px);
  overflow: auto;
}

.card-overlay__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(280px, 460px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  width: min(100%, 980px);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: clamp(16px, 3vw, 34px);
  user-select: none;
}

.card-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.card-overlay__close .material-symbols-rounded {
  font-size: 1.5rem;
}

.card-overlay__image {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  overflow: hidden;
  /* border: 1px solid rgba(148, 163, 184, .28); */
  border-radius: 6px;
  background: #050914;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.card-overlay__image::before,
.card-overlay__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.card-overlay__image::before {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .62), transparent 11%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .34) 42%, rgba(255, 255, 255, .06) 48%, transparent 62%);
  background-position: var(--shine-x) var(--shine-y), center;
  mix-blend-mode: screen;
  filter: brightness(1.3) contrast(1.15);
}

.card-overlay__image::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, .62) 0 1px, transparent 2px),
    linear-gradient(125deg, rgba(255, 0, 132, .34), rgba(252, 164, 0, .22) 24%, rgba(255, 255, 0, .18) 36%, rgba(0, 255, 138, .22) 55%, rgba(0, 207, 255, .34) 72%, rgba(204, 76, 250, .32));
  background-size: 120px 120px, 180px 180px, 220% 220%;
  background-position: var(--mx) var(--my), var(--shine-x) var(--shine-y), var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  filter: saturate(1.55) brightness(.95) contrast(1.2);
}

.card-overlay__image.foil-Gold::after {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .75) 0 1px, transparent 2px),
    linear-gradient(118deg, rgba(255, 255, 255, .12), rgba(251, 191, 36, .42) 24%, rgba(245, 158, 11, .2) 48%, rgba(255, 255, 255, .3) 56%, rgba(180, 83, 9, .28) 78%);
  background-size: 140px 140px, 220% 220%;
  background-position: var(--shine-x) var(--shine-y), var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  filter: saturate(1.25) brightness(1.08) contrast(1.28);
}

.card-overlay__image.foil-Xtreme::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .95) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 44%, rgba(255, 255, 255, .7) 0 1px, transparent 2px),
    conic-gradient(from 90deg at var(--mx) var(--my), rgba(34, 211, 238, .42), rgba(244, 114, 182, .34), rgba(251, 191, 36, .32), rgba(45, 212, 191, .38), rgba(34, 211, 238, .42));
  background-size: 110px 110px, 170px 170px, 180% 180%;
  background-position: var(--mx) var(--my), var(--shine-x) var(--shine-y), center;
  mix-blend-mode: color-dodge;
  filter: saturate(1.8) brightness(1.05) contrast(1.2);
}

.card-overlay__image.is-active {
  box-shadow: 0 24px 44px rgba(0, 0, 0, .55), 0 0 28px rgba(56, 189, 248, .2);
}

.card-overlay__image.is-active::before {
  opacity: 0;
}

.card-overlay__image.is-active::after {
  opacity: 0;
}

.card-overlay__image.foil-Holographic.is-active::before {
  opacity: .64;
}

.card-overlay__image.foil-Holographic.is-active::after {
  opacity: .52;
}

.card-overlay__image.foil-Gold.is-active::before {
  opacity: .44;
}

.card-overlay__image.foil-Gold.is-active::after {
  opacity: .62;
}

.card-overlay__image.foil-Xtreme.is-active::before {
  opacity: .72;
}

.card-overlay__image.foil-Xtreme.is-active::after {
  opacity: .78;
}

.card-overlay__image img {
  display: block;
  width: 100%;
  background: #050914;
  transform: translateZ(22px);
  pointer-events: none;
}

.card-overlay__content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 42px;
}

.card-overlay-more {
  position: relative;
}

.card-overlay-more__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(210, 52, 51, .18), transparent 44%),
    rgba(3, 8, 16, .98);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .06), 0 18px 34px rgba(0, 0, 0, .55);
}

.card-overlay-more__panel[hidden] {
  display: none;
}

.card-overlay-more__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, .5);
  border-left: 1px solid rgba(255, 255, 255, .5);
  background: rgba(3, 8, 16, .98);
  transform: rotate(45deg);
}

.card-overlay-more__panel button {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbeafe;
  font-size: .95rem;
  text-align: left;
  box-shadow: none;
}

.card-overlay-more__panel button:hover,
.card-overlay-more__panel button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.card-overlay__content h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
}

.card-overlay__content p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(.98rem, 1.8vw, 1.2rem);
  line-height: 1.2;
  font-weight: 100;
}

.battle-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
  overflow: auto;


}

.coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
}

.sell-card-overlay,
.evolution-overlay {
  position: fixed;
  inset: 0;
  z-index: 93;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(8px);
}

.email-verification-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
}

.welcome-modal {
  position: relative;
  width: min(100%, 640px);
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  padding-right: clamp(64px, 9vw, 86px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .92)),
    url('/assets/images/thumbnail-collection.webp') center / cover no-repeat,
    rgba(3, 10, 20, .96);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .09), 0 24px 80px rgba(0, 0, 0, .72);
}

.welcome-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 18%, rgba(210, 52, 51, .24), transparent 42%);
}

.welcome-modal__copy,
.welcome-modal__actions {
  position: relative;
  z-index: 1;
}

.welcome-modal__copy {
  display: grid;
  gap: 8px;
  max-width: 480px;
}

.welcome-modal__eyebrow {
  color: var(--fire);
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-modal h2,
.welcome-modal p {
  margin: 0;
}

.welcome-modal h2 {
  color: #f8fbff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: .95;
  text-transform: uppercase;
}

.welcome-modal p {
  color: #d8e4ef;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.32;
  font-weight: 300;
  margin: 5px 0;
}

.welcome-modal p.welcome-note {
  font-size: 1.1rem;
  line-height: 1.1;
  color: #91a0ae;
}

.welcome-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-overlay,
.auth-overlay,
.avatar-picker-overlay,
.battle-help-overlay,
.coming-soon-overlay,
.sell-card-overlay,
.evolution-overlay,
.email-verification-overlay,
.gift-transfer-overlay,
.welcome-overlay {
  animation: overlay-fade-enter .2s ease-out both;
}

.card-overlay__panel,
.auth-overlay .auth-panel,
.avatar-picker,
.battle-help,
.coming-soon-modal,
.sell-card-modal,
.evolution-modal,
.email-verification-modal,
.gift-transfer-modal,
.welcome-modal {
  animation: modal-focus-enter .3s var(--ease-app) both;
}

.coming-soon-modal,
.sell-card-modal,
.evolution-modal,
.email-verification-modal {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  padding-right: clamp(64px, 9vw, 82px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 44%),
    rgba(3, 10, 20, .96);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .09), 0 24px 80px rgba(0, 0, 0, .72);
}

.email-verification-modal__copy {
  display: grid;
  gap: 8px;
}

.email-verification-modal h2,
.email-verification-modal p {
  margin: 0;
}

.email-verification-modal h2 {
  color: #f8fbff;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-transform: uppercase;
}

.email-verification-modal p {
  color: #b7c8d8;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.4;
}

.email-verification-modal__dev-code {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(0, 167, 255, .4);
  border-radius: 4px;
  background: rgba(0, 167, 255, .12);
  color: #dff4ff;
  font-weight: 700;
}

.email-verification-modal__message {
  min-height: 1.35em;
  color: var(--water);
}

.email-verification-modal__message.is-error {
  color: var(--fire);
}

.coming-soon-modal h2,
.coming-soon-modal p {
  margin: 0;
}

.sell-card-modal h2,
.sell-card-modal p,
.evolution-modal h2,
.evolution-modal p {
  margin: 0;
}

.coming-soon-modal h2 {
  color: #f8fbff;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  text-transform: uppercase;
}

.sell-card-modal h2,
.evolution-modal h2 {
  color: #f8fbff;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  text-transform: uppercase;
}

.coming-soon-modal p {
  color: #b7c8d8;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.4;
}

.sell-card-modal p,
.evolution-modal p {
  color: #b7c8d8;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.4;
}

.evolution-modal__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evolution-modal__summary {
  color: #f4f8ff;
}

.evolution-modal__card {
  justify-self: center;
  width: min(240px, 58vw);
  border-radius: 8px;
}

.evolution-modal__card img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

.evolution-modal--celebration {
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 167, 255, .22), transparent 36%),
    linear-gradient(135deg, rgba(210, 52, 51, .18), transparent 44%),
    rgba(3, 10, 20, .96);
  padding: 30px;
  overflow: hidden;
}

.sell-card-modal__sell-all {
  position: absolute;
  top: 18px;
  right: 74px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  color: #f8fbff;
  background: rgba(255, 255, 255, .06);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.sell-card-modal__sell-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--fire);
  min-height: 28px;
}

.sell-card-rates {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sell-card-rates li {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  color: #dce8f2;
  background: rgba(255, 255, 255, .04);
}

.sell-card-rates li.is-current {
  border-color: rgba(210, 52, 51, .7);
  color: #fff;
  background: rgba(210, 52, 51, .18);
}

.batch-sell-breakdown {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.batch-sell-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  color: #dce8f2;
  background: rgba(255, 255, 255, .04);
}

.batch-sell-breakdown span,
.batch-sell-breakdown strong {
  color: inherit;
  text-transform: uppercase;
}

.sell-card-modal__summary {
  color: #f4f8ff;
}

.marketplace-card-price {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    margin: -6px 0 0;
    padding: 6px 10px 3px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    border-right: 1px solid rgb(255 255 255 / 10%);
    border-radius: 4px;
    color: #fff;
    background: rgb(137 137 137 / 16%);
    font-size: 2rem !important;
    font-weight: 900;
    text-transform: uppercase;
}

.transfer-card-status,
.gift-transfer-kicker {
  margin: 0;
  color: #5ce1e6;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.transfer-recipient-status {
  margin: -6px 0 0;
  color: #9eb5c7;
  font-size: .9rem;
}

.transfer-recipient-status.is-valid {
  color: #77ff8f;
}

.transfer-recipient-status.is-invalid {
  color: #ff7777;
}

.marketplace-owner-controls {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
}

.marketplace-owner-controls .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.marketplace-sell-modal .form-row input,
.marketplace-owner-controls .form-row input {
  font-size: 1.25rem;
  font-weight: 900;
}

.battle-help {
  position: relative;
  width: min(100%, 760px);
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);


  background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 34%), rgba(3, 10, 20, .88);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .09);
  border: 1px solid var(--line);
  border-radius: 6px;

}

.battle-help__copy {
  display: grid;
  gap: 8px;
  padding-right: 46px;
}

.battle-help h2,
.battle-help p {
  margin: 0;
}

.battle-help h2 {
  color: #f8fbff;
  text-transform: uppercase;
  font-size: 1.7rem;
}

.battle-help p {
  color: #b7c8d8;
  font-size: 1.1rem;
  font-weight: 200;
}

.battle-help__types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.battle-help__type {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: #000;
  text-align: center;
}

.battle-help__type img {
  width: min(100%, 126px);
  aspect-ratio: 1;
  object-fit: contain;
}


.battle-help__type strong, .battle-help__type span {
  display: none;
}

.battle-help__type.element-Fire {
  border-color: rgba(255, 59, 31, .55);
}

.battle-help__type.element-Water {
  border-color: rgba(0, 167, 255, .58);
}

.battle-help__type.element-Steel {
  border-color: rgba(168, 176, 184, .5);
}

.battle-help__rules {
  display: grid;
  gap: 8px;
}

.battle-help__rules div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  background: rgba(1, 8, 18, .48);
}

.battle-help__rules strong {
  color: #f8fbff;
  text-transform: uppercase;
}

.battle-help__rules span,
.battle-help__note {
  color: #9cc9e7;
}

.battle-help__note {
  padding-top: 4px;
  font-size: .9rem;
}

.foil-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 20px;
  padding: 2px 9px;
  color: #e0f2fe !important;
  background: rgba(8, 47, 73, .72);
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.foil-badge.foil-badge-Gold {
  color: #311a00 !important;
  background: rgb(255 181 10 / 78%);
  box-shadow: inset 0 0 12px rgba(255, 215, 87, .28);

}

.foil-badge.foil-badge-Holographic {
  color: #e6f8ff !important;
  background: linear-gradient(135deg, rgba(0, 167, 255, .72), rgba(124, 58, 237, .72));
  box-shadow: inset 0 0 12px rgba(181, 238, 255, .28);
}

.foil-badge.foil-badge-Xtreme {
  color: #f8e8ff !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, .86), rgba(210, 52, 51, .78));
  box-shadow: inset 0 0 12px rgba(255, 111, 219, .32), 0 0 16px rgba(124, 58, 237, .24);
}

.beast-card__body .foil-badge {
  position: absolute;
  right: 0px;
  margin: -30px 0 0 0;
  border-radius: 0px;
  border-top-left-radius: 5px;
  font-size: 0.7rem !important;

}

.foil-Holographic::after,
.foil-Gold::after,
.foil-Xtreme::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: screen;
}

.foil-Holographic::after {
  background: linear-gradient(115deg, transparent 20%, rgba(34, 211, 238, .6), rgba(244, 114, 182, .55), transparent 78%);
}

.foil-Gold {
  border: 1px solid #d97706 !important;
  border-radius: 10px;
}

.card-overlay__image.foil-Gold {
  border: 1px solid #d97706 !important;
  border-radius: 30px;
  box-shadow: 0px 0px 20px rgb(249 198 3 / 78%);
}

.xb-arena-card.foil-Gold.is-flipped .xb-arena-card__inner {
  box-shadow: 0px 0px 20px rgb(249 198 3 / 78%);
}

.foil-Holographic {
  border: 1px solid rgba(124, 58, 237, .72) !important;
  border-radius: 10px;
}

.card-overlay__image.foil-Holographic {
  border: 1px solid rgba(124, 58, 237, .72) !important;
  border-radius: 30px;
  box-shadow: 0px 0px 20px rgb(4 177 255 / 78%);
}

.xb-arena-card.foil-Holographic.is-flipped .xb-arena-card__inner {
  box-shadow: 0px 0px 20px rgb(4 177 255 / 78%);
}

.foil-Xtreme {
  border: 1px solid rgba(210, 52, 51, .78) !important;
  border-radius: 10px;
}

.card-overlay__image.foil-Xtreme {
  border: 1px solid rgba(210, 52, 51, .78) !important;
  border-radius: 30px;
  box-shadow: 0px 0px 20px rgb(210 51 149 / 78%);
}

.xb-arena-card.foil-Xtreme.is-flipped .xb-arena-card__inner {
  box-shadow: 0px 0px 20px rgb(210 51 149 / 78%);
}



.foil-Gold::after {
  background: linear-gradient(115deg, transparent 22%, rgba(251, 191, 36, .75), transparent 72%);
}

.foil-Xtreme {
  border-color: #0f766e;
}

.foil-Xtreme::after {
  background: linear-gradient(115deg, transparent 18%, rgba(45, 212, 191, .65), rgba(251, 191, 36, .55), transparent 82%);
}

.xb-arena-card.foil-Holographic,
.xb-arena-card.foil-Gold,
.xb-arena-card.foil-Xtreme {
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.xb-arena-card.foil-Holographic::after,
.xb-arena-card.foil-Gold::after,
.xb-arena-card.foil-Xtreme::after {
  content: none !important;
}

.xb-arena-card.foil-Holographic .xb-arena-card__front,
.xb-arena-card.foil-Gold .xb-arena-card__front,
.xb-arena-card.foil-Xtreme .xb-arena-card__front {
  isolation: isolate;
  border: 0 !important;
  box-shadow: inset 0 0 28px var(--arena-evolution-glow);
}

.xb-arena-card.foil-Holographic .xb-arena-card__front::before,
.xb-arena-card.foil-Gold .xb-arena-card__front::before,
.xb-arena-card.foil-Xtreme .xb-arena-card__front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid var(--arena-evolution-color);
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px var(--arena-evolution-glow),
    0 0 18px var(--arena-evolution-glow);
}

.xb-arena-card.foil-Holographic {
  --arena-evolution-color: rgba(124, 58, 237, .9);
  --arena-evolution-glow: rgba(0, 167, 255, .2);
}

.xb-arena-card.foil-Gold {
  --arena-evolution-color: rgba(217, 119, 6, .95);
  --arena-evolution-glow: rgba(255, 181, 10, .24);
}

.xb-arena-card.foil-Xtreme {
  --arena-evolution-color: rgba(210, 52, 51, .95);
  --arena-evolution-glow: rgba(124, 58, 237, .26);
}

.xb-arena-card.foil-Holographic .xb-arena-card__front::after,
.xb-arena-card.foil-Gold .xb-arena-card__front::after,
.xb-arena-card.foil-Xtreme .xb-arena-card__front::after {
  z-index: 1;
  border-radius: inherit;
}

.xb-arena-card .card-rarity {
  position: relative;
  z-index: 4;
}

.beast-card.rarity-Legendary {
  border-color: #f59e0b;
  box-shadow: inset 0 0 16px rgba(245, 158, 11, .15), 0 0 18px rgba(245, 158, 11, .16);
}

.beast-card.rarity-Epic {
  border-color: #a855f7;
  box-shadow: inset 0 0 16px rgba(168, 85, 247, .12);
}

.beast-card.rarity-Rare {
  border-color: #0ea5e9;
  box-shadow: inset 0 0 16px rgba(14, 165, 233, .16);
}

.beast-card.element-Fire {
  border-color: rgba(255, 59, 31, .72);
  box-shadow: inset 0 0 18px rgba(255, 59, 31, .14), 0 0 18px rgba(255, 59, 31, .11);
}

.beast-card.element-Water {
  border-color: rgba(0, 167, 255, .72);
  box-shadow: inset 0 0 18px rgba(0, 167, 255, .16), 0 0 18px rgba(0, 167, 255, .13);
}

.beast-card.element-Steel {
  border-color: rgba(168, 176, 184, .7);
  box-shadow: inset 0 0 18px rgba(168, 176, 184, .1), 0 0 18px rgba(168, 176, 184, .08);
}

.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .3);
  overflow: hidden;
  background: #000;
}

.bottom-nav button {
  position: relative;
  flex-direction: column;
  gap: 4px;
  min-height: 68px;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, .16);
  border-radius: 0;
  background: transparent;
  color: #8a94a3;
  font-size: .98rem;
}

.bottom-nav button::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: #fd5f5e;
  box-shadow: 0 0 18px rgba(253, 95, 94, .85);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s var(--ease-app), opacity .22s ease;
  opacity: 0;
}

.bottom-nav .material-symbols-rounded {
  font-size: 1.6rem;
}

.bottom-nav button.is-active .material-symbols-rounded {
  font-variation-settings: "FILL"1, "wght"700, "GRAD"0, "opsz"24;
}

.bottom-nav button:last-child {
  border-right: 0;
}

.bottom-nav button.is-active {
  color: #fd5f5e;
  background: linear-gradient(135deg, rgba(245, 87, 86, .24), transparent 42%), rgba(20, 1, 2, .88);
  box-shadow: inset 0 0 22px rgba(245, 87, 86, .28);

}

.bottom-nav button.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.offline-page {
  max-width: 560px;
  margin: 15vh auto;
  padding: 18px;
}

@media (max-width: 720px) {
  .brand__logo {
    width: clamp(100px, 34vw, 100px);

  }

  .admin-insight-card__grid,
  .admin-split-list {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-panel--wide {
    grid-column: auto;
  }

  .collection-sort-controls .button-label {
    display: none;
  }

  .collection-sort-controls button {
    min-width: 46px;
    padding-inline: 0;
  }

  .element-battle-button small {
    font-size: 0.8rem;
  }

  .xb-arena-card img {
    border-radius: 6px;
  }
}

@media (max-width: 900px) {
  .battle-setup-panel {
    grid-template-columns: 1fr;
  }
  .marketplace-card-price {
    justify-self: center;
  }

  .sell-card-modal__sell-all {
    right: 20px;
  }

  .cards-grid.dashboard-latest__grid {
    margin-bottom: 20px;

  }

  .xb-battle-stage {
    margin-top: -40px;
    padding-bottom: 20px;
  }
}


@media (min-width: 720px) {
  .app-shell {
    padding: 20px;
    padding-bottom: 118px;
  }

  .panel {
    padding: 20px;
  }

  .panel.auth-panel {
    padding: 30px 40px;
  }

}

@media (min-width: 900px) {
  .filter-rail {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 900px) {
  .card-overlay__content .foil-badge {
        position: fixed;
        justify-self: center;
        margin: 0;
        border-radius: 4px;
        top: 0px;
  }

  .pack-card {
    min-height: 360px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .12) 0 1%, rgba(3, 10, 20, .1) 30%, rgba(3, 10, 20, 0)), url(/assets/images/thumbnail-packs.webp) right center / auto 100% no-repeat, rgba(3, 10, 20, .88);
  }

  .pack-card__content {
    width: 100%;
  }

  .pack-card {
    background-image: none;
  }

  .pack-card__buy-row {
    grid-template-columns: 1fr;
  }

  .pack-reveal__header {
    display: grid;
    align-items: start;
  }

  .admin-card-editor {
    grid-template-columns: 1fr;
  }

  .admin-card-editor img {
    max-width: 220px;
  }

  /* 
  .stat span {
    height: 15px;
  } */

  .actions {
    justify-content: center;
  }

  .card-overlay__close {
    position: fixed;
    top: 0;
    right: 0;
    transform: scale(0.8);
  }


  .homepage-panel {
    grid-template-columns: minmax(180px, .8fr) minmax(240px, 1fr);
    min-height: 240px;
  }

  .homepage-panel img {
    min-height: 240px;
  }

  .dashboard-screen {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    min-height: 0;
    padding: 8px 16px 4px 16px;
    grid-template-rows: 1fr 0px 12px 1fr;
  }

  .dashboard-stat strong {
    font-size: 1.5rem;
  }

  .dashboard-stat:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .dashboard-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-latest__body {
    grid-template-columns: 1fr;
  }

  .dashboard-latest__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-leaderboard__row {
    grid-template-columns: 34px 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .dashboard-leaderboard__record {
    grid-row: 2;
  }

  .dashboard-leaderboard__record--wins {
    grid-column: 3;
  }

  .dashboard-leaderboard__record--losses {
    grid-column: 4;
  }

  .dashboard-leaderboard__record--draws {
    grid-column: 3;
    justify-self: end;
    display: none;
  }

  .dashboard-leaderboard__meta {
    display: none;
  }

  .dashboard-leaderboard__xp {
    grid-column: 4;
    grid-row: 1;
  }

  .collection-header,
  .collection-layout {
    grid-template-columns: 1fr;
  }

  .collection-header {
   padding: 0;
  }

  .collection-header-actions {
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
  }

  .collection-filter-toggle {
    display: inline-flex;
  }

  /* .collection-header-actions .search-field {
    flex: 0 0 220px;
  } */
  .search-field input {
    padding-right: 8px;
  }

  .filter-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-screen:not(.marketplace-screen) .collection-layout:not(.is-filter-rail-visible) .filter-rail {
    display: none;
  }

  .filter-rail h2,
  .filter-accordion,
  #clearCollectionFilters {
    grid-column: 1 / -1;
  }



  .card-overlay__panel {
    grid-template-columns: 1fr;
    max-height: 100%;
    /* width: min(100%, 560px); */
  }

  .card-overlay__content h2,
  .card-overlay__content p {
    text-align: center;
  }
  .card-overlay__content p {
       margin: -10px 0 12px;
  }

  .card-overlay__image {
    max-width: 360px;
    width: 100%;
    justify-self: center;
  }

  .card-overlay__content {
    padding-top: 0;
  }

  .battle-help__copy {
    padding-right: 38px;
  }


  .battle-help__type {
    align-items: center;
    justify-items: start;
 
  }

  .battle-help__type img {
    width: 76px;
  }

  .battle-help__rules div {
    display: grid;
  }
}

@media (max-width: 450px) {
  .dashboard-claim-row {
    font-size: 12px;
  }

}

@media (max-width: 410px) {
  .simple-battle-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 680px) {
  .collection-batch-bar {
    padding: 10px;
  }
  .dashboard-tile img {
    opacity: 0.4;
  }
  .battle-card-feature__arrow {
    display: none;
  }

  .collection-batch-bar strong, .collection-batch-bar span {
    padding-right: 10px;
  }

  .battle-result .actions {
    position: fixed;
    bottom: 40px;
    background: #000;
    width: 100%;
    padding: 20px;
    border-top: 1px solid var(--line);

    height: 50px !important;
    bottom: 36px !important;
    padding: 10px 20px 70px;
  }




  .battle-result .actions button {
    font-size: 0.86em;
  }

  .stat.battle-stat-balance {
    display: none;
  }

  .topbar {
    padding: 12px 8px;
  }

  .app-shell {
    padding: 10px 10px 104px;
  }

  .xb-arena {
    padding: 24px 22px;
  }
.battle-final__summary {
    top: 5%;
}
  .xb-arena {
    padding: 41px 20px 0px;
  }

  .battle-support-panel {
    margin-top: -14px;
  }

  .battle-card-feature {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 28px 22px 34px;
    text-align: center;
  }

  .battle-card-feature h2 {
        justify-self: center;
        max-width: 420px;
        font-size: clamp(1.6rem, 12vw, 1.6rem);
        padding: 0;
  }
  .battle-card-feature__card {
    justify-self: center;
}

  .battle-card-feature__card .beast-card {
    width: min(100%, 250px);
  }

  .battle-final {
    gap: 0;
  }

  .battle-final__summary p, .battle-final__summary>strong, .battle-final__summary>span {
    text-shadow: 0 0 28px #000 !Important;
  }

  .topbar {
    position: relative;
    clip-path: none;
  }

  .brand__logo {
    width: min(65px, 70vw);
  }

  .avatar-mark, .avatar-mark:hover {
    width: 46px;
    height: 46px;
  }

  .topbar-icon-button {
    width: 46px;
    min-height: 46px;
  }


  .homepage-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }


  .empty-open-pack {
    justify-items: stretch;
  }


  .homepage-panel img {
    grid-row: 1;
    min-height: 220px;
    max-height: 280px;
  }

  .homepage-panel::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .36) 44%, rgba(0, 0, 0, .94));
  }

  .homepage-panel__title,
  .homepage-panel__copy {
    grid-column: 1;
  }

  .homepage-panel__title {
    padding: 18px 18px 6px;
  }

  .homepage-panel__copy {
    align-self: start;
    padding: 0 18px 18px;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-snapshot__body {
    grid-template-columns: 1fr;
  }

  .dashboard-claim-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .dashboard-claim-button {
    padding: 0 12px;
  }

  .dashboard-next-claim {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .dashboard-tiles {
    grid-template-columns: 1fr;
  }

  .dashboard-latest__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tile {
    min-height: 118px;
  }
.store-hub__tiles .dashboard-tile {
    min-height: 220px;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
  }

  /* .xb-versus-bar,
  .xb-battle-stage,
  .battle-final__cards {
    grid-template-columns: 1fr;
  } */

  .xb-combatant-opponent {
    text-align: left;
  }

  .xb-vs-mark,
  .xb-countdown {
    justify-self: center;
  }

  .xb-battle-stage,
  .battle-final__cards {
    --arena-card-size: clamp(108px, 36vw, 170px);
    --arena-mid-size: clamp(42px, 13vw, 58px);
  }

  .battle-card-badge {
    top: -9px;
    min-width: 74px;
    padding: 5px 8px;
    font-size: .58rem;
  }

  .xb-vs-mark {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
  }

  .bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* width: calc(100vw - 16px); */
    width: 100%;
  }

  .bottom-nav button {
    min-height: 58px;
    padding: 0 6px;
    font-size: .72rem;
  }

  .card-overlay {
    padding: 10px;
  }

  .welcome-modal {
    min-height: 430px;
    padding: 18px;
    padding-top: 68px;
  }

  .welcome-modal__actions {
    display: grid;
  }

  .card-overlay__panel {
    padding: 12px;
  }

  .card-overlay__content h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {

  button,
  .topbar-action,
  .settings-menu button,
  .panel,
  .dashboard-panel,
  .dashboard-tile,
  .homepage-panel,
  .pack-card,
  .dashboard-breakdown__item {
    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      background .18s ease,
      color .18s ease,
      opacity .18s ease;
  }

  button:active:not(:disabled),
  .dashboard-tile:active,
  .homepage-panel:active,
  .dashboard-breakdown__item:active,
  .beast-card:active {
    transform: translateY(1px) scale(.985);
  }

  .bottom-nav button:active:not(:disabled) {
    transform: translateY(0) scale(.96);
  }

  .dashboard-tile:hover,
  .homepage-panel:hover,
  .dashboard-breakdown__item:hover {
    transform: translateY(-2px);
  }

  .beast-card {
    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      background .18s ease,
      opacity .18s ease;
  }

  .beast-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 18px rgba(14, 165, 233, .18), 0 18px 30px rgba(0, 0, 0, .38);
  }

  .foil-Xtreme::after,
  .xb-arena-card.foil-Xtreme .xb-arena-card__front::after {
    animation: foil-sweep 3.5s linear infinite;
  }

  .battle-result .actions.is-entering {
    animation: battle-actions-slide-in .42s cubic-bezier(.16, .86, .28, 1) .18s both;
  }

}

@media (prefers-reduced-motion: reduce) {

  .app-shell.is-screen-entering :where(.homepage, .dashboard-screen, .collection-screen, .battle-screen, .battle-arena, .battle-final, .packs-screen, .account-screen, .admin-screen, .missions-screen, .panel),
  .app-shell.is-screen-entering :where(.dashboard-panel, .panel, .filter-rail, .collection-header, .battle-setup, .pack-card),
  .app-shell.is-screen-entering :where(.dashboard-tile, .homepage-panel, .cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat),
  .app-shell.is-content-updating :where(.cards-grid > .beast-card, .dashboard-breakdown__item, .dashboard-stat),
  .route-wipe__panel,
  .route-wipe__logo,
  .loading-card::after,
  .loading-element::after,
  .card-overlay,
  .auth-overlay,
  .avatar-picker-overlay,
  .battle-help-overlay,
  .coming-soon-overlay,
  .sell-card-overlay,
  .evolution-overlay,
  .email-verification-overlay,
  .welcome-overlay,
  .card-overlay__panel,
  .auth-overlay .auth-panel,
  .avatar-picker,
  .battle-help,
  .coming-soon-modal,
  .sell-card-modal,
  .evolution-modal,
  .email-verification-modal,
  .welcome-modal {
    animation: none;
  }

  .battle-result .actions {
    animation: none;
  }

  .route-wipe {
    background: #000;
  }

  .route-wipe__panel {
    display: none;
  }

  .route-wipe__logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .card-overlay__image {
    transform: none;
    transition: none;
  }

  .card-overlay__image::before,
  .card-overlay__image::after {
    display: none;
  }
}

@keyframes app-fade-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes screen-ghost-exit {
  from {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  to {
    opacity: 0;
    filter: blur(5px);
    transform: scale(.992);
  }
}

@keyframes route-wipe-panel-in {
  0% {
    transform: translateX(-112%) skewX(-18deg);
  }

  100% {
    transform: translateX(0) skewX(-18deg);
  }
}

@keyframes route-wipe-panel-out {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(220vw) skewX(-18deg);
  }
}

@keyframes route-wipe-logo-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.88);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes route-wipe-logo-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.92);
  }
}

@keyframes screen-forward-enter {
  from {
    opacity: 0;
    transform: translate3d(var(--screen-enter-x), var(--screen-enter-y), 0) scale(.985);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes screen-back-enter {
  from {
    opacity: 0;
    transform: translate3d(var(--screen-enter-x), var(--screen-enter-y), 0) scale(.988);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes screen-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(var(--screen-enter-x), var(--screen-enter-y), 0) scale(.988);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes panel-lift-enter {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--screen-enter-x) * .45), 18px, 0) scale(.992);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes tile-rise-enter {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--screen-enter-x) * .22), 24px, 0) scale(.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes content-settle-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes button-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-sheen {
  0% {
    transform: translateX(-110%);
  }

  55%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes overlay-fade-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-focus-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.965);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes battle-actions-slide-in {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 56px));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes foil-sweep {
  from {
    transform: translateX(-60%);
  }

  to {
    transform: translateX(60%);
  }
}
