:root {
  --gray-50: #f9fafb;
  --gray-200: #eaecf0;
  --gray-300: #d0d5dd;
  --gray-400: #98a2b3;
  --gray-500: #667085;
  --gray-900: #101828;
  --bg: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--gray-900);
  font-family: "Figtree", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.creation-page {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.topbar-actions {
  position: relative;
}

body[data-page="dashboard"] .topbar-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-self: end;
}

body[data-page="dashboard"] .dashboard-topbar {
  display: grid;
  gap: 24px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

body[data-page="dashboard"] .dashboard-topbar.is-battle-header {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

body[data-page="dashboard"] .dashboard-tabs {
  align-items: center;
  background: #eaecf0;
  border: 1px solid #d0d5dd;
  border-radius: 99px;
  display: inline-flex;
  justify-self: center;
  padding: 4px;
}

body[data-page="dashboard"] .dashboard-tab {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  color: #101828;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  min-width: 88px;
  padding: 0 12px;
}

body[data-page="dashboard"] .dashboard-tab.active {
  background: #fff;
  border-color: #d0d5dd;
}

body[data-page="dashboard"] .dashboard-energy {
  align-items: center;
  display: flex;
  gap: 8px;
  height: 40px;
  margin-right: 0;
  padding: 0;
  position: relative;
}

body[data-page="dashboard"] .dashboard-energy img {
  align-self: center;
  display: block;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

body[data-page="dashboard"] .dashboard-energy p {
  align-items: center;
  color: #101828;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 4px;
  height: 20px;
  line-height: 20px;
  margin: 0;
}

body[data-page="dashboard"] .dashboard-energy span,
body[data-page="dashboard"] .dashboard-energy em {
  display: block;
  line-height: 20px;
}

body[data-page="dashboard"] .dashboard-energy em {
  color: #98a2b3;
  font-style: normal;
}

body[data-page="dashboard"] .dashboard-energy.has-empty-energy {
  cursor: help;
}

body[data-page="dashboard"] .dashboard-energy:focus-visible {
  outline: none;
}

body[data-page="dashboard"] .dashboard-energy-tooltip {
  background: #101828;
  border-radius: 10px;
  top: calc(100% + 10px);
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  left: 50%;
  line-height: 16px;
  max-width: 220px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  white-space: normal;
  width: max-content;
  z-index: 20;
}

body[data-page="dashboard"] .dashboard-energy-tooltip::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #101828;
  content: "";
  left: 50%;
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
}

body[data-page="dashboard"] .dashboard-energy.has-empty-energy:hover .dashboard-energy-tooltip,
body[data-page="dashboard"] .dashboard-energy.has-empty-energy:focus-visible .dashboard-energy-tooltip,
body[data-page="dashboard"] .dashboard-energy.has-empty-energy:focus-within .dashboard-energy-tooltip {
  opacity: 1;
}

.brand {
  display: inline-flex;
  line-height: 0;
}

.brand img {
  display: block;
  height: auto;
  width: 118px;
}

.connect-trigger {
  background: var(--gray-200);
  border: 0;
  border-radius: 42px;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  padding: 0 24px;
}

.wallet-menu {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
  min-width: 180px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 1000;
}

.wallet-menu-item {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--gray-900);
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  height: 36px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.wallet-menu-item:hover,
.wallet-menu-item:focus-visible {
  background: #f2f4f7;
  outline: none;
}

.wallet-menu-item.disabled {
  color: #98a2b3;
}

.wallet-menu-item.disabled:hover,
.wallet-menu-item.disabled:focus-visible {
  background: transparent;
}

.app-toast {
  background: rgba(16, 24, 40, 0.92);
  border-radius: 14px;
  bottom: 24px;
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  left: 50%;
  line-height: 20px;
  max-width: min(420px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.app-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.progress-wrap {
  left: 50%;
  margin: 0;
  position: absolute;
  top: 29px;
  transform: translateX(-50%);
  width: 345px;
}

.progress-bars {
  display: flex;
  gap: 9px;
}

.progress-bar {
  background: var(--gray-200);
  border-radius: 4px;
  flex: 1;
  height: 8px;
}

.progress-bar.active {
  background: var(--gray-900);
}

.progress-bar.completed {
  background: #039855;
}

.progress-labels {
  color: var(--gray-500);
  column-gap: 8px;
  display: grid;
  font-size: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
  text-align: center;
}

.progress-labels .active {
  color: var(--gray-900);
  font-weight: 600;
}

.screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 170px auto 0;
  max-width: 640px;
  text-align: center;
}

body.app-booting .screen {
  display: none !important;
}

.hero-icon {
  display: block;
  height: 72px;
  width: 72px;
}

.pet-avatar {
  align-items: center;
  background: var(--gray-900);
  border-radius: 18px;
  color: #fff;
  display: flex;
  font-size: 36px;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.pet-avatar {
  border-radius: 100%;
}

.screen h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.screen p {
  color: var(--gray-500);
  margin: 0;
}

.screen:not(#screenType) > h1 {
  font-size: 48px;
  line-height: 1.2;
  margin: 20px 0 8px;
}

.screen:not(#screenType) > p {
  font-size: 18px;
  line-height: 24px;
}

#screenType h1 {
  font-size: 32px;
  line-height: 40px;
  margin: 16px 0 0;
}

#screenType > p {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 8px;
  max-width: 412px;
  width: 100%;
}

.types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.type-chip {
  --type-hover-border: var(--gray-300);
  --type-active-border: #98a2b3;
  --type-active-bg: #f2f4f7;
  --type-active-text: var(--gray-900);
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  color: var(--gray-900);
  cursor: pointer;
  display: grid;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  gap: 12px;
  grid-template-columns: 20px auto;
  height: 40px;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.type-chip-icon {
  display: inline-flex;
  height: 20px;
  position: relative;
  width: 20px;
}

.type-chip-icon-primary,
.type-chip-icon-secondary {
  display: block;
  height: 20px;
  object-fit: contain;
  position: absolute;
  width: 20px;
}

.type-chip-icon img:not([src]),
.type-chip-icon img[src=""] {
  display: none;
}

.type-chip-icon-secondary {
  inset: 0;
}

.type-chip-label {
  display: inline-block;
  font-family: "Figtree", Arial, sans-serif;
  line-height: 1;
}

.type-chip:hover:not(.active),
.type-chip:focus-visible:not(.active) {
  background: #fff;
  border-color: var(--type-hover-border);
  outline: none;
}

.type-chip.active {
  background: var(--type-active-bg);
  border-color: var(--type-active-border);
  box-shadow: inset 0 0 0 1px var(--type-active-border);
  color: var(--type-active-text);
}

.type-chip[data-type="Dragon"] {
  --type-hover-border: #faa7e0;
  --type-active-border: #f670c7;
  --type-active-bg: #fdf2fa;
  --type-active-text: #dd2590;
  width: 117px;
}

.type-chip[data-type="Phoenix"] {
  --type-hover-border: #fda29b;
  --type-active-border: #f97066;
  --type-active-bg: #fef3f2;
  --type-active-text: #d92d20;
  width: 121px;
}

.type-chip[data-type="Cat"] {
  --type-hover-border: #fec84b;
  --type-active-border: #fdb022;
  --type-active-bg: #fffaeb;
  --type-active-text: #dc6803;
  width: 90px;
}

.type-chip[data-type="Owl"] {
  --type-hover-border: #bdb4fe;
  --type-active-border: #9b8afb;
  --type-active-bg: #f4f3ff;
  --type-active-text: #6938ef;
  width: 93px;
}

.type-chip[data-type="Ape"] {
  --type-hover-border: #feb273;
  --type-active-border: #fd853a;
  --type-active-bg: #fff6ed;
  --type-active-text: #ec4a0a;
  width: 94px;
}

.type-chip[data-type="Panda"] {
  --type-hover-border: #6ce9a6;
  --type-active-border: #32d583;
  --type-active-bg: #ecfdf3;
  --type-active-text: #039855;
  width: 108px;
}

.type-chip[data-type="Undead"] {
  --type-hover-border: #afb5d9;
  --type-active-border: #717bbc;
  --type-active-bg: #eaecf5;
  --type-active-text: #3e4784;
  width: 120px;
}

.type-chip[data-type="Other"] {
  --type-hover-border: #7cd4fd;
  --type-active-border: #36bffa;
  --type-active-bg: #e0f2fe;
  --type-active-text: #0086c9;
  width: 106px;
}

.other-input-wrap {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  box-shadow: none;
  margin-top: 32px;
  width: 362px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, border-width 0.15s ease;
}

.other-input-wrap:hover {
  border-color: #1d2939;
}

.other-input-wrap:focus-within {
  border: 2px solid #101828;
  box-shadow: 0 0 0 4px #eaecf0;
}

.other-input-wrap label {
  display: none;
}

.other-input-wrap input {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  height: 48px;
  line-height: 24px;
  padding: 11px 15px;
  width: 100%;
}

.other-input-wrap input::placeholder {
  color: #98a2b3;
  font-weight: 400;
  opacity: 1;
}

.other-input-wrap input:focus {
  caret-color: #101828;
  outline: none;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.primary-btn {
  background: var(--gray-200);
  border: 0;
  border-radius: 99px;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  height: 56px;
  margin-top: 24px;
  min-width: 190px;
  padding: 0 24px;
}

.primary-btn.enabled {
  background: var(--gray-900);
  color: #fff;
}

.type-continue-btn {
  align-items: center;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  margin-top: 32px;
  min-width: 0;
  padding: 16px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  width: 141px;
}

.type-continue-btn.enabled:hover,
.type-continue-btn.enabled:focus-visible {
  background: #1d2939;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.primary-btn:disabled {
  cursor: not-allowed;
}

.process-card {
  align-items: center;
  display: flex;
  height: 280px;
  justify-content: center;
  margin-bottom: 16px;
  width: 280px;
}

.process-lottie {
  border: 0;
  display: block;
  height: 280px;
  width: 280px;
}

.process-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#screenProcess .process-copy > h1,
#screenProcess .process-copy > p {
  margin: 0;
}

.powers-grid {
  align-items: stretch;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  width: 600px;
}

.power-card {
  background: var(--bg);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  flex: 0 0 189.333px;
  flex-direction: column;
  font-family: "Figtree", Arial, sans-serif;
  gap: 12px;
  height: auto;
  justify-content: center;
  min-height: 124px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.power-card:hover:not(.active),
.power-card:focus-visible:not(.active) {
  background: #fff;
  border-color: #98a2b3;
  outline: none;
}

.power-card.active {
  background: #fff;
  border-color: #101828;
  box-shadow: inset 0 0 0 1px #101828;
}

.power-card-icon {
  display: block;
  flex: 0 0 20px;
  height: 20px;
  margin: 0 auto;
  width: 20px;
}

.power-card p {
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.back-btn {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.powers-screen {
  align-items: stretch;
  margin-top: 22px;
  max-width: 1148px;
  text-align: left;
}

.powers-screen-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.powers-back-btn {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 48px;
}

.powers-back-btn.is-hidden {
  pointer-events: none;
  visibility: hidden;
}

.pet-result-card {
  align-items: center;
  border: 1px solid #eaecf0;
  border-radius: 17px;
  display: flex;
  height: 200px;
  justify-content: center;
  overflow: visible;
  position: relative;
  width: 200px;
}

.pet-result-image-frame {
  border: 1px solid #fff;
  border-radius: 16px;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.pet-result-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pet-rarity-badge {
  background: #f79009;
  border: 2px solid #fff;
  border-radius: 16px;
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  left: 50%;
  line-height: 24px;
  padding: 4px 10px;
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow:
    0 4px 8px -2.289px rgba(16, 24, 40, 0.06),
    0 2px 4px -2.289px rgba(16, 24, 40, 0.13);
}

#screenPowers h1 {
  font-size: 32px;
  line-height: 40px;
  margin: 24px 0 0;
  max-width: 628px;
  text-align: center;
}

.powers-subtitle {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 8px;
  text-align: center;
  width: 412px;
}

.powers-continue-btn {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  line-height: 24px;
  margin-top: 28px;
  min-width: 125px;
  padding: 12px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  width: 125px;
}

.powers-continue-btn.enabled:hover,
.powers-continue-btn.enabled:focus-visible {
  background: #1d2939;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.powers-continue-btn.enabled {
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
}

.attrs-screen {
  align-items: center;
  margin-top: 82px;
  max-width: 790px;
}

.attrs-layout {
  display: grid;
  gap: 112px;
  grid-template-columns: 430px 248px;
  width: 790px;
}

.attrs-main {
  text-align: left;
}

.attrs-main h1 {
  font-family: "Fraunces", serif;
  font-size: 32px;
  line-height: 40px;
  margin: 0;
}

.attrs-main > p {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin: 8px 0 0;
}

.attrs-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 32px;
  width: 430px;
}

.attr-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attr-row-top {
  display: flex;
  justify-content: space-between;
}

.attr-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 297px;
}

.attr-heading {
  align-items: center;
  display: flex;
  gap: 8px;
}

.attr-icon {
  display: block;
  height: 20px;
  width: 20px;
}

.attr-row h3 {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 19px;
  margin: 0;
}

.attr-info p {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  margin: 0;
}

.attr-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.attr-value {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  min-width: 24px;
  text-align: right;
}

.attr-delta {
  align-items: center;
  background: rgba(122, 90, 248, 0.12);
  border-radius: 999px;
  color: #6941c6;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  min-width: 34px;
  padding: 0 8px;
}

.attr-btn {
  align-items: center;
  background: transparent;
  border: 2px solid #101828;
  border-radius: 32px;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.attr-btn img {
  display: block;
  height: 20px;
  width: 20px;
}

.attr-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.attr-scale {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  height: 16px;
}

.attr-segment {
  background: #eaecf0;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
}

.attr-segment.first {
  border-bottom-left-radius: 16px;
  border-top-left-radius: 16px;
}

.attr-segment.last {
  border-bottom-right-radius: 16px;
  border-top-right-radius: 16px;
}

.attr-row[data-attr="stamina"] .attr-segment.filled {
  background: #f97066;
  border-color: #f04438;
}

.attr-row[data-attr="agility"] .attr-segment.filled {
  background: #53b1fd;
  border-color: #2e90fa;
}

.attr-row[data-attr="strength"] .attr-segment.filled {
  background: #9b8afb;
  border-color: #7a5af8;
}

.attr-row[data-attr="intelligence"] .attr-segment.filled {
  background: #f670c7;
  border-color: #ee46bc;
}

.attrs-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 248px;
}

.attrs-screen,
.attrs-list,
.attr-controls {
  touch-action: manipulation;
}

.attrs-pet-card {
  aspect-ratio: 1 / 1;
  border: 1px solid #eaecf0;
  border-radius: 17px;
  overflow: hidden;
  position: relative;
  width: 248px;
}

.attrs-pet-image-wrap {
  border: 1px solid #fff;
  border-radius: 16px;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.attrs-pet-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.attrs-pet-name {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-weight: 600;
  left: 50%;
  line-height: 20px;
  max-width: calc(100% - 132px);
  overflow: hidden;
  position: absolute;
  text-align: center;
  text-overflow: ellipsis;
  top: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.attrs-screen.is-upgrade-mode .attrs-pet-name,
.attrs-screen.is-upgrade-mode .attrs-upgrade-summary {
  display: none;
}

.attrs-pet-level,
.attrs-exp-label,
.attrs-exp-value {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  position: absolute;
}

.attrs-pet-level {
  left: 12px;
  top: 14px;
}

.attrs-pet-rarity {
  background: #f79009;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 8px -2.289px rgba(16, 24, 40, 0.06),
    0 2px 4px -2.289px rgba(16, 24, 40, 0.13);
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  padding: 4px 10px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.attrs-exp-label {
  bottom: 24px;
  left: 12px;
}

.attrs-exp-value {
  bottom: 24px;
  right: 12px;
}

.attrs-exp-track,
.attrs-exp-progress {
  border-radius: 4px;
  bottom: 12px;
  height: 8px;
  left: 12px;
  position: absolute;
}

.attrs-exp-track {
  background: #fff;
  border: 1px solid #eaecf0;
  right: 12px;
}

.attrs-exp-progress {
  background: #101828;
  width: 12px;
}

.attrs-side-panel {
  background: #f2f4f7;
  border: 1px solid #eaecf0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 8px 16px;
  text-align: left;
}

.attrs-upgrade-summary {
  background:
    linear-gradient(180deg, rgba(122, 90, 248, 0.08) 0%, rgba(122, 90, 248, 0.02) 100%),
    #fff;
  border: 1px solid rgba(122, 90, 248, 0.16);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.attrs-upgrade-summary-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  margin: 0;
}

.attrs-upgrade-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attrs-upgrade-summary-row {
  align-items: center;
  color: #475467;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 18px;
}

.attrs-upgrade-summary-row strong {
  color: #101828;
  font-size: 14px;
  font-weight: 700;
}

.attrs-upgrade-summary-empty {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.attrs-blocked {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.02) 0%, rgba(16, 24, 40, 0.05) 100%),
    #fff;
  border: 1px solid #d0d5dd;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.attrs-blocked h2 {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  margin: 0;
}

.attrs-blocked p {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  max-width: 520px;
}

.attrs-blocked-btn {
  align-self: flex-start;
}

 .attrs-points-card {
  align-items: center;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.attrs-points-card span {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.attrs-points-card strong {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
}

.attrs-hold-copy {
  padding: 0 8px;
  text-align: left;
}

.attrs-side-panel .attrs-hold-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
}

.attrs-hold-text {
  color: #475467;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 2px 0 0;
}

.attrs-rewards-btn {
  align-items: center;
  background: #101828;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 12px;
  height: 40px;
  justify-content: center;
  line-height: 24px;
  margin: 0 8px;
  padding: 8px 24px;
  width: 216px;
}

.attrs-rewards-icon {
  background-color: currentColor;
  display: block;
  height: 24px;
  mask-image: url("/assets/attrs-step/wallet.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("/assets/attrs-step/wallet.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  width: 24px;
}

.attrs-rewards-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.attrs-rewards-btn:disabled {
  background: #eaecf0;
  box-shadow: none;
  color: #98a2b3;
  cursor: not-allowed;
}

.attrs-rewards-tooltip {
  background: #101828;
  border-radius: 8px;
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  left: 50%;
  line-height: 16px;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.attrs-rewards-wrap:hover .attrs-rewards-tooltip,
.attrs-rewards-wrap:focus-within .attrs-rewards-tooltip {
  opacity: 1;
}

body.suppress-rewards-tooltip .attrs-rewards-wrap:hover .attrs-rewards-tooltip,
body.suppress-rewards-tooltip .attrs-rewards-wrap:focus-within .attrs-rewards-tooltip {
  opacity: 0;
}

.attrs-divider {
  background: #eaecf0;
  height: 1px;
  margin-top: 48px;
  width: 790px;
}

.attrs-continue-btn {
  align-items: center;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  margin-top: 24px;
  min-width: 125px;
  padding: 12px 24px;
  width: 125px;
}

.attrs-screen.is-upgrade-mode .attrs-continue-btn {
  min-width: 0;
  width: auto;
}

.attrs-continue-btn.enabled {
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
}

.success-screen {
  margin-top: 134px;
  max-width: 628px;
}

.success-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.success-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
  height: 400px;
  position: relative;
  width: 264px;
}

.success-card-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  left: 50%;
  line-height: 24px;
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.success-card-image-wrap {
  border-radius: 16px;
  height: 248px;
  left: 8px;
  position: absolute;
  top: 48px;
  width: 248px;
}

.success-card-image-wrap::before {
  border: 1px solid #eaecf0;
  border-radius: 16px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.success-card-image-wrap::after {
  border: 1px solid #fff;
  border-radius: 16px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

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

.success-card-level,
.success-card-exp-label,
.success-card-exp-value {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  position: absolute;
  z-index: 1;
}

.success-card-level {
  left: 12px;
  top: 14px;
}

.success-card-rarity {
  align-items: center;
  background: #f79009;
  border: 2px solid #fff;
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  line-height: 24px;
  min-width: 0;
  padding: 4px 12px;
  position: absolute;
  right: 8px;
  top: 8px;
  white-space: nowrap;
  z-index: 1;
}

.success-card-exp-label {
  left: 12px;
  top: 204px;
}

.success-card-exp-value {
  right: 12px;
  text-align: right;
  top: 204px;
}

.success-card-exp-track,
.success-card-exp-progress {
  border-radius: 4px;
  height: 8px;
  left: 12px;
  position: absolute;
  top: 228px;
}

.success-card-exp-track {
  background: #fff;
  border: 1px solid #eaecf0;
  width: 224px;
}

.success-card-exp-progress {
  background: #101828;
  width: 12px;
}

.success-card-stats {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 16px;
  position: absolute;
  top: 312px;
  width: 232px;
}

.success-card-stat {
  align-items: center;
  color: #101828;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  line-height: 20px;
}

.success-card-stat img {
  display: block;
  height: 20px;
  width: 20px;
}

.success-card-power {
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(255, 182, 215, 0.15) 0%,
    rgba(255, 60, 255, 0.15) 44.712%,
    rgba(68, 227, 255, 0.15) 100%
  );
  border-radius: 8px 8px 16px 16px;
  display: flex;
  gap: 8px;
  left: 8px;
  min-height: 48px;
  padding: 8px 12px;
  position: absolute;
  top: 344px;
  width: 248px;
}

.success-card-power-icon {
  display: block;
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.success-card .success-card-power-text {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  text-align: left;
  width: 100%;
}

.screen#screenSuccess > h1 {
  font-size: 32px;
  line-height: 40px;
  margin: 24px 0 0;
  max-width: 628px;
}

#screenSuccess > p {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 8px;
  max-width: 412px;
}

.success-dashboard-btn {
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  line-height: 24px;
  margin-top: 0;
  min-width: 186px;
  padding: 12px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  width: 186px;
}

.success-dashboard-btn:hover,
.success-dashboard-btn:focus-visible {
  background: #1d2939;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.success-share-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  color: #101828;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  min-width: 165px;
  padding: 0 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.success-share-btn img {
  display: block;
  height: 24px;
  width: 24px;
}

.success-share-btn:hover,
.success-share-btn:focus-visible {
  border-color: #98a2b3;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.success-share-btn:disabled {
  cursor: wait;
  opacity: 0.78;
}

body.share-modal-open {
  overflow: hidden;
}

/* === Withdraw modal === */
body.withdraw-modal-open {
  overflow: hidden;
}

@keyframes withdraw-pop {
  0% {
    transform: scale(0.95) translateY(6px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes withdraw-badge {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes withdraw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.withdraw-overlay {
  align-items: center;
  background: rgba(16, 24, 40, 0.6);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 95;
}

.withdraw-modal {
  animation: withdraw-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -16px rgba(16, 24, 40, 0.45);
  color: #101828;
  padding: 24px;
  position: relative;
  width: min(380px, calc(100vw - 32px));
}

.withdraw-header {
  align-items: center;
  display: flex;
  height: 32px;
  justify-content: center;
  position: relative;
}

.withdraw-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.withdraw-close {
  align-items: center;
  background: #eaecf0;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: background 0.15s;
  width: 32px;
}

.withdraw-close:hover {
  background: #dfe3ea;
}

.withdraw-balance {
  align-items: center;
  display: flex;
  height: 80px;
  justify-content: center;
  margin-top: 24px;
  overflow: hidden;
}

.withdraw-balance-value {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 80px;
}

.withdraw-input {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #d0d5dd;
  display: flex;
  gap: 8px;
  height: 48px;
  margin-top: 24px;
  padding: 0 14px;
}

.withdraw-input-field {
  background: transparent;
  border: none;
  color: #101828;
  flex: 1;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  min-width: 0;
  outline: none;
  padding: 0;
}

.withdraw-input-symbol {
  color: #98a2b3;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}

.withdraw-slider-block {
  margin-top: 22px;
}

.withdraw-slider-labels {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.withdraw-slider-labels span {
  color: #344054;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.withdraw-max {
  cursor: pointer;
  transition: color 0.15s;
}

.withdraw-max:hover {
  color: #101828;
}

.withdraw-slider {
  cursor: pointer;
  height: 20px;
  outline: none;
  position: relative;
  touch-action: none;
  width: 100%;
}

.withdraw-slider-track {
  background: #d0d5dd;
  border-radius: 2px;
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 9px;
}

.withdraw-slider-fill {
  background: #101828;
  border-radius: 2px;
  height: 2px;
  left: 0;
  position: absolute;
  top: 9px;
  width: 0;
}

.withdraw-slider-dots {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  position: absolute;
  right: 0;
  top: 7px;
}

.withdraw-slider-dots span {
  background: #101828;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.withdraw-slider-handle {
  background: #101828;
  border-radius: 50%;
  cursor: grab;
  height: 20px;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: transform 0.08s;
  width: 20px;
}

.withdraw-slider-handle:hover {
  transform: translateX(-50%) scale(1.12);
}

.withdraw-slider:active .withdraw-slider-handle {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.12);
}

.withdraw-submit {
  background: #101828;
  border: none;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  color: #fff;
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  line-height: 24px;
  margin-top: 24px;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
}

.withdraw-submit:hover {
  background: #1d2939;
}

.withdraw-view[data-view="success"] .withdraw-submit {
  margin-top: 28px;
}

.withdraw-fee {
  margin-top: 14px;
  text-align: center;
}

.withdraw-fee span {
  color: #344054;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.withdraw-error {
  color: #d92d20;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin-top: 12px;
  text-align: center;
}

.withdraw-solscan {
  color: #475467;
  display: block;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}

.withdraw-solscan:hover {
  color: #101828;
  text-decoration: underline;
}

.withdraw-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 28px 8px 8px;
  text-align: center;
}

.withdraw-success-badge {
  align-items: center;
  animation: withdraw-badge 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #101828;
  border-radius: 50%;
  display: flex;
  height: 80px;
  justify-content: center;
  width: 80px;
}

.withdraw-success-badge path {
  animation: withdraw-check 0.5s 0.18s ease forwards;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
}

.withdraw-success-title {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-top: 22px;
}

.withdraw-success-sub {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin-top: 14px;
}

.withdraw-success-amount {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin-top: 2px;
}

/* Admin-only clickable Points balance (Withdraw entry point) */
.dashboard-points.is-withdrawable {
  border-radius: 99px;
  cursor: pointer;
  margin: -4px -8px;
  padding: 4px 8px;
  transition: background 0.15s;
}

.dashboard-points.is-withdrawable:hover {
  background: rgba(16, 24, 40, 0.06);
}

.dashboard-points.is-withdrawable:focus-visible {
  background: rgba(16, 24, 40, 0.06);
  outline: 2px solid #101828;
  outline-offset: 2px;
}

.share-modal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 90;
}

.share-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
  overflow: hidden;
  padding: 16px 24px 24px;
  position: relative;
  width: min(448px, calc(100vw - 32px));
}

.share-modal-title {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0 48px 0 0;
}

.share-modal-close {
  align-items: center;
  background: #eaecf0;
  border: 0;
  border-radius: 999px;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 32px;
}

.share-modal-close img {
  display: block;
  height: 16px;
  width: 16px;
}

.share-modal-close:hover,
.share-modal-close:focus-visible {
  background: #d5d9e0;
  outline: none;
  transform: translateY(-1px);
}

.share-modal-preview-frame {
  aspect-ratio: 4 / 3;
  border: 0.5px solid #d0d5dd;
  margin-top: 20px;
  overflow: hidden;
  width: 100%;
}

.share-modal-preview-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.share-modal-text {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  margin: 16px 0 0;
  min-height: 66px;
  white-space: pre-line;
}

.share-modal-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.share-modal-copy-btn,
.share-modal-share-btn {
  align-items: center;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  min-width: 0;
  padding: 0 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.share-modal-copy-btn {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: #101828;
}

.share-modal-share-btn {
  background: #101828;
  border: 0;
  color: #fff;
}

.share-modal-copy-icon,
.share-modal-share-btn img {
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.share-modal-share-btn img {
  filter: brightness(0) invert(1);
}

.share-modal-copy-icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.share-modal-copy-btn:hover,
.share-modal-copy-btn:focus-visible {
  border-color: #98a2b3;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.share-modal-share-btn:hover,
.share-modal-share-btn:focus-visible {
  background: #1d2939;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.share-modal-copy-btn:disabled,
.share-modal-share-btn:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

#screenCabinet {
  align-items: stretch;
  margin-top: 96px;
  max-width: 1148px;
  text-align: left;
}

#screenArena {
  align-items: stretch;
  margin-top: 64px;
  max-width: 1680px;
  min-height: 760px;
  text-align: left;
  width: 100%;
}

#screenArena:has(.arena-battle.is-live-battle) {
  margin-top: 40px;
  max-width: 100%;
}

.cabinet-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.cabinet-header h1 {
  margin: 0;
}

.cabinet-header p {
  color: var(--gray-500);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 8px 0 0;
}

.cabinet-create-btn {
  flex: 0 0 auto;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  min-width: 172px;
  padding: 12px 20px;
}

.cabinet-create-btn.disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.cabinet-create-btn.disabled:hover,
.cabinet-create-btn.disabled:focus-visible {
  box-shadow: none;
  transform: none;
}

.cabinet-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(264px, 264px));
  justify-content: center;
  margin-top: 24px;
}

.cabinet-character {
  width: 264px;
}

.cabinet-success-card {
  height: 452px;
  margin: 0;
}

.cabinet-success-card .success-card-title {
  left: 20px;
  right: 52px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  transform: none;
  white-space: nowrap;
}

.cabinet-character--upgradeable .cabinet-success-card .success-card-title {
  right: 136px;
}

/* ⋯ context menu on cabinet cards (feature 014: burn) */
.cabinet-card-menu-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  z-index: 4;
}

.cabinet-card-menu-btn:hover,
.cabinet-card-menu-btn:focus-visible,
.cabinet-card-menu-btn.is-open {
  background: rgba(16, 24, 40, 0.06);
}

.cabinet-card-menu-btn__dots {
  align-items: center;
  display: inline-flex;
  gap: 3px;
}

.cabinet-card-menu-btn__dots i {
  background: #101828;
  border-radius: 50%;
  display: block;
  height: 4px;
  width: 4px;
}

.cabinet-card-menu {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
  min-width: 176px;
  overflow: hidden;
  padding: 4px;
  position: absolute;
  right: 10px;
  top: 42px;
  z-index: 5;
}

.cabinet-card-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  line-height: 20px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.cabinet-card-menu-item--danger {
  color: #d92d20;
}

.cabinet-card-menu-item__label {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
}

.cabinet-card-menu-item__label img {
  display: block;
  flex-shrink: 0;
}

.cabinet-card-menu-item--danger:hover,
.cabinet-card-menu-item--danger:focus-visible {
  background: #fef3f2;
}

.cabinet-card-menu-item__price {
  align-items: center;
  color: #101828;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 4px;
}

.cabinet-card-menu-item__price img {
  display: block;
  flex-shrink: 0;
}

/* Burn animation: the card chars bottom→top, 🔥 ride the burn line, then it fades */
.cabinet-character.is-burning {
  animation: cabinet-burn-fade 0.5s ease-in 2.4s forwards; /* delay is overridden inline from BURN_FX.RISE_MS */
  pointer-events: none;
}

.cabinet-burn-overlay {
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 6;
}

/* Clips the char columns to the card shape; flames live outside the clip so
   they can lick over the card edges. */
.cabinet-burn-overlay__clip {
  border-radius: inherit;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.cabinet-burn-strip {
  background: #0f0f12; /* solid: adjacent strips must merge into one char mass */
  bottom: 0;
  height: 0;
  position: absolute;
}

.cabinet-burn-strip::before {
  background: linear-gradient(
    90deg,
    rgba(255, 138, 20, 0.95),
    rgba(255, 72, 0, 0.75),
    rgba(255, 186, 51, 0.95)
  );
  content: "";
  filter: blur(2px);
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: -3px;
}

/* Warm charred tint just under the burn front */
.cabinet-burn-strip::after {
  background: linear-gradient(to bottom, rgba(64, 40, 22, 0.85), rgba(15, 15, 18, 0));
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cabinet-burn-overlay__flames {
  inset: 0;
  overflow: visible;
  position: absolute;
}

.cabinet-burn-flame {
  animation: cabinet-burn-flicker 0.7s ease-in-out infinite alternate;
  bottom: -9px;
  filter: drop-shadow(0 0 6px rgba(255, 120, 20, 0.8));
  line-height: 1;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.55s ease;
}

.cabinet-burn-overlay.is-burned-out .cabinet-burn-flame {
  opacity: 0;
}

@keyframes cabinet-burn-flicker {
  from {
    transform: translateX(-50%) translateY(1px) scale(0.92) rotate(-4deg);
  }
  to {
    transform: translateX(-50%) translateY(-3px) scale(1.08) rotate(4deg);
  }
}

@keyframes cabinet-burn-fade {
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* Burn FX Lab — dev tuning panel (?burnlab=1) */
.burnfx-lab {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
  display: flex;
  flex-direction: column;
  font-family: "Figtree", Arial, sans-serif;
  gap: 8px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 14px;
  position: fixed;
  right: 16px;
  top: 16px;
  width: 264px;
  z-index: 900;
}

.burnfx-lab__title {
  color: #101828;
  font-size: 15px;
  font-weight: 700;
}

.burnfx-lab__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.burnfx-lab__row input[type="range"] {
  width: 100%;
}

.burnfx-lab__head {
  color: #475467;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 16px;
}

.burnfx-lab__value {
  color: #101828;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.burnfx-lab__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.burnfx-lab__btn {
  background: #f2f4f7;
  border: 0;
  border-radius: 10px;
  color: #344054;
  cursor: pointer;
  flex: 1;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
}

.burnfx-lab__btn--primary {
  background: #d92d20;
  color: #fff;
}

.burnfx-lab__btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.burnfx-lab__dump {
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  color: #475467;
  font-size: 10px;
  line-height: 14px;
  margin: 0;
  padding: 8px;
  user-select: all;
  white-space: pre-wrap;
}

/* Burn confirmation modal */
.burn-modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 40, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

body.burn-modal-open {
  overflow: hidden;
}

.burn-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
  max-width: 360px;
  padding: 24px;
  width: 100%;
}

.burn-modal__title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.burn-modal__text {
  color: #475467;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 20px;
}

.burn-modal__actions {
  display: flex;
  gap: 12px;
}

.burn-modal__btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  padding: 12px 16px;
}

.burn-modal__btn--cancel {
  background: #f2f4f7;
  color: #344054;
}

.burn-modal__btn--confirm {
  background: #d92d20;
  color: #fff;
}

.burn-modal__btn--confirm:hover:not(:disabled),
.burn-modal__btn--confirm:focus-visible {
  background: #b42318;
}

.burn-modal__btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.cabinet-success-card .success-card-power {
  border-radius: 8px;
  bottom: 60px;
  min-height: 48px;
  top: auto;
}

.cabinet-success-card .success-card-stat img {
  height: 16px;
  width: 16px;
}

.cabinet-upgrade-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #039855;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  gap: 4px;
  justify-content: flex-start;
  line-height: 20px;
  min-width: 0;
  padding: 4px 0;
  position: absolute;
  right: 48px;
  top: 10px;
  z-index: 2;
}

.cabinet-upgrade-btn::before,
.cabinet-upgrade-btn::after {
  content: none;
}

.cabinet-upgrade-btn img {
  display: block;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.cabinet-upgrade-btn span {
  display: block;
}

.cabinet-upgrade-btn:hover,
.cabinet-upgrade-btn:focus-visible {
  color: #027a48;
  outline: none;
  opacity: 0.92;
}

.cabinet-fight-btn {
  align-items: center;
  background: #101828;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 12px;
  height: 40px;
  justify-content: center;
  left: 8px;
  padding: 0 24px;
  position: absolute;
  bottom: 8px;
  top: auto;
  width: 248px;
}

.cabinet-fight-btn img {
  display: block;
  height: 20px;
  width: 20px;
}

.cabinet-fight-tooltip-wrap {
  bottom: 8px;
  left: 8px;
  position: absolute;
  top: auto;
  width: 248px;
}

.cabinet-fight-tooltip-wrap .cabinet-fight-btn {
  bottom: auto;
  left: auto;
  position: relative;
  width: 100%;
}

.cabinet-fight-tooltip-wrap:focus-visible {
  outline: none;
}

.cabinet-action-tooltip {
  background: #101828;
  border-radius: 10px;
  color: #fff;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  left: 50%;
  line-height: 16px;
  max-width: 220px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  white-space: normal;
  width: max-content;
  z-index: 12;
}

.cabinet-action-tooltip::after {
  border-bottom: 6px solid #101828;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  bottom: 100%;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.cabinet-fight-tooltip-wrap:hover .cabinet-action-tooltip,
.cabinet-fight-tooltip-wrap:focus-visible .cabinet-action-tooltip,
.cabinet-fight-tooltip-wrap:focus-within .cabinet-action-tooltip {
  opacity: 1;
}

.cabinet-fight-btn.disabled,
.cabinet-fight-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.48;
}

.cabinet-fight-btn.is-loading,
.arena-start-btn.is-loading {
  cursor: wait;
}

.cabinet-fight-btn.is-loading:disabled,
.arena-start-btn.is-loading:disabled {
  opacity: 1;
}

.fight-btn-spinner {
  animation: fight-btn-spin 0.9s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  display: block;
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

/* Farm + Fight action row pinned to the bottom of a cabinet card (feature 013).
   Grid (not flex): two equal minmax(0,1fr) tracks guarantee identical widths
   regardless of each button's padding — flex-basis:0 can't shrink a button below
   its own padding, which is why the two differently-padded pills came out unequal. */
.cabinet-card-actions {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 248px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

/* Both buttons share the row equally; override the fight button's absolute layout */
.cabinet-card-actions .cabinet-fight-btn,
.cabinet-card-actions .cabinet-fight-tooltip-wrap {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
}

.cabinet-card-actions .cabinet-fight-tooltip-wrap .cabinet-fight-btn {
  width: 100%;
}

.cabinet-farm-btn {
  align-items: center;
  background: #eaecf0;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  box-sizing: border-box;
  color: #101828;
  cursor: pointer;
  display: flex;
  flex: 1 1 0;
  font-family: "Figtree", Arial, sans-serif;
  gap: 8px;
  height: 40px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0 14px;
  position: relative;
}

.cabinet-farm-btn__coin {
  align-items: center;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.cabinet-farm-btn__coin img {
  display: block;
  height: 24px;
  width: 24px;
}

.cabinet-farm-btn__coin--tick svg {
  display: block;
  height: 20px;
  width: 20px;
}

.cabinet-farm-btn__text {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  min-width: 0;
}

.cabinet-farm-btn__title {
  color: #101828;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.cabinet-farm-btn__sub {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}

/* Ready to claim — amber */
.cabinet-farm-btn--ready {
  background: #fec84b;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cabinet-farm-btn--ready .cabinet-farm-btn__sub {
  color: #93370d;
}

/* Claimed confirmation — green */
.cabinet-farm-btn--claimed {
  background: #d1fadf;
  border: 1px solid #6ce9a6;
  cursor: default;
}

.cabinet-farm-btn--claimed .cabinet-farm-btn__sub {
  color: #05603a;
}

/* Farming — a short amber arc runs along the pill contour. The element itself never
   moves; only the conic-gradient's start angle is animated via the registered
   @property --farm-ang (transform-rotate would clip a rectangular layer). An inner
   layer (inset 2px) covers the centre, so only a ~2px ring of the gradient shows. */
@property --farm-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.cabinet-farm-btn--farming {
  cursor: default;
  overflow: hidden;
  z-index: 0;
}

.cabinet-farm-btn--farming::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--farm-ang),
    rgba(247, 144, 9, 0) 0deg,
    rgba(247, 144, 9, 0) 250deg,
    #f79009 330deg,
    #f79009 360deg
  );
  animation: cabinet-farm-orbit 1.1s linear infinite;
}

.cabinet-farm-btn--farming::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 99px;
  background: #eaecf0;
}

/* The Points coin gently pulses while farming */
.cabinet-farm-btn--farming .cabinet-farm-btn__coin {
  animation: cabinet-coin-pulse 1.2s ease-in-out infinite;
}

.cabinet-farm-btn.is-busy {
  cursor: wait;
  opacity: 0.6;
}

.cabinet-farm-btn:disabled {
  box-shadow: none;
}

@keyframes cabinet-farm-orbit {
  to {
    --farm-ang: 360deg;
  }
}

@keyframes cabinet-coin-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

@keyframes cabinet-upgrade-glow {
  0%,
  100% {
    filter: saturate(1);
    transform: translate3d(0, 0, 0);
  }

  45% {
    box-shadow:
      0 20px 34px -14px rgba(105, 65, 198, 0.94),
      0 0 0 2px rgba(255, 255, 255, 0.28) inset;
    filter: saturate(1.12);
  }
}

.arena-shell {
  min-height: 760px;
  position: relative;
  width: 100%;
}

.arena-layout {
  align-items: flex-start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.arena-layout.is-history-only,
.arena-layout.is-replay-view {
  grid-template-columns: minmax(0, 1fr);
}

.arena-layout.is-history-only .arena-history-panel {
  margin-top: 32px;
  min-height: 0;
  position: static;
  top: auto;
}

.arena-replay-banner {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 135, 0.32), transparent 42%),
    linear-gradient(135deg, #101828 0%, #1d2939 100%);
  border-radius: 24px;
  box-shadow: 0 26px 48px -18px rgba(16, 24, 40, 0.34);
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px 24px;
}

.arena-replay-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arena-replay-banner-eyebrow,
.arena-panel-eyebrow,
.arena-history-panel-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.arena-panel-eyebrow,
.arena-history-panel-eyebrow {
  color: #344054;
}

.arena-replay-banner-title {
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  margin: 0;
}

.arena-panel {
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding: 32px;
}

.arena-panel-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arena-panel-copy h1 {
  margin: 0;
}

.arena-panel-copy p {
  color: var(--gray-500);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 8px 0 0;
  max-width: 420px;
}

.arena-secondary-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #101828;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.arena-secondary-btn:hover,
.arena-secondary-btn:focus-visible {
  border-color: #101828;
  box-shadow: 0 10px 24px -18px rgba(16, 24, 40, 0.28);
  transform: translateY(-1px);
}

.arena-start-btn {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-top: 0;
  min-width: 172px;
  padding: 12px 20px;
}

.arena-start-btn.disabled,
.arena-start-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.48;
}

.arena-battle {
  min-height: 760px;
  position: relative;
  width: 100%;
}

.arena-history-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 250, 0.96) 100%);
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 28px;
  box-shadow: 0 32px 64px -20px rgba(16, 24, 40, 0.16);
  margin-top: 32px;
  min-height: 760px;
  overflow: hidden;
  padding: 24px;
  position: sticky;
  top: 24px;
}

.arena-history-panel-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.arena-history-panel-head h2 {
  margin: 6px 0 0;
}

.arena-history-panel-copy {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  margin: 10px 0 0;
}

.arena-history-feedback {
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  border-radius: 20px;
  color: #475467;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 15px;
  line-height: 24px;
  margin-top: 20px;
  padding: 18px 20px;
}

.arena-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.arena-history-card {
  background:
    radial-gradient(circle at top right, rgba(253, 176, 34, 0.18), transparent 38%),
    #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  width: 100%;
}

.arena-history-card:hover,
.arena-history-card:focus-visible {
  border-color: rgba(16, 24, 40, 0.18);
  box-shadow: 0 24px 42px -28px rgba(16, 24, 40, 0.28);
  transform: translateY(-1px);
}

.arena-history-card-topline,
.arena-history-card-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.arena-history-card-outcome,
.arena-history-card-role,
.arena-history-card-meta {
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arena-history-card-outcome {
  border-radius: 999px;
  padding: 6px 10px;
}

.arena-history-card-outcome--win {
  background: rgba(18, 183, 106, 0.12);
  color: #067647;
}

.arena-history-card-outcome--loss {
  background: rgba(240, 68, 56, 0.12);
  color: #b42318;
}

.arena-history-card-role {
  color: #667085;
}

.arena-history-card-fighters {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.arena-history-fighter {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.arena-history-fighter--opponent {
  justify-content: flex-end;
  text-align: right;
}

.arena-history-fighter-image {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  display: block;
  flex: 0 0 56px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.arena-history-fighter-copy {
  min-width: 0;
}

.arena-history-fighter-name {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 17px;
  line-height: 22px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-history-fighter-meta {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 0;
}

.arena-history-versus-pill {
  align-items: center;
  background: #101828;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 0 10px;
}

.arena-history-card-summary {
  color: #475467;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
}

.arena-history-card-meta {
  color: #98a2b3;
}

.arena-history-load-more {
  margin-top: 18px;
  width: 100%;
}

.arena-stage-title {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  align-items: flex-end;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  line-height: 40px;
  margin: 0;
  text-align: center;
  width: 100%;
}

.arena-stage-title-text {
  display: block;
}

.arena-stage-title-mobile {
  display: block;
  width: 100%;
}

.arena-stage-dots {
  align-items: flex-end;
  display: inline-flex;
  gap: 4px;
  justify-content: flex-start;
  min-width: 28px;
  padding-bottom: 5px;
}

.arena-stage-dots span {
  animation: arena-stage-dot 1.2s infinite ease-in-out;
  background: currentColor;
  border-radius: 50%;
  display: block;
  flex: 0 0 4px;
  height: 4px;
  opacity: 0.2;
  width: 4px;
}

.arena-stage-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.arena-stage-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.arena-roulette {
  height: 280px;
  left: 50%;
  max-width: 1816px;
  overflow: hidden;
  position: absolute;
  top: 152px;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(1816px, calc(100vw + 88px));
}

.arena-roulette::before,
.arena-roulette::after {
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  width: clamp(72px, 8vw, 164px);
  z-index: 2;
}

.arena-roulette::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(247, 248, 250, 0.92) 44%, rgba(247, 248, 250, 0) 100%);
}

.arena-roulette::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(247, 248, 250, 0.92) 44%, rgba(247, 248, 250, 0) 100%);
}

.arena-roulette.is-fading-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

.arena-roulette-track {
  align-items: center;
  display: flex;
  gap: 24px;
  left: 0;
  position: absolute;
  top: 60px;
  will-change: transform;
  z-index: 1;
}

.arena-roulette-thumb {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 16px;
  flex: 0 0 160px;
  height: 160px;
  overflow: hidden;
  width: 160px;
}

.arena-roulette-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.5s ease;
  width: 100%;
}

.arena-roulette-thumb.is-selected img {
  transform: scale(1.02);
}

.arena-roulette.is-settled .arena-roulette-thumb {
  background: #eaecf0;
}

.arena-roulette.is-settled .arena-roulette-thumb img {
  filter: grayscale(1);
  opacity: 0;
  transform: scale(0.96);
}

.arena-roulette-focus {
  height: 280px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: 280px;
  z-index: 3;
}

.arena-roulette-focus.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px) scale(0.92);
}

.arena-roulette-focus-frame {
  background: #fff;
  border: 2px solid #101828;
  border-radius: 32px;
  inset: 0;
  position: absolute;
}

.arena-roulette-focus-image {
  border: 1px solid #fff;
  border-radius: 16px;
  display: block;
  height: 248px;
  left: 16px;
  object-fit: cover;
  position: absolute;
  top: 16px;
  width: 248px;
}

.arena-focus-card {
  left: 50%;
  position: absolute;
  top: 154px;
  transform: translateX(-50%);
}

.arena-focus-card:not(.hidden) .arena-card {
  animation: arena-focus-reveal 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-card {
  height: 399px;
  margin: 0;
  width: 264px;
}

.arena-card .success-card-stat img {
  height: 16px;
  width: 16px;
}

.arena-card .success-card-power {
  top: 343px;
}

.arena-versus {
  height: 560px;
  inset: 138px 0 0;
  position: absolute;
}

.arena-versus-card {
  left: 50%;
  position: absolute;
  top: 88px;
  transition: opacity 0.5s ease, transform 0.95s cubic-bezier(0.2, 0.9, 0.24, 1);
  width: 264px;
}

.arena-versus-card .arena-card {
  margin: 0;
}

.arena-versus-card-opponent {
  transform: translateX(-50%);
  z-index: 2;
}

.arena-versus-card-player {
  opacity: 0;
  transform: translateX(-50%) translateY(96px) scale(0.92);
  z-index: 1;
}

.arena-versus-loader {
  height: 64px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 112px;
  transform: translateX(-50%) scale(0.82);
  transition: opacity 0.42s ease 0.12s, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  width: 64px;
}

.arena-versus-loader-glyph {
  animation: arena-loader-spin 1.6s linear infinite;
  display: block;
  height: 64px;
  width: 64px;
}

.arena-versus.is-revealed .arena-versus-card-opponent {
  transform: translateX(calc(-50% + 246px)) translateY(-72px) rotate(15deg);
}

.arena-versus.is-revealed .arena-versus-card-player {
  opacity: 1;
  transform: translateX(calc(-50% - 246px)) translateY(-140px) rotate(-15deg);
}

.arena-versus.is-revealed .arena-versus-loader {
  opacity: 1;
  transform: translate(-50%, -40px) scale(1);
}

.arena-battle.is-live-battle {
  min-height: 980px;
}

.arena-battle.is-live-battle .arena-stage-title,
.arena-battle.is-live-battle .arena-roulette,
.arena-battle.is-live-battle .arena-focus-card,
.arena-battle.is-live-battle .arena-versus {
  display: none !important;
}

.arena-live-battle {
  min-height: 980px;
  width: 100%;
}

.arena-live-shell {
  margin: 0 auto;
  min-height: 980px;
  position: relative;
  width: 1328px;
}

.arena-live-overview,
.arena-live-controls,
.arena-live-result-layer,
.arena-live-rounds,
.arena-live-stage-card {
  will-change: transform, opacity;
}

.arena-live-shell.is-entering .arena-live-overview,
.arena-live-shell.is-entering .arena-live-controls,
.arena-live-shell.is-entering .arena-live-rounds {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.42s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-live-shell.is-entering.is-landing .arena-live-overview,
.arena-live-shell.is-entering.is-landing .arena-live-controls,
.arena-live-shell.is-entering.is-landing .arena-live-rounds {
  opacity: 1;
  transform: translateY(0);
}

.arena-live-overview {
  align-items: flex-start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  position: relative;
  top: 24px;
  width: 100%;
}

.arena-live-overview-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arena-live-overview-copy {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.arena-live-overview-side--opponent .arena-live-overview-copy {
  align-items: flex-end;
}

.arena-live-overview-name {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  margin: 0;
}

.arena-live-overview-hp {
  color: #027a48;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin: 0;
}

.arena-live-overview-track {
  background: #eaecf0;
  border-radius: 99px;
  height: 20px;
  overflow: visible;
  position: relative;
  width: 100%;
}

.arena-live-overview-fill {
  background: #12b76a;
  border-radius: 99px;
  display: block;
  height: 20px;
  position: absolute;
  top: 0;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-live-overview-fill::after {
  border: 2px solid #f9fafb;
  border-radius: 99px;
  box-sizing: border-box;
  content: "";
  inset: -2px;
  pointer-events: none;
  position: absolute;
}

.arena-live-overview-fill--initiator {
  left: 0;
}

.arena-live-overview-fill--opponent {
  right: 0;
}

.arena-live-round-indicator {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
}

.arena-live-battle .arena-live-round-value {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 44px;
  margin: 0;
  opacity: 1;
  text-align: center;
}

.arena-live-battle .arena-live-round-label {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  margin: 0;
  opacity: 1;
  text-align: center;
}

.arena-live-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  position: relative;
  top: 24px;
}

.arena-live-skip-btn {
  align-items: center;
  appearance: none;
  background: #101828;
  border: 0;
  border-radius: 42px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  margin: 0;
  min-width: 108px;
  padding: 0 20px;
  width: fit-content;
}

.arena-live-result-layer {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(24px);
  transition:
    opacity 0.42s ease,
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 6;
}

.arena-live-result-title,
.arena-live-result-reward {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  position: absolute;
}

.arena-live-battle .arena-live-result-title--winner {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 600;
  align-items: flex-end;
  left: 320px;
  line-height: 40px;
  margin: 0;
  text-align: right;
  top: 82px;
  width: 110px;
}

.arena-live-battle .arena-live-result-title--loser {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  align-items: flex-start;
  line-height: 32px;
  left: 875px;
  margin: 0;
  text-align: left;
  top: 307px;
  width: 75px;
}

.arena-live-result-reward--winner {
  align-items: flex-end;
  gap: 8px;
  left: 263px;
  text-align: right;
  top: 134px;
  width: 167px;
}

.arena-live-result-reward--loser {
  align-items: flex-start;
  gap: 0;
  left: 875px;
  text-align: left;
  top: 347px;
  width: 94px;
}

.arena-live-result-exp {
  font-family: "Figtree", Arial, sans-serif;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  width: 100%;
}

.arena-live-battle .arena-live-result-exp--winner {
  color: #039855;
  font-size: 36px;
  line-height: 44px;
}

.arena-live-result-exp--loser {
  color: #98a2b3;
  font-size: 24px;
  line-height: 32px;
}

.arena-live-result-pill {
  align-items: center;
  background: #d1fadf;
  border-radius: 4px;
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  padding: 2px 8px 2px 6px;
}

.arena-live-result-pill-icon {
  display: block;
  height: 12px;
  width: 12px;
}

.arena-live-result-pill-text {
  color: #039855;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
}

.arena-live-result-trophy-stack {
  height: 340px;
  left: 294px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 169px;
  transform: scale(1.2);
  transform-origin: center center;
  width: 337px;
}

.arena-live-result-trophy {
  display: block;
  position: absolute;
}

.arena-live-result-trophy--composite {
  height: 340px;
  inset: 0;
  width: 337px;
}

.arena-live-result-cta {
  align-items: center;
  background: #eaecf0;
  border-radius: 8px;
  display: flex;
  gap: 25px;
  justify-content: center;
  left: 50%;
  padding: 12px;
  position: absolute;
  top: 484px;
  transform: translateX(-50%);
  width: max-content;
}

.arena-live-result-cta-label {
  color: #000000;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
}

.arena-live-result-cta-value {
  align-items: center;
  color: #039855;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 6px;
  line-height: 24px;
  margin: 0;
}

.arena-live-result-cta-icon {
  display: block;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

.arena-live-result-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 556px;
  transform: translateX(-50%);
}

.arena-live-result-btn {
  align-items: center;
  appearance: none;
  border-radius: 99px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  height: 48px;
  justify-content: center;
  padding: 0 24px;
  width: 165px;
}

.arena-live-result-btn--secondary {
  background: #fff;
  border: 1px solid #eaecf0;
  color: #101828;
}

.arena-live-result-btn--primary {
  background: #101828;
  border: 0;
  color: #fff;
}

.arena-live-result-btn img {
  display: block;
  height: 24px;
  width: 24px;
}

.arena-live-control-btn {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 42px;
  box-shadow: 0 12px 16px rgba(16, 24, 40, 0.08), 0 4px 6px rgba(16, 24, 40, 0.03);
  color: #101828;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.arena-live-control-btn img {
  display: block;
  height: 24px;
  width: 24px;
}

.arena-live-control-btn:hover,
.arena-live-control-btn:focus-visible {
  transform: translateY(-1px);
}

.arena-live-control-btn.is-paused {
  background: #eaecf0;
}

.arena-live-stage {
  margin-top: 55px;
  min-height: 620px;
  overflow: visible;
  position: relative;
  width: 100%;
}

.arena-live-stage-card {
  opacity: 1;
  position: absolute;
  top: -40px;
  transform-origin: top left;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease;
  width: 264px;
}

.arena-live-stage-card--initiator {
  left: 0;
}

.arena-live-stage-card--opponent {
  right: 0;
}

.arena-live-shell.is-entering .arena-live-stage-card--initiator {
  transform: translate3d(286px, -100px, 0) rotate(-15deg);
}

.arena-live-shell.is-entering .arena-live-stage-card--opponent {
  transform: translate3d(-286px, -32px, 0) rotate(15deg);
}

.arena-live-shell.is-entering.is-landing .arena-live-stage-card--initiator,
.arena-live-shell.is-entering.is-landing .arena-live-stage-card--opponent {
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.arena-live-sidecard {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
  height: 399px;
  position: relative;
  width: 264px;
}

.arena-live-sidecard-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  left: 50%;
  line-height: 24px;
  margin: 0;
  position: absolute;
  text-align: center;
  top: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.arena-live-sidecard-image-wrap {
  height: 248px;
  left: 8px;
  overflow: hidden;
  position: absolute;
  top: 48px;
  width: 248px;
}

.arena-live-sidecard-image {
  border: 1px solid #fff;
  border-radius: 16px;
  display: block;
  height: 248px;
  object-fit: cover;
  width: 248px;
}

.arena-live-sidecard-level,
.arena-live-sidecard-rarity {
  position: absolute;
  z-index: 1;
}

.arena-live-sidecard-level {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  left: 12px;
  line-height: 20px;
  top: 14px;
}

.arena-live-sidecard-rarity {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  line-height: 24px;
  padding: 4px 10px;
  right: 8px;
  top: 8px;
  white-space: nowrap;
}

.arena-live-sidecard-stats {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 16px;
  position: absolute;
  top: 312px;
  width: 232px;
}

.arena-live-sidecard-stat {
  align-items: center;
  color: #101828;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  line-height: 20px;
}

.arena-live-sidecard-stat img {
  display: block;
  height: 16px;
  width: 16px;
}

.arena-live-sidecard-power {
  align-items: flex-start;
  background: linear-gradient(
    90deg,
    rgba(255, 182, 215, 0.15) 0%,
    rgba(255, 60, 255, 0.15) 44.712%,
    rgba(68, 227, 255, 0.15) 100%
  );
  border-radius: 8px 8px 16px 16px;
  display: flex;
  gap: 8px;
  left: 8px;
  min-height: 48px;
  padding: 8px 12px;
  position: absolute;
  top: 343px;
  width: 248px;
}

.arena-live-sidecard-power-icon {
  display: block;
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.arena-live-sidecard-power-text {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  width: 100%;
}

.arena-live-rounds {
  margin: 0 auto;
  position: relative;
  padding-top: 26px;
  transition:
    height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  width: 520px;
}

.arena-live-round-card {
  left: 0;
  position: absolute;
  top: 0;
  transition:
    opacity 0.34s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  width: 520px;
}

.arena-live-round-card.is-hidden {
  pointer-events: none;
}

.arena-live-round-card.is-intro-entering .arena-live-round-main {
  animation: arena-round-first-appear 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.arena-live-round-card.is-intro-entering .arena-live-round-accent {
  animation: arena-round-first-accent-appear 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.arena-live-round-main {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
  min-height: 132px;
  padding: 8px 12px 16px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  width: 520px;
}

.arena-live-round-card.is-current .arena-live-round-main {
  border: 2px solid #101828;
}

.arena-live-round-head {
  align-items: center;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  justify-content: space-between;
  padding: 2px 0 10px;
}

.arena-live-round-icon-slot {
  align-items: center;
  display: flex;
}

.arena-live-round-icon-slot--right {
  justify-content: flex-end;
}

.arena-live-round-icon-slot img {
  display: block;
  height: 32px;
  width: 32px;
}

.arena-live-round-pill {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  padding: 4px;
}

.arena-live-round-pill-ornament {
  display: block;
  flex: 0 0 31px;
  height: 20px;
  width: 31px;
}

.arena-live-battle .arena-live-round-pill-label {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 22px;
  text-transform: uppercase;
}

.arena-live-round-body {
  padding: 16px 4px 0;
}

.arena-live-battle .arena-live-round-body p {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 44px;
  line-height: 22px;
  margin: 0;
  text-align: center;
}

.arena-live-round-card.is-typing .arena-live-round-text::after {
  animation: arena-round-caret 0.9s steps(1, end) infinite;
  color: #101828;
  content: "|";
  margin-left: 2px;
}

.arena-live-round-accent {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  position: absolute;
  top: 51px;
  width: 93px;
}

.arena-live-round-accent--left {
  align-items: flex-end;
  --arena-damage-tilt: -16deg;
  left: -73px;
  text-align: right;
  transform: rotate(12deg);
}

.arena-live-round-accent--right {
  align-items: flex-start;
  --arena-damage-tilt: 16deg;
  right: -73px;
  text-align: left;
  transform: rotate(-12deg);
}

.arena-live-round-damage-line {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: -8px;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(2.15) rotate(var(--arena-damage-tilt, 0deg));
  transform-origin: center center;
}

.arena-live-round-damage-line.is-visible {
  animation: arena-damage-stamp 0.62s cubic-bezier(0.18, 1.18, 0.32, 1) both;
  opacity: 1;
  transform: scale(1);
}

.arena-live-battle .arena-live-round-damage,
.arena-live-battle .arena-live-round-note-text {
  display: inline-grid;
  isolation: isolate;
  position: relative;
}

.arena-live-battle .arena-live-round-damage > span,
.arena-live-battle .arena-live-round-note-text > span {
  grid-area: 1 / 1;
}

.arena-live-battle .arena-live-round-text-shadow {
  position: relative;
  z-index: 0;
}

.arena-live-battle .arena-live-round-text-face {
  position: relative;
  z-index: 1;
}

.arena-live-battle .arena-live-round-damage {
  margin: 0;
  white-space: nowrap;
}

.arena-live-battle .arena-live-round-damage .arena-live-round-text-shadow,
.arena-live-battle .arena-live-round-damage .arena-live-round-text-face {
  color: #f04438;
  font-family: "Bangers", cursive;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  white-space: nowrap;
}

.arena-live-battle .arena-live-round-damage .arena-live-round-text-shadow {
  filter: drop-shadow(0 4px 6px rgba(16, 24, 40, 0.09)) drop-shadow(0 12px 16px rgba(16, 24, 40, 0.24));
}

.arena-live-round-skull {
  display: block;
  height: 20px;
  width: 20px;
}

.arena-live-round-note {
  margin-bottom: -8px;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.22s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.arena-live-round-note.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.arena-live-stage-card.is-hit .arena-live-sidecard {
  animation-duration: 0.72s;
  animation-fill-mode: both;
  animation-timing-function: linear;
}

.arena-live-stage-card--initiator.is-hit .arena-live-sidecard {
  animation-name: arena-sidecard-hit-left;
}

.arena-live-stage-card--opponent.is-hit .arena-live-sidecard {
  animation-name: arena-sidecard-hit-right;
}

.arena-live-round-accent--right .arena-live-round-note {
  padding-left: 28px;
  transform: rotate(6deg);
}

.arena-live-round-accent--left .arena-live-round-note {
  padding-right: 28px;
  transform: rotate(-6deg);
}

.arena-live-battle .arena-live-round-note-text .arena-live-round-text-shadow,
.arena-live-battle .arena-live-round-note-text .arena-live-round-text-face {
  color: #039855;
  font-family: "Bangers", cursive;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  white-space: nowrap;
}

.arena-live-battle .arena-live-round-note-text .arena-live-round-text-shadow {
  filter: drop-shadow(0 2px 4px rgba(16, 24, 40, 0.06)) drop-shadow(0 4px 8px rgba(16, 24, 40, 0.1));
}

.arena-live-battle .arena-live-overview-name,
.arena-live-battle .arena-live-overview-hp,
.arena-live-battle .arena-live-sidecard-title,
.arena-live-battle .arena-live-sidecard-level,
.arena-live-battle .arena-live-sidecard-stat,
.arena-live-battle .arena-live-sidecard-power-text {
  color: #101828;
}

.arena-live-battle .arena-live-overview-hp {
  color: #027a48;
}

.arena-live-shell.is-result-entering .arena-live-overview,
.arena-live-shell.is-result-entering .arena-live-controls,
.arena-live-shell.is-result-final .arena-live-overview,
.arena-live-shell.is-result-final .arena-live-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-28px);
  transition:
    opacity 0.32s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-result-layer,
.arena-live-shell.is-result-final .arena-live-result-layer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-result-trophy-stack {
  animation: arena-result-trophy-fade-in 0.4s ease 0.08s both;
}

.arena-live-shell.is-result-final .arena-live-result-trophy-stack {
  opacity: 1;
  transform: scale(1);
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-rounds,
.arena-live-shell.is-result-final .arena-live-rounds {
  transform: translateY(445px);
  width: 600px;
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-round-card,
.arena-live-shell.is-result-final .arena-live-round-card,
.arena-live-shell.is-result-entering.is-result-landing .arena-live-round-main,
.arena-live-shell.is-result-final .arena-live-round-main {
  width: 600px;
}

body.battle-preview-page--expanded-rounds .arena-live-rounds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  left: auto;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  position: relative;
  transform: none;
}

body.battle-preview-page--expanded-rounds .arena-live-round-card {
  left: auto;
  position: relative;
  top: auto;
  transform: none !important;
  width: 100%;
}

body.battle-preview-page--expanded-rounds .arena-live-round-main {
  width: 100%;
}

body.battle-preview-page--expanded-rounds .arena-live-round-card.is-hidden {
  display: none;
}

body.battle-mobile-result-preview-page--expanded-rounds .arena-live-rounds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto !important;
  left: 50% !important;
  margin: 0;
  padding-top: 0;
  position: absolute;
  transform: translateX(-50%) translateY(329px) !important;
  width: 296px !important;
}

body.battle-mobile-result-preview-page--expanded-rounds .arena-live-round-card {
  display: block;
  left: auto;
  opacity: 1 !important;
  position: relative;
  top: auto;
  transform: none !important;
  width: 100%;
  z-index: auto !important;
}

body.battle-mobile-result-preview-page--expanded-rounds .arena-live-round-main {
  width: 100%;
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-winner,
.arena-live-shell.is-result-final .arena-live-stage-card.is-result-winner,
.arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-loser,
.arena-live-shell.is-result-final .arena-live-stage-card.is-result-loser {
  opacity: var(--arena-result-opacity, 1);
  transform: translate3d(var(--arena-result-x, 0), var(--arena-result-y, 0), 0)
    scale(var(--arena-result-scale, 1))
    rotate(var(--arena-result-rotate, 0deg));
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-winner,
.arena-live-shell.is-result-final .arena-live-stage-card.is-result-winner {
  z-index: 4;
}

.arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-loser,
.arena-live-shell.is-result-final .arena-live-stage-card.is-result-loser {
  z-index: 3;
}

@keyframes arena-focus-reveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.88);
  }

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

@keyframes arena-mobile-versus-opponent-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arena-mobile-versus-player-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arena-mobile-versus-loader-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fight-btn-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes arena-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes arena-stage-dot {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes arena-round-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes arena-round-first-appear {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 34px, 0) scale(0.82);
  }

  58% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -6px, 0) scale(1.03);
  }

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

@keyframes arena-round-first-accent-appear {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes arena-damage-stamp {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(2.15) rotate(var(--arena-damage-tilt, 0deg));
  }

  48% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(0.9) rotate(calc(var(--arena-damage-tilt, 0deg) * 0.18));
  }

  72% {
    transform: translate3d(0, 1px, 0) scale(1.08) rotate(calc(var(--arena-damage-tilt, 0deg) * 0.08));
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@keyframes arena-result-trophy-fade-in {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes arena-sidecard-hit-left {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  10% {
    transform: translate3d(18px, 0, 0) rotate(2.3deg);
  }

  20% {
    transform: translate3d(-14px, 0, 0) rotate(-1.8deg);
  }

  30% {
    transform: translate3d(12px, 0, 0) rotate(1.5deg);
  }

  40% {
    transform: translate3d(-10px, 0, 0) rotate(-1.2deg);
  }

  50% {
    transform: translate3d(8px, 0, 0) rotate(0.95deg);
  }

  60% {
    transform: translate3d(-7px, 0, 0) rotate(-0.78deg);
  }

  70% {
    transform: translate3d(5px, 0, 0) rotate(0.55deg);
  }

  82% {
    transform: translate3d(-3px, 0, 0) rotate(-0.3deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes arena-sidecard-hit-right {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  10% {
    transform: translate3d(-18px, 0, 0) rotate(-2.3deg);
  }

  20% {
    transform: translate3d(14px, 0, 0) rotate(1.8deg);
  }

  30% {
    transform: translate3d(-12px, 0, 0) rotate(-1.5deg);
  }

  40% {
    transform: translate3d(10px, 0, 0) rotate(1.2deg);
  }

  50% {
    transform: translate3d(-8px, 0, 0) rotate(-0.95deg);
  }

  60% {
    transform: translate3d(7px, 0, 0) rotate(0.78deg);
  }

  70% {
    transform: translate3d(-5px, 0, 0) rotate(-0.55deg);
  }

  82% {
    transform: translate3d(3px, 0, 0) rotate(0.3deg);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

.cabinet-empty {
  color: var(--gray-500);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

#screenAdmin {
  align-items: stretch;
  margin-top: 96px;
  max-width: 1280px;
  text-align: left;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.admin-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.admin-header h1 {
  margin: 0;
}

.admin-header p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 24px;
  margin: 8px 0 0;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-nav {
  align-items: center;
  background: #eaecf0;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  width: fit-content;
}

.admin-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  min-width: 104px;
  padding: 0 16px;
}

.admin-nav-btn.active {
  background: #fff;
  border-color: var(--gray-300);
}

.admin-nav-btn:hover,
.admin-nav-btn:focus-visible {
  outline: none;
}

.admin-secondary-btn {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.admin-secondary-btn:hover,
.admin-secondary-btn:focus-visible {
  background: #f9fafb;
  border-color: var(--gray-400);
  outline: none;
}

.admin-search input {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  color: var(--gray-900);
  font-size: 15px;
  height: 52px;
  padding: 0 18px;
  width: min(420px, 100%);
}

.admin-search input:focus {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 4px rgba(16, 24, 40, 0.08);
  outline: none;
}

.admin-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  min-height: 96px;
  padding: 18px;
}

.admin-stat-label {
  color: var(--gray-500);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
}

.admin-stat-value {
  color: var(--gray-900);
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  margin-top: 10px;
}

#adminRarityCommon {
  color: #667085;
}

#adminRarityRare {
  color: #0ba5ec;
}

#adminRarityEpic {
  color: #7a5af8;
}

#adminRarityLegendary {
  color: #f79009;
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 960px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  line-height: 20px;
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f9fafb;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-character-cell {
  min-width: 240px;
}

.admin-character-cell,
.admin-character-summary {
  align-items: center;
  display: flex;
  gap: 14px;
}

.admin-character-summary {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.admin-character-summary strong {
  color: var(--gray-900);
}

.admin-character-summary span {
  color: var(--gray-500);
}

.admin-rarity-text {
  font-weight: 700;
}

.admin-character-progression {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
}

.admin-character-thumb {
  background: #f2f4f7;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  cursor: zoom-in;
  display: block;
  flex: 0 0 56px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.admin-character-thumb:focus-visible {
  box-shadow: 0 0 0 4px rgba(16, 24, 40, 0.08);
  outline: none;
}

.admin-wallet-cell {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  min-width: 290px;
  word-break: break-all;
}

.admin-wallet-btn {
  background: transparent;
  border: 0;
  color: #155eef;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(21, 94, 239, 0.28);
  text-underline-offset: 3px;
  word-break: break-all;
}

.admin-wallet-btn:hover,
.admin-wallet-btn:focus-visible {
  color: #004ee4;
  outline: none;
  text-decoration-color: currentColor;
}

.admin-battle-matchup-cell {
  min-width: 340px;
}

.admin-battle-matchup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-battle-participant {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-battle-participant strong {
  color: var(--gray-900);
}

.admin-battle-participant-meta,
.admin-battle-id,
.admin-battle-versus {
  color: var(--gray-500);
  font-size: 12px;
  line-height: 18px;
}

.admin-battle-versus {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-battle-id {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  word-break: break-all;
}

.admin-battle-link {
  color: #004ee4;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-battle-link:hover,
.admin-battle-link:focus-visible {
  color: #00359e;
  outline: none;
}

.admin-battle-winner-cell {
  font-weight: 700;
}

.admin-battle-mode-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  min-height: 28px;
  padding: 5px 10px;
}

.admin-battle-mode-badge--ai {
  background: #eef4ff;
  color: #3538cd;
}

.admin-battle-mode-badge--template {
  background: #f2f4f7;
  color: #344054;
}

.admin-action-stack {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-detail-btn {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  min-width: 88px;
  padding: 0 16px;
}

.admin-detail-btn:hover,
.admin-detail-btn:focus-visible {
  background: #f9fafb;
  border-color: var(--gray-400);
  outline: none;
}

.admin-delete-btn {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 999px;
  color: #b42318;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  min-width: 96px;
  padding: 0 16px;
}

.admin-delete-btn:hover,
.admin-delete-btn:focus-visible {
  background: #fee4e2;
  outline: none;
}

.admin-delete-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.admin-empty {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.admin-pagination {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-pagination-info {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.admin-pagination-actions {
  display: flex;
  gap: 10px;
}

.admin-pagination-btn {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  min-width: 98px;
  padding: 0 16px;
}

.admin-pagination-btn:hover,
.admin-pagination-btn:focus-visible {
  background: #f9fafb;
  border-color: var(--gray-400);
  outline: none;
}

.admin-pagination-btn:disabled {
  color: var(--gray-400);
  cursor: default;
}

.admin-pagination-btn:disabled:hover,
.admin-pagination-btn:disabled:focus-visible {
  background: #fff;
  border-color: var(--gray-300);
}

.admin-details-row td {
  background: #f9fafb;
}

.admin-details-cell {
  padding: 0 !important;
}

.admin-details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
}

.admin-details-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 18px;
}

.admin-details-card h3 {
  color: var(--gray-900);
  font-size: 15px;
  line-height: 22px;
  margin: 0 0 14px;
}

.admin-details-card-wide {
  grid-column: 1 / -1;
}

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

.admin-info-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-info-label {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
}

.admin-info-value {
  color: var(--gray-900);
  font-size: 14px;
  line-height: 20px;
  word-break: break-word;
}

.admin-lightbox {
  align-items: center;
  background: rgba(16, 24, 40, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 140;
}

.admin-lightbox-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(720px, calc(100vw - 48px));
  position: relative;
  width: 100%;
}

.admin-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: -8px;
  width: 36px;
}

.admin-lightbox-close:hover,
.admin-lightbox-close:focus-visible {
  background: #fff;
  outline: none;
}

.admin-lightbox-image {
  background: #fff;
  border-radius: 24px;
  display: block;
  max-height: min(80vh, 720px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
  /* Pet art is pixel art; the lightbox is the only place it is shown larger
     than its 512px source, so upscale without smoothing. */
  image-rendering: pixelated;
}

.admin-lightbox-caption {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  text-align: center;
}

.wallet-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.wallet-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.36);
  overflow: hidden;
  position: relative;
  width: min(360px, calc(100vw - 32px));
}

.wallet-panel {
  padding-top: 24px;
}

.wallet-title {
  color: var(--gray-900);
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
  padding: 0 40px 0 24px;
}

.wallet-list {
  margin-top: 16px;
  padding: 0 24px;
}

.wallet-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  display: flex;
  gap: 12px;
  height: 56px;
  padding: 0 8px;
  width: 100%;
}

.wallet-item:last-child {
  border-bottom: none;
}

.wallet-item:hover,
.wallet-item:focus-visible {
  background: #f7f8fa;
  outline: none;
}

.wallet-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.wallet-icon-image {
  display: block;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.wallet-name {
  color: var(--gray-900);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.wallet-detected {
  background: #ecfdf3;
  border: 1px solid #12b76a;
  border-radius: 4px;
  color: #12b76a;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  margin-left: auto;
  padding: 3px 7px;
}

.wallet-status {
  color: var(--gray-500);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin: 12px 24px 0;
  min-height: 20px;
}

.wallet-status.success {
  color: #12b76a;
}

.wallet-status.error {
  color: #b42318;
}

.wallet-close {
  align-items: center;
  background: var(--gray-200);
  border: 0;
  border-radius: 999px;
  color: #475467;
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
}

.wallet-close:hover,
.wallet-close:focus-visible {
  background: #d5d9e0;
  outline: none;
}

.logged-wallet {
  color: var(--gray-500);
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin: 12px 24px 0;
  word-break: break-all;
}

.modal-btn {
  margin: 16px 24px 24px;
  width: calc(100% - 48px);
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  body[data-page="dashboard"] {
    overflow-x: hidden;
  }

  .creation-page {
    --mobile-content-width: min(328px, calc(100vw - 32px));
    --mobile-upgrade-content-width: min(360px, calc(100vw - 32px));
    min-height: 852px;
    padding: 12px 16px 24px;
  }

  body[data-page="dashboard"] .creation-page {
    overflow-x: hidden;
  }

  .creation-page::before {
    background: var(--bg);
    content: "";
    height: 103px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 25;
  }

  body.success-screen-active {
    overflow: hidden;
  }

  body.success-screen-active .creation-page::before {
    display: none;
  }

  .topbar {
    left: 16px;
    position: fixed;
    right: 16px;
    top: 12px;
    z-index: 1000;
  }

  .brand img {
    width: 90.4px;
  }

  .wallet-menu {
    position: fixed;
    right: 16px;
    top: 56px;
    width: max-content;
  }

  .progress-wrap {
    position: fixed;
    top: 68px;
    width: calc(100vw - 32px);
    z-index: 30;
  }

  .screen {
    margin-top: 80px;
  }

  #screenType {
    margin-top: 172px;
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  #screenType h1 {
    font-size: 24px;
    line-height: 32px;
    margin-top: 24px;
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  #screenType > p {
    max-width: 278px;
  }

  #screenProcess {
    align-items: center;
    display: flex;
    justify-content: center;
    inset: 0;
    margin: 0;
    max-width: none;
    min-height: 100svh;
    padding: 244px 16px;
    position: fixed;
    width: auto;
    z-index: 10;
  }

  .process-card {
    height: 260px;
    margin-bottom: 32px;
    width: 260px;
  }

  .process-lottie {
    height: 260px;
    width: 260px;
  }

  .process-copy {
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  #screenProcess .process-copy > h1 {
    font-size: 24px;
    line-height: 32px;
    margin: 0;
    width: 100%;
  }

  #screenProcess .process-copy > p {
    font-family: "Figtree", Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    margin: 0;
    width: 100%;
  }

  .types-grid {
    margin-top: 24px;
    width: 100%;
  }

  .other-input-wrap {
    margin-top: 24px;
    width: 100%;
  }

  /* Растягиваем кнопку по краям вместо центрирования через transform: ховер
     ставит свой transform и снёс бы центрирование, уводя кнопку за экран.
     Заодно уходит горизонтальный скролл от 100vw, в которые входит полоса
     прокрутки. */
  .type-continue-btn {
    bottom: 24px;
    left: 16px;
    margin-top: 0;
    position: fixed;
    right: 16px;
    width: auto;
    z-index: 20;
  }

  .attrs-screen {
    align-items: stretch;
    margin-top: 0;
    max-width: 100%;
    padding: 119px 16px 234px;
  }

  .attrs-layout {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .attrs-side {
    gap: 0;
    order: -1;
    width: var(--mobile-content-width);
  }

  .attrs-pet-card {
    aspect-ratio: auto;
    background: #eaecf0;
    border: 0;
    border-radius: 16px;
    height: 124px;
    width: 100%;
  }

  .attrs-pet-image-wrap {
    box-shadow: 0 0 0 1px #eaecf0;
    border-radius: 8px;
    height: 108px;
    inset: 8px auto auto 8px;
    width: 108px;
  }

  .attrs-pet-level {
    font-size: 16px;
    left: 132px;
    line-height: 22px;
    top: 19px;
  }

  .attrs-pet-name {
    display: none;
  }

  .attrs-pet-rarity {
    font-size: 14px;
    line-height: 20px;
    padding: 4px 10px;
    right: 16px;
    top: 15px;
  }

  .attrs-exp-label,
  .attrs-exp-value {
    font-size: 14px;
    line-height: 20px;
  }

  .attrs-exp-label {
    left: 132px;
    top: 72px;
  }

  .attrs-exp-value {
    right: 16px;
    top: 72px;
  }

  .attrs-exp-track,
  .attrs-exp-progress {
    bottom: auto;
    left: 132px;
    top: 100px;
  }

  .attrs-exp-track {
    right: 16px;
  }

  .attrs-main {
    width: var(--mobile-content-width);
  }

  #screenAttrs .attrs-main h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .attrs-main > p {
    font-size: 16px;
    line-height: 22px;
    margin-top: 8px;
  }

  .attrs-screen.is-upgrade-mode {
    align-items: center;
    padding-bottom: 128px;
    padding-left: 0;
    padding-right: 0;
  }

  .attrs-screen.is-upgrade-mode .attrs-layout {
    align-items: stretch;
    margin: 0 auto;
    max-width: var(--mobile-upgrade-content-width);
    width: 100%;
  }

  .attrs-screen.is-upgrade-mode .attrs-main,
  .attrs-screen.is-upgrade-mode .attrs-side,
  .attrs-screen.is-upgrade-mode .attrs-pet-card {
    margin-inline: auto;
    max-width: var(--mobile-upgrade-content-width);
    width: 100%;
  }

  .attrs-list {
    gap: 40px;
    margin-top: 24px;
    width: 100%;
  }

  .attr-row-top {
    align-items: flex-start;
    gap: 12px;
  }

  .attrs-screen.is-upgrade-mode .attr-row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .attr-info {
    width: 225px;
  }

  .attrs-screen.is-upgrade-mode .attr-info {
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .attr-controls {
    align-self: flex-start;
  }

  .attrs-screen.is-upgrade-mode .attr-controls {
    align-self: flex-start;
    column-gap: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 42px minmax(24px, auto) 32px 32px;
    justify-content: end;
    justify-self: end;
  }

  .attrs-screen.is-upgrade-mode .attr-value {
    grid-column: 2;
  }

  .attrs-screen.is-upgrade-mode .attr-delta {
    grid-column: 1;
    min-width: 42px;
  }

  .attrs-screen.is-upgrade-mode .attr-delta.hidden {
    display: inline-flex !important;
    visibility: hidden;
  }

  .attrs-screen.is-upgrade-mode .attr-controls [data-action="minus"] {
    grid-column: 3;
  }

  .attrs-screen.is-upgrade-mode .attr-controls [data-action="plus"] {
    grid-column: 4;
  }

  .attr-row h3 {
    line-height: 19px;
  }

  .attr-info p {
    width: 256px;
  }

  .attrs-screen.is-upgrade-mode .attr-info p {
    width: auto;
  }

  .attr-row {
    gap: 14px;
    width: 100%;
  }

  .attr-scale {
    width: 100%;
  }

  .attrs-screen.is-upgrade-mode .attr-scale {
    gap: 2px;
  }

  .attrs-screen.is-upgrade-mode .attr-segment {
    min-width: 0;
  }

  .powers-grid {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
  }

  .power-card {
    align-items: center;
    display: grid;
    flex-basis: auto;
    gap: 12px;
    grid-template-columns: 20px minmax(0, 1fr);
    justify-content: stretch;
    min-height: 64px;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
  }

  .power-card-icon {
    flex: 0 0 20px;
    margin: 0;
  }

  .power-card p {
    font-size: 14px;
    line-height: 20px;
    max-width: 264px;
    text-wrap: wrap;
    width: 100%;
  }

  .screen h1 {
    font-size: 24px;
  }

  .screen#screenSuccess > h1 {
    font-size: 24px;
    line-height: 32px;
    margin: 24px 0 0;
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  #screenSuccess {
    margin-top: 0;
    max-width: 100%;
    min-height: 100svh;
    overflow: hidden;
    padding: 123px 16px 136px;
    position: relative;
    width: 100%;
  }

  .success-screen {
    align-items: center;
  }

  .success-card {
    flex: 0 0 auto;
  }

  #screenSuccess > p {
    font-size: 18px;
    line-height: 24px;
    margin-top: 8px;
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  .success-actions {
    bottom: 24px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 16px;
    margin-top: 0;
    position: fixed;
    right: 16px;
    z-index: 30;
  }

  .success-share-btn,
  .success-dashboard-btn {
    min-width: 0;
    width: 100%;
  }

  .success-share-btn {
    padding: 0 16px;
  }

  .success-share-btn img {
    height: 18px;
    width: 18px;
  }

  .success-dashboard-btn {
    padding: 12px 16px;
  }

  .success-share-btn:hover,
  .success-share-btn:focus-visible,
  .success-dashboard-btn:hover,
  .success-dashboard-btn:focus-visible {
    transform: translateY(-1px);
  }

  .share-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
  }

  .share-modal {
    margin: 80px 0 16px;
    padding: 16px;
    width: min(448px, calc(100vw - 32px));
  }

  .share-modal-title {
    margin-right: 44px;
  }

  .share-modal-preview-frame {
    margin-top: 16px;
  }

  .share-modal-text {
    min-height: 0;
  }

  .share-modal-actions {
    grid-template-columns: 1fr;
  }

  .share-modal-copy-btn,
  .share-modal-share-btn {
    padding: 0 20px;
  }

  #screenCabinet {
    margin-top: 0;
    max-width: 100%;
    padding: 123px 16px 112px;
  }

  #screenArena {
    margin-top: 0;
    max-width: 100%;
    min-height: auto;
    padding: 123px 16px 112px;
  }

  #screenArena:has(#arenaBattleState:not(.hidden)) {
    padding: 24px 16px 112px;
  }

  #screenArena:has(#arenaBattleState:not(.hidden)):has(.arena-battle.is-live-battle) {
    padding: 0 !important;
  }

  body[data-page="dashboard"] .creation-page:has(#arenaBattleState:not(.hidden))::before,
  body[data-page="dashboard"] .creation-page:has(.dashboard-topbar.is-battle-header)::before,
  body[data-page="dashboard"] .creation-page:has(.dashboard-topbar.is-arena-stage-header)::before {
    height: 56px;
  }

  body[data-page="dashboard"] .dashboard-topbar {
    align-items: center;
    column-gap: 16px;
    grid-template-areas:
      "brand actions"
      "tabs tabs";
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 12px;
  }

  body[data-page="dashboard"] .dashboard-tabs {
    grid-area: tabs;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-tab {
    min-width: 0;
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-topbar .brand {
    grid-area: brand;
  }

  body[data-page="dashboard"] .dashboard-topbar .topbar-actions {
    grid-area: actions;
    justify-self: end;
  }

  body[data-page="dashboard"] .topbar-cluster {
    gap: 16px;
  }

  body[data-page="dashboard"] .dashboard-energy {
    margin-right: 0;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header {
    align-items: center;
    display: flex;
    height: 56px;
    justify-content: space-between;
    min-height: 56px;
    padding: 12px 0;
    position: fixed;
    top: 0;
    }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .dashboard-tabs {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .brand img {
    width: 90.4px;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .topbar-actions {
    gap: 8px;
    justify-self: auto;
    margin-left: auto;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .dashboard-energy {
    display: flex;
    height: 32px;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .brand,
  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .topbar-actions {
    align-items: center;
    display: flex;
    height: 32px;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-arena-stage-header .topbar-burger {
    height: 32px;
    width: 32px;
  }

  #screenAdmin {
    margin-top: 0;
    max-width: 100%;
    padding: 123px 16px 112px;
  }

  .cabinet-header {
    align-items: start;
    column-gap: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 16px;
    grid-template-areas: "copy action";
    width: 100%;
  }

  .cabinet-header > div:first-child {
    grid-area: copy;
    min-width: 0;
  }

  .cabinet-header h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .cabinet-header p {
    font-size: 14px;
    line-height: 20px;
    margin-top: 6px;
  }

  .cabinet-create-btn {
    align-self: start;
    border-radius: 999px;
    grid-area: action;
    height: 48px;
    margin-top: 0;
    min-width: 48px;
    padding: 0;
    position: relative;
    width: 48px;
  }

  .cabinet-create-btn::before {
    content: "+";
    font-size: 28px;
    font-weight: 600;
    left: 50%;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -52%);
  }

  .cabinet-create-btn.enabled::before {
    color: #fff;
  }

  .cabinet-create-btn.disabled::before {
    color: var(--gray-400);
  }

  .cabinet-create-btn span,
  .cabinet-create-btn > * {
    pointer-events: none;
  }

  .cabinet-create-btn {
    color: transparent;
    font-size: 0;
  }

  .cabinet-grid {
    gap: 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 24px;
    width: 100%;
  }

  .cabinet-character {
    width: 264px;
  }

  .arena-replay-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    padding: 18px 16px;
  }

  .arena-replay-banner-title {
    font-size: 20px;
    line-height: 26px;
  }

  .arena-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .arena-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    padding: 24px 20px;
  }

  .arena-panel-copy p {
    font-size: 15px;
    line-height: 22px;
  }

  .arena-panel-actions {
    width: 100%;
  }

  .arena-panel-actions .arena-start-btn,
  .arena-panel-actions .arena-secondary-btn,
  .arena-replay-banner .arena-secondary-btn {
    width: 100%;
  }

  .arena-history-panel {
    margin-top: 0;
    min-height: 0;
    padding: 20px 16px;
    position: static;
    top: auto;
  }

  .arena-layout.is-history-only .arena-history-panel {
    margin-top: 0;
  }

  .arena-history-panel-head {
    flex-direction: column;
    gap: 12px;
  }

  .arena-history-feedback {
    border-radius: 18px;
    margin-top: 16px;
    padding: 16px;
  }

  .arena-history-list {
    gap: 12px;
    margin-top: 16px;
  }

  .arena-history-card {
    border-radius: 20px;
    gap: 12px;
    padding: 14px;
  }

  .arena-history-card-topline,
  .arena-history-card-meta {
    gap: 8px;
    flex-wrap: wrap;
  }

  .arena-history-card-fighters {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
  }

  .arena-history-fighter,
  .arena-history-fighter--opponent {
    justify-content: flex-start;
    text-align: left;
  }

  .arena-history-versus-pill {
    justify-self: flex-start;
  }

  .arena-history-fighter-name {
    font-size: 16px;
    line-height: 20px;
    white-space: normal;
  }

  .arena-history-card-summary {
    font-size: 13px;
    line-height: 20px;
  }

  .arena-shell,
  .arena-battle {
    min-height: 680px;
  }

  .arena-stage-title {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 24px;
    gap: 4px;
    justify-content: center;
    line-height: 32px;
    left: 50%;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 48px;
    transform: translateX(-50%);
    width: 238px;
    z-index: 4;
  }

  .arena-stage-title-text {
    display: inline;
  }

  .arena-stage-dots {
    display: inline-flex;
    justify-content: flex-start;
    margin-left: 4px;
    min-width: 0;
    padding-bottom: 3px;
    vertical-align: baseline;
  }

  .arena-roulette {
    height: 160px;
    top: 50svh;
    transform: translate(-50%, -50%);
    width: 360px;
  }

  .arena-roulette.is-fading-out {
    transform: translate(-50%, calc(-50% - 10px));
  }

  .arena-roulette-track {
    gap: 8px;
    top: 40px;
  }

  .arena-roulette-thumb {
    border-radius: 8px;
    flex: 0 0 80px;
    height: 80px;
    width: 80px;
  }

  .arena-roulette-thumb img {
    border-radius: 8px;
  }

  .arena-roulette-focus {
    height: 160px;
    top: 0;
    transform: translateX(-50%);
    transform-origin: center center;
    width: 160px;
  }

  .arena-roulette-focus.is-hidden {
    transform: translateX(-50%) translateY(16px) scale(0.92);
  }

  .arena-roulette-focus-frame {
    border-radius: 24px;
  }

  .arena-roulette-focus-image {
    border-radius: 16px;
    height: 144px;
    left: 8px;
    top: 8px;
    width: 144px;
  }

  .arena-focus-card {
    top: 50svh;
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform: translate(-50%, calc(-50% + 16px));
  }

  .arena-focus-card .arena-card {
    animation: none;
    transform: scale(0.72);
    transform-origin: center top;
  }

  .arena-focus-card:not(.hidden) .arena-card {
    animation: none;
  }

  .arena-focus-card.is-fading-out {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 6px));
  }

  .arena-versus {
    height: 100%;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: 328px;
  }

  .arena-versus-card {
    left: auto;
    top: auto;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .arena-versus-card .arena-card {
    transform-origin: center center;
  }

  .arena-versus-card-opponent {
    opacity: 0;
    left: 102px;
    top: 170px;
    transform: translateY(0);
  }

  .arena-versus-card-player {
    opacity: 0;
    left: -54px;
    top: 176px;
    transform: translateY(0);
  }

  .arena-versus-card-opponent .arena-card {
    transform: scale(0.606) rotate(15deg);
  }

  .arena-versus-card-player .arena-card {
    transform: scale(0.522) rotate(-15deg);
  }

  .arena-versus-loader {
    height: 32px;
    left: 148px;
    opacity: 0;
    top: 129px;
    transform: translateY(16px);
    width: 32px;
  }

  .arena-versus-loader-glyph {
    height: 32px;
    width: 32px;
  }

  .arena-versus.is-revealed .arena-versus-card-opponent {
    animation: arena-mobile-versus-opponent-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .arena-versus.is-revealed .arena-versus-card-player {
    animation: arena-mobile-versus-player-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .arena-versus.is-revealed .arena-versus-loader {
    animation: arena-mobile-versus-loader-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .arena-battle.is-live-battle {
    min-height: auto;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header {
    align-items: center;
    display: grid !important;
    gap: 0;
    grid-template-columns: max-content 1fr max-content;
    height: 56px;
    left: 16px;
    min-height: 56px;
    overflow: hidden;
    padding: 12px 0;
    position: fixed;
    right: 16px;
    top: 0;
    width: auto;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .dashboard-tabs {
    display: none !important;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .brand {
    grid-column: 1;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .topbar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    min-width: 0;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .dashboard-energy {
    display: flex;
    height: 32px;
  }

  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .topbar-burger {
    height: 32px;
    width: 32px;
  }

  #screenArena:has(.arena-battle.is-live-battle) {
    margin-top: 0;
    margin-left: -16px;
    margin-right: -16px;
    max-width: none;
    padding: 0 !important;
    width: calc(100% + 32px);
  }

  .arena-battle.is-live-battle,
  .arena-live-battle {
    min-height: calc(100svh - 56px);
  }

  .arena-live-battle {
    min-height: calc(100svh - 56px);
    padding-top: 0;
    position: relative;
  }

  .arena-live-shell {
    left: 0;
    right: 0;
    margin: 0;
    max-width: none;
    min-height: calc(100svh - 56px);
    position: relative;
    top: 0;
    transform: none;
    width: 100%;
  }

  .arena-live-shell.is-entering .arena-live-overview,
  .arena-live-shell.is-entering .arena-live-rounds,
  .arena-live-shell.is-entering .arena-live-controls,
  .arena-live-shell.is-entering .arena-live-stage-card {
    opacity: 0;
    transform: translateY(16px);
  }

  .arena-live-shell.is-entering.is-landing .arena-live-overview,
  .arena-live-shell.is-entering.is-landing .arena-live-rounds,
  .arena-live-shell.is-entering.is-landing .arena-live-controls,
  .arena-live-shell.is-entering.is-landing .arena-live-stage-card {
    opacity: 1;
    transform: translateY(0);
  }

  .arena-live-shell.is-entering .arena-live-overview {
    transform: translateY(16px);
  }

  .arena-live-shell.is-entering.is-landing .arena-live-overview {
    transform: translateY(0);
  }

  .arena-live-overview {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    left: 16px;
    position: absolute;
    right: 16px;
    top: 0;
    transform: none;
    width: auto;
    z-index: 3;
  }

  .arena-live-overview-side {
    gap: 0;
    min-height: 154px;
    position: relative;
    width: 100%;
  }

  .arena-live-overview-side--initiator {
    grid-column: 1;
  }

  .arena-live-overview-side--opponent {
    grid-column: 3;
  }

  .arena-live-overview-copy {
    display: block;
    width: 100%;
  }

  .arena-live-overview-name {
    font-size: 18px;
    line-height: 26px;
    margin: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  .arena-live-overview-side--initiator .arena-live-overview-name {
    left: 0;
    text-align: left;
  }

  .arena-live-overview-side--opponent .arena-live-overview-name {
    left: 0;
    right: 0;
    text-align: right;
  }

  .arena-live-overview-hp {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    position: absolute;
    top: 122px;
    width: 100%;
  }

  .arena-live-overview-side--initiator .arena-live-overview-hp {
    left: 0;
    text-align: right;
  }

  .arena-live-overview-side--opponent .arena-live-overview-hp {
    left: 0;
    right: 0;
    text-align: left;
  }

  .arena-live-overview-track {
    height: 8px;
    position: absolute;
    top: 146px;
    width: 100%;
  }

  .arena-live-overview-side--initiator .arena-live-overview-track {
    left: 0;
  }

  .arena-live-overview-side--opponent .arena-live-overview-track {
    right: 0;
  }

  .arena-live-overview-fill {
    height: 8px;
  }

  .arena-live-overview-fill::after {
    border-width: 2px;
    inset: -2px;
  }

  .arena-live-round-indicator {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    left: 50%;
    padding-top: 0;
    position: absolute;
    top: 43px;
    transform: translateX(-50%);
    width: 72px;
    z-index: 4;
  }

  .arena-live-battle .arena-live-round-value {
    font-size: 48px;
    line-height: 40px;
    margin: 0;
  }

  .arena-live-battle .arena-live-round-label {
    font-size: 12px;
    line-height: 16px;
    margin: 0;
  }

  .arena-live-stage {
    min-height: 0;
    position: static;
    width: 100%;
  }

  .arena-live-stage-card {
    position: absolute;
    top: 34px;
    width: 96px;
    z-index: 3;
  }

  .arena-live-stage-card--initiator {
    left: 16px;
  }

  .arena-live-stage-card--opponent {
    right: 16px;
  }

  .arena-live-shell.is-entering .arena-live-stage-card--initiator,
  .arena-live-shell.is-entering .arena-live-stage-card--opponent {
    transform: translateY(16px);
  }

  .arena-live-shell.is-entering.is-landing .arena-live-stage-card--initiator,
  .arena-live-shell.is-entering.is-landing .arena-live-stage-card--opponent {
    transform: translateY(0);
  }

  .arena-live-sidecard {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: 96px;
    overflow: visible;
    width: 96px;
  }

  .arena-live-sidecard-title,
  .arena-live-sidecard-stats,
  .arena-live-sidecard-power {
    display: none;
  }

  .arena-live-sidecard-image-wrap {
    height: 96px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 96px;
  }

  .arena-live-sidecard-image {
    border-radius: 8px;
    height: 96px;
    width: 96px;
  }

  .arena-live-sidecard-level {
    display: none;
  }

  .arena-live-sidecard-rarity {
    border-width: 1.25px;
    border-radius: 10px;
    font-size: 11.25px;
    line-height: 15px;
    padding: 2.5px 6.25px;
    right: 4px;
    top: 4px;
  }

  .arena-live-stage-card--initiator .arena-live-sidecard-rarity {
    left: 4px;
    right: auto;
  }

  .arena-live-rounds {
    left: calc(50vw - 148px);
    margin: 0;
    padding-top: 0;
    position: absolute;
    top: 186px;
    transform: none;
    width: 296px;
  }

  .arena-live-round-card,
  .arena-live-round-main {
    width: 296px;
  }

  .arena-live-round-main {
    border-radius: 16px;
    min-height: 132px;
    padding: 8px 12px 16px;
  }

  .arena-live-round-card.is-current .arena-live-round-main {
    border-width: 2px;
  }

  .arena-live-round-head {
    padding: 2px 0 6px;
  }

  .arena-live-round-icon-slot img {
    height: 24px;
    width: 24px;
  }

  .arena-live-round-pill {
    gap: 8px;
    padding: 4px;
  }

  .arena-live-round-pill-ornament {
    flex: 0 0 31px;
    height: 20px;
    width: 31px;
  }

  .arena-live-battle .arena-live-round-pill-label {
    font-size: 14px;
    line-height: 20px;
  }

  .arena-live-round-body {
    padding: 12px 4px 0;
  }

  .arena-live-battle .arena-live-round-body p {
    font-size: 14px;
    line-height: 20px;
    min-height: 60px;
  }

  .arena-live-round-accent {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    position: absolute;
    top: -2px;
    width: 67px;
  }

  .arena-live-round-accent--left {
    align-items: flex-end;
    left: 1px;
    text-align: right;
    transform: rotate(12deg);
  }

  .arena-live-round-accent--right {
    align-items: flex-start;
    right: 4px;
    text-align: left;
    transform: rotate(-12deg);
  }

  .arena-live-round-damage-line {
    gap: 6px;
    margin-bottom: -6px;
  }

  .arena-live-battle .arena-live-round-damage .arena-live-round-text-shadow,
  .arena-live-battle .arena-live-round-damage .arena-live-round-text-face {
    font-size: 30px;
    line-height: 24px;
  }

  .arena-live-round-skull {
    height: 15px;
    width: 15px;
  }

  .arena-live-round-note {
    display: none;
  }

  .arena-live-controls {
    align-items: center;
    background: #f9fafb;
    border-top: 1px solid #eaecf0;
    bottom: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: 40px 1fr 40px;
    left: 0;
    margin-top: 0;
    padding: 12px 16px 20px;
    position: fixed;
    top: auto;
    transform: none;
    width: 100%;
    z-index: 10;
  }

  .arena-live-shell.is-entering .arena-live-controls,
  .arena-live-shell.is-entering.is-landing .arena-live-controls {
    transform: none;
  }

  .arena-live-skip-btn {
    grid-column: 2;
    height: 40px;
    min-width: 0;
    width: 100%;
  }

  .arena-live-control-btn--restart {
    grid-column: 1;
  }

  .arena-live-control-btn--pause {
    grid-column: 3;
  }

  .arena-live-shell.is-result-entering .arena-live-overview,
  .arena-live-shell.is-result-final .arena-live-overview,
  .arena-live-shell.is-result-entering .arena-live-controls,
  .arena-live-shell.is-result-final .arena-live-controls {
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: none;
  }

  .arena-live-shell.is-result-entering .arena-live-result-layer,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-result-layer,
  .arena-live-shell.is-result-final .arena-live-result-layer {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .arena-live-shell.is-result-entering .arena-live-stage,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage,
  .arena-live-shell.is-result-final .arena-live-stage {
    left: 50%;
    min-height: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    transition: none;
    width: min(360px, 100vw);
  }

  .arena-live-shell.is-result-entering .arena-live-stage-card,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card,
  .arena-live-shell.is-result-final .arena-live-stage-card {
    top: -40px;
    transition: none;
    width: 264px;
  }

  .arena-live-shell.is-result-entering .arena-live-stage-card.is-result-winner,
  .arena-live-shell.is-result-entering .arena-live-stage-card.is-result-loser,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-winner,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-loser,
  .arena-live-shell.is-result-final .arena-live-stage-card.is-result-winner,
  .arena-live-shell.is-result-final .arena-live-stage-card.is-result-loser {
    opacity: var(--arena-result-opacity, 1);
    transform: translate3d(var(--arena-result-x, 0), var(--arena-result-y, 0), 0)
      scale(var(--arena-result-scale, 1))
      rotate(var(--arena-result-rotate, 0deg));
  }

  .arena-live-shell.is-result-entering .arena-live-stage-card.is-result-winner,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-winner,
  .arena-live-shell.is-result-final .arena-live-stage-card.is-result-winner {
    z-index: 4;
  }

  .arena-live-shell.is-result-entering .arena-live-stage-card.is-result-loser,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage-card.is-result-loser,
  .arena-live-shell.is-result-final .arena-live-stage-card.is-result-loser {
    z-index: 3;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard,
  .arena-live-shell.is-result-final .arena-live-sidecard {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
    height: 399px;
    overflow: visible;
    width: 264px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-title,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-title,
  .arena-live-shell.is-result-final .arena-live-sidecard-title {
    color: #101828;
    display: block;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    left: 50%;
    line-height: 24px;
    position: absolute;
    text-align: center;
    top: 12px;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-image-wrap,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-image-wrap,
  .arena-live-shell.is-result-final .arena-live-sidecard-image-wrap {
    height: 248px;
    left: 8px;
    top: 48px;
    width: 248px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-image,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-image,
  .arena-live-shell.is-result-final .arena-live-sidecard-image {
    border-radius: 16px;
    height: 248px;
    width: 248px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-level,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-level,
  .arena-live-shell.is-result-final .arena-live-sidecard-level {
    color: #101828;
    display: block;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    left: 12px;
    line-height: 20px;
    top: 14px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-rarity,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-rarity,
  .arena-live-shell.is-result-final .arena-live-sidecard-rarity {
    border-width: 2px;
    border-radius: 16px;
    font-size: 18px;
    line-height: 24px;
    left: auto;
    padding: 4px 10px;
    right: 8px;
    top: 8px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-stats,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-stats,
  .arena-live-shell.is-result-final .arena-live-sidecard-stats {
    display: flex;
    left: 16px;
    top: 312px;
    width: 232px;
  }

  .arena-live-shell.is-result-entering .arena-live-sidecard-power,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-sidecard-power,
  .arena-live-shell.is-result-final .arena-live-sidecard-power {
    display: flex;
    left: 8px;
    min-height: 48px;
    top: 343px;
    width: 248px;
  }

  .arena-live-shell.is-result-entering .arena-live-result-layer,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-result-layer,
  .arena-live-shell.is-result-final .arena-live-result-layer {
    inset: 0;
    left: 50%;
    margin: 0 auto;
    max-width: 360px;
    transform: translateX(-50%);
    width: min(360px, 100vw);
  }

  .arena-live-battle .arena-live-result-title--winner {
    font-size: 24px;
    line-height: 40px;
    left: 100px;
    top: 352px;
    width: 82px;
  }

  .arena-live-battle .arena-live-result-title--loser {
    font-size: 20px;
    line-height: 28px;
    left: auto;
    right: 39px;
    text-align: right;
    top: 106px;
    width: 82px;
  }

  .arena-live-result-reward--winner {
    align-items: flex-start;
    gap: 8px;
    left: 100px;
    text-align: left;
    top: 391px;
    width: 130px;
  }

  .arena-live-result-reward--loser {
    align-items: flex-end;
    gap: 0;
    left: auto;
    right: 39px;
    text-align: right;
    top: 138px;
    width: 82px;
  }

  .arena-live-battle .arena-live-result-exp--winner {
    font-size: 36px;
    line-height: 36px;
  }

  .arena-live-result-exp--loser {
    color: #98a2b3;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
  }

  .arena-live-result-pill {
    padding: 2px 8px 2px 6px;
  }

  .arena-live-result-trophy-stack {
    height: 219px;
    left: -39px;
    opacity: 1;
    top: 216px;
    transform: none;
    width: 215px;
  }

  .arena-live-result-trophy--composite {
    height: 219px;
    width: 215px;
  }

  .arena-live-shell.is-result-entering .arena-live-result-trophy-stack,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-result-trophy-stack,
  .arena-live-shell.is-result-final .arena-live-result-trophy-stack {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .arena-live-result-cta {
    left: 50%;
    top: 456px;
    transform: translateX(-50%);
  }

  .arena-live-result-actions {
    gap: 12px;
    justify-content: space-between;
    left: 16px;
    top: 531px;
    transform: none;
    width: 328px;
  }

  .arena-live-result-btn {
    font-size: 16px;
    gap: 12px;
    width: 158px;
  }

  .arena-live-shell.is-result-entering .arena-live-rounds,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-rounds,
  .arena-live-shell.is-result-final .arena-live-rounds {
    left: 50%;
    top: 186px;
    transition: none;
    transform: translateX(-50%) translateY(364px);
    width: 296px;
  }

  .arena-live-shell.is-result-entering .arena-live-round-card,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-round-card,
  .arena-live-shell.is-result-final .arena-live-round-card,
  .arena-live-shell.is-result-entering .arena-live-round-main,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-round-main,
  .arena-live-shell.is-result-final .arena-live-round-main {
    transition: none;
    width: 296px;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .admin-header h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .admin-header p {
    font-size: 14px;
    line-height: 20px;
    margin-top: 6px;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-nav {
    width: 100%;
  }

  .admin-nav-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-secondary-btn,
  .admin-search input {
    width: 100%;
  }

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

  .admin-table-wrap {
    border-radius: 20px;
  }

  .admin-action-stack {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-btn,
  .admin-delete-btn {
    width: 100%;
  }

  .admin-details-grid,
  .admin-info-grid {
    grid-template-columns: 1fr;
  }

  .admin-lightbox {
    padding: 16px;
  }

  .admin-lightbox-content {
    max-width: calc(100vw - 32px);
  }

  .admin-lightbox-image {
    border-radius: 20px;
    max-height: min(72vh, 560px);
  }

  .powers-screen {
    margin-top: 0;
    max-width: 100%;
    padding: 147px 0 117px;
  }

  .powers-screen-wrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: var(--mobile-content-width);
  }

  .powers-back-btn {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .powers-back-btn.is-hidden {
    display: none;
  }

  .pet-result-card {
    margin: 0 auto;
  }

  #screenPowers h1 {
    font-size: 24px;
    line-height: 32px;
    margin: 24px 0 0;
    max-width: var(--mobile-content-width);
    width: 100%;
  }

  .powers-subtitle {
    font-size: 16px;
    line-height: 22px;
    margin-top: 8px;
    width: 100%;
  }

  .powers-continue-btn {
    bottom: 24px;
    flex-basis: auto;
    left: 50%;
    margin-top: 0;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    z-index: 30;
  }

  .attrs-side-panel {
    background: #fff;
    border: 1px solid #101828;
    border-radius: 16px;
    bottom: 16px;
    box-shadow:
      0 20px 24px -4px rgba(16, 24, 40, 0.08),
      0 8px 8px -4px rgba(16, 24, 40, 0.03);
    display: block;
    height: 118px;
    left: 50%;
    padding: 0;
    position: fixed;
    text-align: left;
    transform: translateX(-50%);
    transition: bottom 0.24s ease;
    width: var(--mobile-content-width);
    z-index: 30;
  }

  .attrs-screen.is-upgrade-mode .attrs-side-panel {
    display: none;
  }

  .attrs-side-panel.is-ready {
    bottom: 80px;
  }

  .attrs-points-card {
    align-items: center;
    background: #f2f4f7;
    display: block;
    height: 102px;
    left: 7px;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 7px;
    width: 108px;
  }

  .attrs-points-card span {
    left: 4px;
    font-size: 14px;
    line-height: 20px;
    margin-top: 0;
    position: absolute;
    text-align: center;
    top: 54px;
    width: 99px;
  }

  .attrs-points-card strong {
    font-size: 40px;
    left: 50%;
    line-height: 40px;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
  }

  .attrs-hold-copy {
    left: 131px;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 11px;
  }

  .attrs-side-panel .attrs-hold-title {
    font-size: 14px;
    line-height: 20px;
  }

  .attrs-hold-text {
    font-size: 12px;
    line-height: 16px;
    margin-top: 2px;
  }

  .attrs-rewards-wrap {
    left: 131px;
    position: absolute;
    right: 15px;
    top: 73px;
  }

  .attrs-rewards-btn {
    background: #101828;
    box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
    color: #fff;
    font-size: 14px;
    gap: 8px;
    height: 32px;
    line-height: 20px;
    margin: 0;
    padding: 8px 16px;
    width: 100%;
  }

  .attrs-rewards-icon {
    height: 16px;
    width: 16px;
  }

  .attrs-divider {
    display: none;
  }

  .attrs-continue-btn {
    bottom: 24px;
    left: 50%;
    margin-top: 0;
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    transform: translateX(-50%) translateY(0);
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0.24s ease;
    visibility: visible;
    width: calc(100vw - 32px);
    z-index: 30;
  }

  .attrs-screen.is-upgrade-mode .attrs-continue-btn {
    max-width: var(--mobile-upgrade-content-width);
    min-width: 0;
    white-space: nowrap;
    width: var(--mobile-upgrade-content-width);
  }

  .attrs-continue-btn.mobile-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
    visibility: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1439px) {
  body[data-page="dashboard"] .creation-page {
    padding: 16px 16px 24px;
  }

  body[data-page="dashboard"] .creation-page::before {
    display: none;
  }

  body[data-page="dashboard"] .topbar {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    z-index: auto;
  }

  body[data-page="dashboard"] .dashboard-topbar,
  body[data-page="dashboard"] .dashboard-topbar.is-battle-header {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }

  body[data-page="dashboard"] .dashboard-topbar .topbar-actions,
  body[data-page="dashboard"] .dashboard-topbar.is-battle-header .topbar-actions {
    justify-self: end;
    margin-left: 0;
  }

  body[data-page="dashboard"] .dashboard-tabs {
    justify-self: center;
  }

  #screenArena {
    margin-top: 38px !important;
    max-width: 100%;
    min-height: 996px;
    padding: 0;
  }

  #screenArena:has(.arena-battle.is-live-battle) {
    margin-top: 38px !important;
    max-width: 100%;
  }

  .arena-replay-banner {
    margin-top: 24px;
  }

  .arena-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .arena-panel {
    align-items: flex-start;
    gap: 20px;
    margin-top: 0;
  }

  .arena-panel-actions {
    flex-direction: row;
  }

  .arena-panel-actions .arena-start-btn,
  .arena-panel-actions .arena-secondary-btn,
  .arena-replay-banner .arena-secondary-btn {
    min-width: 188px;
  }

  .arena-history-panel {
    margin-top: 0;
    min-height: 0;
    padding: 22px;
    position: static;
    top: auto;
  }

  .arena-layout.is-history-only .arena-history-panel {
    margin-top: 0;
  }

  .arena-history-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-history-card {
    min-height: 100%;
  }

  .arena-battle.is-live-battle,
  .arena-live-battle {
    min-height: 996px;
  }

  .arena-live-battle {
    position: relative;
  }

  .arena-live-shell {
    min-height: 996px;
    left: 50%;
    margin: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 736px;
  }

  .arena-live-overview {
    align-items: flex-start;
    display: flex;
    gap: 56px;
    grid-template-columns: none;
    position: absolute;
    top: 0 !important;
    width: 736px;
    z-index: 5;
  }

  .arena-live-overview-side {
    flex: 0 0 340px;
    gap: 8px;
    width: 340px;
  }

  .arena-live-round-indicator {
    align-items: center;
    gap: 12px;
    left: 50%;
    padding-top: 0;
    position: absolute;
    top: 176px;
    transform: translateX(-50%);
    width: 108px;
    z-index: 6;
  }

  .arena-live-battle .arena-live-round-value {
    font-size: 56px;
    line-height: 40px;
  }

  .arena-live-overview-name {
    font-size: 24px;
    line-height: 32px;
  }

  .arena-live-overview-hp {
    font-size: 18px;
    line-height: 28px;
  }

  .arena-live-overview-track,
  .arena-live-overview-fill {
    height: 16px;
  }

  .arena-live-controls {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-areas:
      "skip skip"
      "restart pause";
    grid-template-columns: 40px 40px;
    justify-content: center;
    left: 50%;
    margin-top: 0;
    position: absolute;
    top: 266px;
    transform: translateX(-50%);
    width: 108px;
    z-index: 6;
  }

  .arena-live-shell.is-entering .arena-live-controls {
    transform: translateX(-50%) translateY(18px);
  }

  .arena-live-shell.is-entering.is-landing .arena-live-controls {
    transform: translateX(-50%) translateY(0);
  }

  .arena-live-skip-btn {
    grid-area: skip;
    justify-self: center;
    min-width: 108px;
    padding: 0;
    width: 108px;
  }

  .arena-live-control-btn--restart {
    grid-area: restart;
  }

  .arena-live-control-btn--pause {
    grid-area: pause;
  }

  .arena-live-stage {
    left: 0;
    margin-top: 0;
    min-height: 820px;
    position: absolute;
    top: 80px;
    width: 736px;
  }

  .arena-live-stage-card {
    top: 0;
    width: 264px;
  }

  .arena-live-stage-card--initiator {
    left: 0;
  }

  .arena-live-stage-card--opponent {
    right: 0;
  }

  .arena-live-rounds {
    left: 50%;
    margin-top: 0;
    padding-top: 0;
    position: absolute;
    top: 439px;
    transform: translateX(-50%);
    width: 520px;
  }

  .arena-live-shell.is-entering .arena-live-rounds {
    transform: translateX(-50%) translateY(16px);
  }

  .arena-live-shell.is-entering.is-landing .arena-live-rounds {
    transform: translateX(-50%) translateY(0);
  }

  .arena-live-round-card,
  .arena-live-round-main {
    width: 520px;
  }

  .arena-live-round-accent {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    position: absolute;
    top: 51px;
    transform: none;
    width: 93px;
  }

  .arena-live-round-accent--left {
    align-items: flex-end;
    left: -73px;
    margin-top: 0;
    text-align: right;
    transform: rotate(12deg);
  }

  .arena-live-round-accent--right {
    align-items: flex-start;
    margin-top: 0;
    right: -73px;
    text-align: left;
    transform: rotate(-12deg);
  }

  .arena-live-round-note {
    max-width: none;
    width: 100%;
  }

  .arena-roulette-focus {
    top: 16px;
    transform: translateX(-50%) scale(0.82);
    transform-origin: center center;
  }

  .arena-roulette-focus.is-hidden {
    transform: translateX(-50%) translateY(16px) scale(0.74);
  }

  .arena-live-battle .arena-live-result-title--winner {
    left: 57px;
    top: 62px;
    width: 110px;
  }

  .arena-live-battle .arena-live-result-title--loser {
    left: 612px;
    top: 287px;
    width: 75px;
  }

  .arena-live-result-reward--winner {
    left: 0;
    top: 114px;
    width: 167px;
  }

  .arena-live-result-reward--loser {
    left: 612px;
    top: 327px;
    width: 94px;
  }

  .arena-live-result-trophy-stack {
    left: 48px;
    top: 153px;
    width: 305px;
    height: 311px;
  }

  .arena-live-result-trophy--composite {
    width: 305px;
    height: 311px;
  }

  .arena-live-result-cta {
    top: 532px;
  }

  .arena-live-result-actions {
    top: 602px;
  }

  .arena-live-shell.is-result-entering.is-result-landing .arena-live-rounds,
  .arena-live-shell.is-result-final .arena-live-rounds {
    left: 50%;
    top: 615px;
    transform: translateX(-50%) translateY(0);
    width: 520px;
  }

  .arena-live-shell.is-result-entering.is-result-landing .arena-live-result-layer,
  .arena-live-shell.is-result-final .arena-live-result-layer {
    transform: translateY(-32px);
  }

  .arena-live-shell.is-result-entering.is-result-landing .arena-live-stage,
  .arena-live-shell.is-result-final .arena-live-stage {
    transform: translateY(-32px);
  }

  .arena-live-shell.is-result-entering.is-result-landing .arena-live-round-card,
  .arena-live-shell.is-result-final .arena-live-round-card,
  .arena-live-shell.is-result-entering.is-result-landing .arena-live-round-main,
  .arena-live-shell.is-result-final .arena-live-round-main {
    width: 520px;
  }
}

/* Points currency: header cluster (T031) */

.topbar-cluster {
  align-items: center;
  display: flex;
  gap: 16px;
}

.topbar-burger {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  padding: 4px;
  width: 32px;
}

.topbar-burger:hover {
  background: var(--gray-200, #eaecf0);
}

.topbar-burger:focus-visible {
  outline: 2px solid #101828;
  outline-offset: 2px;
}

.topbar-burger img {
  display: block;
  height: 24px;
  width: 24px;
}

.dashboard-points {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.dashboard-points.hidden {
  display: none !important;
}

.dashboard-points img {
  display: block;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

.dashboard-points [data-role="points-value"] {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

/* Points currency: history card (T019) */

.arena-history-card-points {
  align-items: center;
  color: #067647;
  display: inline-flex;
  gap: 4px;
}

.arena-history-card-points-icon {
  display: block;
  height: 14px;
  width: 14px;
}

/* NFT-bound pet: badge next to the name + purple frame (feature 016) */

.cabinet-success-card .success-card-title {
  align-items: center;
  display: flex;
  gap: 6px;
}

/* Имя ужимается многоточием, бейдж не сжимается никогда — иначе длинное имя
   выдавило бы его под кнопку меню. */
.success-card-title__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Выбор капсулы: живёт внутри .burn-modal, поэтому фон, скругления и кнопки
   наследуются от неё — здесь только сетка капсул. (feature 016) */

.nft-picker {
  max-width: 420px;
}

.nft-picker__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  margin-bottom: 20px;
  max-height: 46vh;
  overflow-y: auto;
}

.nft-picker__slot {
  align-items: center;
  background: #f9fafb;
  border: 2px solid #eaecf0;
  border-radius: 14px;
  color: #101828;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 12px 8px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Без transform: плитка живёт в контейнере с overflow-y, и сдвиг вверх её
   обрезал. Тот же акцент даём рамкой, фоном и мягкой тенью. */
.nft-picker__slot:hover,
.nft-picker__slot:focus-visible {
  background: #fff;
  border-color: #7a5af8;
  box-shadow: 0 4px 12px rgba(122, 90, 248, 0.22);
  outline: none;
}

.nft-picker__slot img {
  border-radius: 10px;
  display: block;
}

/* Тир капсулы в пикере: подпись и цвет рамки при наведении в тон тира (018) */
.nft-picker__tier {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: -4px;
  text-transform: uppercase;
}

.nft-picker__slot--glass:hover, .nft-picker__slot--glass:focus-visible { border-color: #0ba5ec; box-shadow: 0 4px 12px rgba(90, 201, 248, 0.3); }
.nft-picker__slot--bronze:hover, .nft-picker__slot--bronze:focus-visible { border-color: #b47745; box-shadow: 0 4px 12px rgba(197, 131, 55, 0.3); }
.nft-picker__slot--silver:hover, .nft-picker__slot--silver:focus-visible { border-color: #afafaf; box-shadow: 0 4px 12px rgba(145, 145, 145, 0.3); }
.nft-picker__slot--gold:hover, .nft-picker__slot--gold:focus-visible { border-color: #ffca42; box-shadow: 0 4px 12px rgba(248, 195, 90, 0.3); }
.nft-picker__slot--prismatic:hover, .nft-picker__slot--prismatic:focus-visible { border-color: #ff3cff; box-shadow: 0 4px 12px rgba(255, 60, 255, 0.28); }

/* Нет капсул: показываем предмет, за которым нужно идти в коллекцию */
.nft-picker__empty {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0.7;
}

.nft-picker__empty img {
  border-radius: 14px;
  display: block;
}

.burn-modal__btn--buy {
  align-items: center;
  background: #7a5af8;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.burn-modal__btn--buy:hover,
.burn-modal__btn--buy:focus-visible {
  background: #6941c6;
}

@media (prefers-reduced-motion: reduce) {
  .nft-picker__slot {
    transition: none;
  }
}

/* NFT-bound pet: badge next to the name + purple frame (feature 016) */

.cabinet-success-card .success-card-title {
  align-items: center;
  display: flex;
  gap: 6px;
}

/* Имя ужимается многоточием, бейдж не сжимается никогда — иначе длинное имя
   выдавило бы его под кнопку меню. */
.success-card-title__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-card-nft-badge {
  background: #f4ebff;
  border-radius: 6px;
  color: #6941c6;
  flex: 0 0 auto;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 16px;
  padding: 1px 6px;
}

/* Капсула на очистке: вместо NFT — огонёк с обратным отсчётом. */
.success-card-nft-badge--burning {
  align-items: center;
  background: #fef3f2;
  color: #b42318;
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  gap: 3px;
  letter-spacing: 0;
}

/* Пет отдыхает после переезда с другого кошелька (027): тот же бейдж-таймер,
   что у сжигания, но серый — это не тревога, а временная блокировка. */
.success-card-nft-badge--settling {
  align-items: center;
  background: #f2f4f7;
  color: #475467;
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  gap: 3px;
  letter-spacing: 0;
}

.success-card-nft-badge--settling svg {
  display: block;
}

/* Карточка на паузе: приглушаем только картинку. Рамку капсулы не трогаем —
   тир никуда не делся, а про блокировку говорит таймер с замком. */
.cabinet-character--settling .success-card-image {
  opacity: 0.5;
}

.success-card-nft-badge--burning img {
  display: block;
}

/* Карточка на сжигании — красная рамка вместо фиолетовой.
   Составной селектор нужен, чтобы перебить .cabinet-character--nft ниже по файлу:
   специфичность там та же, и без этого выигрывал бы фиолетовый. */
.cabinet-character--nft.cabinet-character--nft-burning .success-card {
  box-shadow: 0 0 0 4px #f04438, 0 0 24px rgba(240, 68, 56, 0.32),
    0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

/* На очистке градиентное кольцо Prismatic гасим — рамка должна быть красной. */
.cabinet-character--nft.cabinet-character--nft-burning .success-card::before {
  content: none;
}

/* Фиолетовая рамка с подсветкой — NFT-питомец читается в списке мгновенно.
   Остаётся для привязок, сделанных до появления тиров капсул. */
.cabinet-character--nft .success-card {
  box-shadow: 0 0 0 2px #7a5af8, 0 6px 24px rgba(122, 90, 248, 0.35);
}

/* Тир капсулы (018): рамка и бейдж по макету. Кольцо 4px, свечение 24px и
   штатная тень карточки — три слоя одной box-shadow. Горящая рамка ниже
   перебивает их составным селектором, как и фиолетовую. */
.cabinet-character--nft-glass .success-card {
  box-shadow: 0 0 0 4px #0ba5ec, 0 0 24px rgba(90, 201, 248, 0.25),
    0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.cabinet-character--nft-bronze .success-card {
  box-shadow: 0 0 0 4px #b47745, 0 0 24px rgba(197, 131, 55, 0.25),
    0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.cabinet-character--nft-silver .success-card {
  box-shadow: 0 0 0 4px #afafaf, 0 0 24px rgba(145, 145, 145, 0.25),
    0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.cabinet-character--nft-gold .success-card {
  box-shadow: 0 0 0 4px #ffca42, 0 0 24px rgba(248, 195, 90, 0.25),
    0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

/* Prismatic — градиентное кольцо. box-shadow градиент не умеет, поэтому кольцо
   рисует псевдоэлемент: заливка градиентом, а маска оставляет от него только
   4px по периметру. Само свечение и тень — обычной box-shadow. */
.cabinet-character--nft-prismatic .success-card {
  box-shadow: 0 0 24px rgba(151, 151, 151, 0.25), 0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.cabinet-character--nft-prismatic .success-card::before {
  border-radius: 28px;
  /* Радуга по кругу, как в макете: персиковый в левом верхнем углу → розовый →
     сине-фиолетовый справа → циан внизу → зелёный → жёлтый слева → обратно.
     Экспорт Figma сплющивает градиентную обводку в один цвет, стопы сняты с
     макета на глаз. */
  background: conic-gradient(
    from 225deg,
    #ffa07a 0%,
    #ff6fd8 18%,
    #8a7bff 38%,
    #4fd8ff 55%,
    #8fe07a 72%,
    #ffd45a 88%,
    #ffa07a 100%
  );
  content: "";
  inset: -4px;
  padding: 4px;
  pointer-events: none;
  position: absolute;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Тултип на бейдже NFT: капсула, тир, бонусы. Один элемент у body с
   position: fixed — заголовок карточки обрезает потомков (троеточие у длинных
   имён), поэтому тултип живёт снаружи и встаёт по координатам бейджа. */
.success-card-nft-badge[data-nft-token] {
  cursor: help;
}

.nft-badge-tooltip {
  background: #101828;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  gap: 2px;
  line-height: 16px;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  text-align: left;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1000;
}

/* display: flex выше перебивает браузерный [hidden] — возвращаем скрытие явно,
   иначе el.hidden = true ничего не делает и тултип висит навсегда. */
.nft-badge-tooltip[hidden] {
  display: none;
}

.nft-badge-tooltip::after {
  border-bottom: 6px solid #101828;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  bottom: 100%;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.nft-badge-tooltip img {
  display: inline-block;
  vertical-align: -2px;
}

.nft-badge-tooltip__title,
.nft-badge-tooltip__tier {
  font-weight: 700;
}

.nft-badge-tooltip__tier--glass { color: #7cd4fd; }
.nft-badge-tooltip__tier--bronze { color: #e0a370; }
.nft-badge-tooltip__tier--silver { color: #d0d5dd; }
.nft-badge-tooltip__tier--gold { color: #ffd66b; }
.nft-badge-tooltip__tier--prismatic { color: #fda4e8; }

/* Бейдж NFT в цвет тира */
.success-card-nft-badge--glass { background: #e0f2fe; color: #026aa2; }
.success-card-nft-badge--bronze { background: #fff4eb; color: #a86935; }
.success-card-nft-badge--silver { background: #e9e9e9; color: #6a6a6a; }
.success-card-nft-badge--gold { background: #fff4d2; color: #b39500; }
.success-card-nft-badge--prismatic { background: #ffe1f7; color: #fa49dd; }



/* === Withdraw modal: token (019) states === */
.withdraw-explorer,
.withdraw-solscan {
  color: #475467;
  display: block;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}

.withdraw-explorer:hover,
.withdraw-solscan:hover {
  color: #101828;
  text-decoration: underline;
}

.withdraw-note {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
  margin-top: 10px;
  text-align: center;
}

.withdraw-limits {
  color: #475467;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
  margin: 6px 0 10px;
  text-align: center;
}

.withdraw-success-badge.is-pending {
  background: #f79009;
}

.withdraw-pending {
  border-top: 1px solid #eaecf0;
  margin-top: 16px;
  padding-top: 12px;
}

.withdraw-pending-title {
  color: #344054;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.withdraw-pending-item {
  align-items: center;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  gap: 8px;
  justify-content: space-between;
  padding: 6px 0;
}

.withdraw-pending-amount {
  color: #101828;
  font-weight: 600;
  white-space: nowrap;
}

.withdraw-pending-status {
  color: #667085;
  flex: 1;
  font-size: 12px;
}

.withdraw-pending-status a {
  color: #475467;
  font-weight: 600;
  text-decoration: none;
}

.withdraw-pending-check {
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.withdraw-pending-check:disabled {
  cursor: default;
  opacity: 0.6;
}

/* === Deposit view (019) === */
.withdraw-switch {
  background: none;
  border: none;
  color: #475467;
  cursor: pointer;
  display: block;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin: 14px auto 0;
  text-decoration: underline;
}

.withdraw-switch:hover {
  color: #101828;
}

.withdraw-back {
  left: 0;
  right: auto;
}

.deposit-lead {
  color: #344054;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 12px;
  text-align: center;
}

.deposit-address {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.deposit-address code {
  color: #101828;
  flex: 1;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.deposit-copy {
  background: #1a1a2e;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
}

.deposit-copy:disabled {
  cursor: default;
  opacity: 0.6;
}

.deposit-row {
  margin-top: 12px;
}

.deposit-hash {
  font-size: 12px !important;
}

.deposit-or {
  color: #98a2b3;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}

.deposit-status {
  color: #344054;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin-top: 12px;
  text-align: center;
}

.deposit-warning {
  border-top: 1px solid #eaecf0;
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
  margin-top: 14px;
  padding-top: 10px;
  text-align: center;
}

.withdraw-note-link {
  color: #b42318;
  font-weight: 700;
  text-decoration: underline;
}

/* === Energy shop (feature 020) === */
/* Ховер как у баланса (.dashboard-points.is-withdrawable): мягкая пилюля-подложка. */
body[data-page="dashboard"] .dashboard-energy.is-shoppable {
  border-radius: 99px;
  cursor: pointer;
  margin: -4px -8px;
  padding: 4px 8px;
  transition: background 0.15s;
}

body[data-page="dashboard"] .dashboard-energy.is-shoppable:hover {
  background: rgba(16, 24, 40, 0.06);
}

body[data-page="dashboard"] .dashboard-energy.is-shoppable:focus-visible {
  background: rgba(16, 24, 40, 0.06);
  outline: 2px solid #101828;
  outline-offset: 2px;
}

.energy-shop-modal {
  padding-bottom: 20px;
}

.energy-shop-counter {
  align-items: center;
  display: flex;
  gap: 10px;
  height: 80px;
  justify-content: center;
  margin-top: 16px;
}

.energy-shop-counter-value {
  color: #101828;
  font-family: "Fraunces", serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 80px;
}

.energy-shop-lead {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 0;
  text-align: center;
}

.energy-shop-packs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.energy-pack {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
}

.energy-pack:hover {
  border-color: #d0d5dd;
}

.energy-pack.is-cooldown {
  background: #fcfcfd;
}

.energy-pack-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.energy-pack-fights {
  align-items: center;
  color: #101828;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  gap: 6px;
  line-height: 20px;
}

.energy-pack-price {
  align-items: center;
  color: #475467;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  gap: 6px;
  line-height: 16px;
}

.energy-pack-buy {
  background: #101828;
  border: none;
  border-radius: 99px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  line-height: 20px;
  min-width: 96px;
  padding: 0 18px;
  transition: background 0.15s, opacity 0.15s;
}

.energy-pack-buy:hover:not(:disabled) {
  background: #1d2939;
}

.energy-pack-buy:disabled {
  cursor: default;
  opacity: 0.55;
}

.energy-pack-buy.is-cooldown {
  background: #eaecf0;
  color: #475467;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.energy-pack-buy.is-poor {
  background: #fef3f2;
  color: #b42318;
  opacity: 1;
}

.energy-shop-modal .withdraw-error {
  margin-top: 14px;
  text-align: center;
}

.withdraw-admin-preview {
  color: #667085;
  margin-top: 6px;
}

.withdraw-admin-preview .withdraw-note-link {
  color: #475467;
}

/* Economy sub-tabs (admin) */
.admin-subnav {
  flex-wrap: wrap;
}

.admin-subnav .admin-nav-btn {
  font-size: 13px;
  min-height: 32px;
  min-width: 0;
  padding: 0 12px;
}

.admin-stat-value {
  overflow-wrap: anywhere;
}

/* Окно покупки питомца (024). Визуально — та же карточка, что у вывода. */
.petbuy-overlay {
  align-items: center;
  background: rgba(16, 24, 40, 0.6);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 96;
}

.petbuy-overlay.hidden {
  display: none;
}

.petbuy-modal {
  animation: withdraw-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.24);
  box-sizing: border-box;
  max-width: 360px;
  padding: 24px;
  width: 100%;
}

.petbuy-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.petbuy-title {
  color: #101828;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.petbuy-close {
  align-items: center;
  background: #f2f4f7;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.petbuy-price {
  align-items: center;
  color: #101828;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  gap: 8px;
  line-height: 44px;
  margin-top: 16px;
}

/* Монета Points вместо слова: та же иконка, что в шапке. */
.petbuy-coin {
  display: inline-block;
  height: 16px;
  vertical-align: -2px;
  width: 16px;
}

.petbuy-coin--lg {
  height: 28px;
  vertical-align: 0;
  width: 28px;
}

/* На тёмной кнопке монета инвертируется: тёмный кружок стал бы невидимым. */
.petbuy-coin--btn {
  filter: invert(1);
  margin: 0 4px 0 2px;
  vertical-align: -3px;
}

/* Кнопка гаснет, когда денег не хватает — иконка гасится вместе с ней. */
.petbuy-submit:disabled .petbuy-coin--btn {
  filter: invert(1) opacity(0.85);
}

.petbuy-sub {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  margin-top: 2px;
}

.petbuy-rows {
  border-top: 1px solid #eaecf0;
  margin-top: 16px;
  padding-top: 12px;
}

.petbuy-row {
  color: #475467;
  display: flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 14px;
  justify-content: space-between;
  padding: 4px 0;
}

.petbuy-row strong {
  align-items: center;
  color: #101828;
  display: inline-flex;
  gap: 5px;
}

.petbuy-row--missing strong {
  color: #d92d20;
}

.petbuy-row.hidden {
  display: none;
}

.petbuy-submit {
  background: #101828;
  border: none;
  border-radius: 99px;
  color: #fff;
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  margin-top: 20px;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
}

.petbuy-submit:hover:not(:disabled) {
  background: #1d2939;
}

.petbuy-submit:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.petbuy-secondary {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 99px;
  color: #101828;
  cursor: pointer;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  margin-top: 10px;
  width: 100%;
}

.petbuy-secondary:hover {
  background: #f9fafb;
}

.petbuy-secondary.hidden {
  display: none;
}

.petbuy-note {
  color: #667085;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  margin-top: 12px;
  text-align: center;
}

.petbuy-error {
  background: #fef3f2;
  border-radius: 12px;
  color: #b42318;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
}

.petbuy-error.hidden {
  display: none;
}

/* Костёр в админке (024): счётчик, кнопка и короткий огонёк после нажатия. */
.admin-burn {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.admin-burn-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-burn-label {
  color: #9a3412;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-burn-value {
  color: #7c2d12;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 32px;
}

.admin-burn-reasons {
  color: #9a3412;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 12px;
}

.admin-burn-btn {
  align-items: center;
  background: #ea580c;
  border: none;
  border-radius: 99px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
  height: 44px;
  letter-spacing: 0.04em;
  padding: 0 22px;
  transition: background 0.15s, transform 0.15s;
}

.admin-burn-btn:hover:not(:disabled) {
  background: #c2410c;
  transform: translateY(-1px);
}

.admin-burn-btn:disabled {
  background: #fdba74;
  cursor: not-allowed;
}

.admin-burn-btn .admin-burn-flame {
  font-size: 18px;
}

.burn-effect {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 200;
}

.burn-effect span {
  animation: burn-rise 2s ease-out forwards;
  bottom: -40px;
  position: absolute;
}

@keyframes burn-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-70vh) scale(1.25) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .burn-effect span {
    animation-duration: 0.01ms;
  }
}

/* === Публичный реплей боя (гость по шаренной ссылке) ====================== */
/* В шапке остаются логотип и кнопка входа: вкладки, счётчики и бургер — это
   инструменты своего кабинета, гостю показывать нечего. */
.topbar-signin {
  align-items: center;
  background: var(--gray-900);
  border: 0;
  border-radius: 99px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Figtree", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  padding: 0 20px;
}

.topbar-signin:hover {
  opacity: 0.9;
}

body.is-public-replay .dashboard-tabs,
body.is-public-replay .topbar-cluster,
body.is-public-replay .arena-history-panel,
body.is-public-replay .arena-panel-actions {
  display: none !important;
}

/* Без вкладок середина шапки пустая — прижимаем вход к правому краю. */
body.is-public-replay[data-page="dashboard"] .dashboard-topbar {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

/* ---- Admin · Expeditions tab (026) — mirrors expedition-demo/admin.html ---- */
.xa { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.xa.is-saving { opacity: 0.6; pointer-events: none; }
.xa-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 24px; padding: 20px; }
.xa-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 24px; }
.xa-card h4 { margin: 18px 0 8px; font-size: 14px; line-height: 20px; }
.xa-hint { margin: 0 0 14px; color: var(--gray-500); font-size: 13px; line-height: 18px; }
.xa-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.xa-toolbar .xa-hint { margin-bottom: 0; }
.xa-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xa-row--wrap { flex-wrap: wrap; row-gap: 8px; }
.xa-row--wrap select, .xa-row--wrap input[type="number"] { height: 32px; }
.xa-row--wrap input[type="number"] { width: 72px; }
.xa-row--wrap input[type="text"] { min-width: 220px; }
.xa-row--tight { gap: 6px; flex-wrap: nowrap; }
.xa-row--end { justify-content: flex-end; margin-top: 14px; }
.xa-row--between { justify-content: space-between; }
.xa-row--grant { align-items: stretch; }
.xa-row--grant textarea { flex: 1; min-width: 240px; }
.xa-col { display: flex; flex-direction: column; gap: 8px; }
.xa-reason { margin-top: 14px; }
.xa-reason input { flex: 1; min-width: 240px; }
.xa-label { font-size: 13px; font-weight: 600; color: #344054; }
.xa-seg { display: inline-flex; padding: 3px; background: #f2f4f7; border: 1px solid var(--gray-200); border-radius: 999px; }
.xa-seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; }
.xa-seg button.on { background: var(--gray-900); color: #fff; }
.xa-stats { margin-top: 4px; }
.xa-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.xa-stat-small { display: block; margin-top: 2px; color: var(--gray-500); font-size: 12px; line-height: 16px; }
.xa-stat--warn { border-color: #fedf89; background: #fffaeb; }
.xa-tw { overflow-x: auto; }
.xa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xa-table th { text-align: left; color: var(--gray-500); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.xa-table td { padding: 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.xa-table tr:last-child td { border-bottom: 0; }
.xa-table--tight td { padding: 6px 10px; }
.xa-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xa-row--hidden .xa-boss img { filter: grayscale(1); opacity: 0.6; }
.xa-boss { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.xa-boss img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--gray-200); flex: 0 0 40px; }
.xa-boss-name { font-weight: 700; }
.xa-boss-coll { color: var(--gray-500); font-size: 12px; }
.xa-boss-coll a { color: inherit; }
.xa-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #344054; }
.xa-muted { color: var(--gray-500); white-space: nowrap; }
.xa-ok { color: #027a48; font-weight: 600; font-size: 12px; white-space: nowrap; }
.xa-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.xa-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.xa-pill--open { background: #ecfdf3; color: #027a48; }
.xa-pill--hidden { background: #f2f4f7; color: var(--gray-500); }
.xa-pill--warn { background: #fffaeb; color: #b54708; }
.xa-pill--err { background: #fef3f2; color: #b42318; }
.xa input[type="number"], .xa input[type="text"], .xa select, .xa textarea { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 8px; background: #fff; }
.xa input.xa-fee, .xa input.xa-energy { width: 84px; text-align: right; }
.xa input.xa-addr { width: 150px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.xa textarea { width: 100%; box-sizing: border-box; }
.xa-fields { display: grid; gap: 12px 16px; }
.xa-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xa-fields--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xa-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #344054; }
.xa-field input { width: 100%; box-sizing: border-box; }
.xa-bar { position: relative; height: 6px; border-radius: 3px; background: #f2f4f7; min-width: 80px; }
.xa-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #12b76a; }
.xa-journal { list-style: none; margin: 0; padding: 0; }
.xa-journal li { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 8px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f2f4f7; font-size: 12px; }
.xa-journal li:last-child { border-bottom: 0; }
.xa-btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.xa-btn-primary { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.xa-btn-primary:disabled { opacity: 0.5; }
@media (max-width: 900px) { .xa-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .xa-fields--3, .xa-fields--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xa-journal li { grid-template-columns: 1fr; } }

/* Expeditions (026): three dashboard tabs must stay on one row on phones. */
@media (max-width: 640px) {
  body[data-page="dashboard"] .dashboard-tabs { display: flex; width: 100%; box-sizing: border-box; justify-self: stretch; }
  body[data-page="dashboard"] .dashboard-tab { flex: 1 1 0; min-width: 0; width: auto; padding: 0 6px; font-size: 13px; justify-content: center; }
}
