@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Inter:wght@500;600;700;800;900&family=Marcellus+SC&display=swap");

:root {
  color-scheme: dark;
  /*
    Legends & Legacy typography V1:
    Cinzel sells the BRAND.
    Marcellus SC sells the FANTASY.
    Inter explains the GAME.

    When readability and atmosphere conflict, Inter wins. No elf tongue.
  */
  --font-brand: "Cinzel", Georgia, serif;
  --font-fantasy: "Marcellus SC", Georgia, serif;
  --font-game: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #080a0f;
  --panel: #111722;
  --panel-2: #171f2c;
  --line: #30394a;
  --text: #edf2ff;
  --muted: #94a3b8;
  --danger: #f04444;
  --common: #e5e7eb;
  --uncommon: #37c871;
  --rare: #4da3ff;
  --epic: #a56cff;
  --legendary: #f59e0b;
  --mythic: #5eead4;
  --tier-green: #37c871;
  --tier-purple: #a56cff;
  --tier-silver: #cbd5e1;
  --tier-gold: #f4bf45;
  --tier-holographic: #5eead4;
  --app-background-image: url("../medias/general-background-dark-blue-v1.png");
  --scroll-panel-image: url("../medias/all-fields-background-scroll-v1.png");
  --combat-hand-background-image: url("../medias/battle-hand-background-v4.png");
  --app-stage-reference-width: 1440px;
  --app-stage-reference-height: 900px;
  --app-stage-scale: 1;
  --card-width: 132px;
  --card-height: 188px;
  --battlefield-width: 344px;
  --battlefield-height: calc((var(--card-height) * 3) + 87px);
  --battlefield-presentation-width: 304px;
  --battlefield-presentation-height: 270px;
  --referee-picking-width: 262px;
  --referee-picking-height: 216px;
  --played-card-height: 202px;
  --played-card-width: calc(var(--played-card-height) * 132 / 188);
  --carpet-inner-gap: 5px;
  --combat-carpet-width: calc(var(--played-card-width) + 22px);
  --combat-carpet-height: calc((var(--played-card-height) * 3) + (var(--carpet-inner-gap) * 2) + 14px);
  --fighter-width: clamp(330px, calc((100% - var(--battlefield-width) - (var(--combat-carpet-width) * 2) - 8px) / 2), 400px);
  --combat-column-gap: clamp(2px, calc((100% - ((var(--fighter-width) * 2) + (var(--combat-carpet-width) * 2) + var(--battlefield-width))) / 4), 13px);
  --play-shell-height: 76px;
  --play-arena-hand-gap: 2px;
  --combat-hand-height: calc(var(--app-stage-reference-height) - var(--play-shell-height) - var(--battlefield-height) - var(--play-arena-hand-gap) - 1px);
  --combat-hand-title-height: 12px;
  --combat-hand-title-top: 0px;
  --combat-card-height: min(166px, calc(var(--combat-hand-height) - 4px));
  --combat-card-width: calc(var(--combat-card-height) * 98 / 140);
  --combat-card-gap: 8px;
  --prefight-bottom-field-lift: 2px;
  --prefight-control-offset: 58px;
  --card-front-image: url("../medias/card-front-common.png");
  --card-back-image: url("../medias/card-back-v1.png");
  --played-carpet-image: url("../medias/carpet-display-v1.png");
  --home-background-dim-opacity: 0.08;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-game);
  font-weight: 600;
}

.app-background {
  background-color: #030508;
  background-image: linear-gradient(rgba(1, 3, 7, 0.42), rgba(1, 3, 7, 0.5)), var(--app-background-image);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.is-home {
  min-height: 100vh;
  overflow: hidden;
  background-color: #050507;
  background-image: none;
  --site-background-image: url("/medias/Home%20page%20elements/background-home-page.png");
}

body.is-profile {
  min-height: 100vh;
  overflow: hidden;
  background-color: #050507;
  background-image: none;
  --site-background-image: url("/medias/Home%20page%20elements/background-home-page.png");
}

body.is-collection {
  min-height: 100vh;
  overflow: hidden;
  background-color: #050507;
  background-image: url("/medias/My%20collection%20page%20elements/background-collection.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.is-buy-packs {
  min-height: 100vh;
  overflow: hidden;
  background-color: #050507;
  background-image: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.42)), url("/medias/My%20collection%20page%20elements/background-collection.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.is-rankings {
  min-height: 100vh;
  overflow: hidden;
  background-color: #050507;
  background-image: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32)), url("/medias/general-background-dark-blue-v1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.is-home::before,
body.is-profile::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(0, 0, 0, var(--home-background-dim-opacity, 0.18)), rgba(0, 0, 0, var(--home-background-dim-opacity, 0.18))), var(--site-background-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

body.is-home .app-shell::before,
body.is-profile .app-shell::before,
body.is-home .app-shell::after,
body.is-profile .app-shell::after {
  display: none;
}

body.is-play {
  background-image: linear-gradient(rgba(1, 3, 7, 0.42), rgba(1, 3, 7, 0.5)), var(--app-background-image);
  background-position: center;
  background-size: contain;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
}

body.is-forge {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background-color: #090704;
  background-image: url("/medias/Forge%20page%20elements/new-forge-background.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.app-shell {
  --home-footer-height: 64px;
  --app-logo-top: 4px;
  --app-logo-width: 216px;
  --home-play-top: 10.1%;
  --home-secondary-upper-top: 25.6%;
  --home-secondary-lower-top: 58.5%;
  --home-left-x: 20%;
  --home-right-x: 20%;
  --home-rankings-left-x: 20%;
  --home-forge-right-x: 20%;
  --home-pvp-bottom: 7%;
  --home-play-width: 295.2px;
  --home-secondary-width: 216px;
  --home-pvp-width: var(--home-secondary-width);
  --home-play-illustration-size: 192.96px;
  --home-secondary-illustration-size: 82.08px;
  --home-pvp-illustration-size: 74.88px;
  --home-feature-gap: 4px;
  --home-feature-copy-gap: 5px;
  --home-secondary-copy-width: 27ch;
  --home-copy-shadow: 0 2px 5px #000, 0 0 10px rgba(0, 0, 0, 0.95), 0 0 6px rgba(255, 216, 125, 0.22);
  --home-menu-button-width: 124px;
  --home-menu-button-height: 70px;
  --home-menu-frame-width: 318px;
  --home-menu-frame-height: calc(var(--home-menu-frame-width) * 1439 / 1093);
  --home-menu-inner-left: calc(var(--home-menu-frame-width) * 230 / 1093);
  --home-menu-inner-top: calc(var(--home-menu-frame-height) * 230 / 1439);
  --home-menu-inner-width: calc(var(--home-menu-frame-width) * 640 / 1093);
  --home-menu-inner-height: calc(var(--home-menu-frame-height) * 980 / 1439);
  --home-menu-inner-padding-x: 7px;
  --home-menu-inner-padding-y: 8px;
  --home-menu-row-height: 33px;
  --home-menu-row-gap: 5px;
  --home-menu-icon-size: 21px;
  --home-menu-icon-gap: 8px;
  --home-menu-font-size: 13px;
  --home-wallet-button-size: 60px;
  --home-wallet-frame-size: 240px;
  --home-wallet-inner-left: calc(var(--home-wallet-frame-size) * 130 / 1254);
  --home-wallet-inner-top: calc(var(--home-wallet-frame-size) * 200 / 1254);
  --home-wallet-inner-width: calc(var(--home-wallet-frame-size) * 992 / 1254);
  --home-wallet-inner-height: calc(var(--home-wallet-frame-size) * 830 / 1254);
  --home-wallet-inner-padding: calc(var(--home-wallet-frame-size) * 0.025);
  --home-wallet-panel-top: 44px;
  --home-wallet-font-size: calc(var(--home-wallet-frame-size) * 0.04375);
  --home-wallet-row-height: calc(var(--home-wallet-frame-size) * 0.075);
  --home-wallet-row-gap: calc(var(--home-wallet-frame-size) * 0.0167);
  --home-wallet-resource-icon-size: calc(var(--home-wallet-frame-size) * 0.0708);
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  min-height: 0;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  transform: translate(-50%, -50%) scale(var(--app-stage-scale));
  transform-origin: center center;
}

.global-menu,
.account-hud,
.app-logo {
  position: fixed;
  top: 12px;
  z-index: 1000;
}

.app-logo {
  top: var(--app-logo-top);
  left: 50%;
  z-index: 1001;
  width: var(--app-logo-width);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.global-menu {
  left: 12px;
}

.global-home-button {
  width: var(--home-menu-button-width);
  height: calc(var(--home-menu-button-width) * 821 / 1916);
  min-height: calc(var(--home-menu-button-width) * 821 / 1916);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/medias/Home%20page%20elements/global-home-button.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.75));
}

.global-home-button:hover,
.global-home-button:focus-visible,
.global-home-button.is-active {
  outline: none;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 10px rgba(255, 224, 140, 0.42));
}

.account-hud {
  right: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #20293a;
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
}

button.primary {
  background: #f4bf45;
  color: #15100a;
  border-color: #f4bf45;
  font-weight: 800;
}

button.small {
  min-height: 30px;
  padding: 0 10px;
  margin: 6px 0;
  font-size: 12px;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.lock-image-action,
button.locked-decision-action,
button.referee-presentation-action,
button.reaction-presentation-action {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border-color: transparent;
  background-color: transparent;
  color: transparent;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

button.lock-image-action,
button.locked-decision-action {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-indent: -9999px;
}

button.lock-image-action {
  background-image: url("../medias/click-to-lock-button-v1.png");
}

button.locked-decision-action {
  background-image: url("../medias/card-back-knife-v1.png");
}

button.referee-presentation-action {
  display: grid;
  place-items: center;
}

button.locked-decision-action:disabled,
button.referee-presentation-action:disabled,
button.reaction-presentation-action:disabled {
  cursor: default;
  opacity: 1;
}

button.reaction-presentation-action {
  display: grid;
  place-items: center;
  cursor: default;
}

.referee-picking-image,
.referee-reaction-image {
  position: absolute;
  display: block;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.referee-picking-image {
  top: 50%;
  left: 50%;
  width: var(--referee-picking-width);
  height: var(--referee-picking-height);
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.referee-reaction-image {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

[hidden] {
  display: none !important;
}

input,
select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d111a;
  color: var(--text);
  padding: 0 12px;
}

.shell {
  width: min(1640px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 76px 0 4px;
}

body.is-play .shell {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  min-height: 0;
  max-height: var(--app-stage-reference-height);
  margin: 0;
  padding: var(--play-shell-height) 0 0;
  overflow: hidden;
}

body.is-play .app-shell {
  --fighter-width: 380px;
}

.home-view {
  height: var(--app-stage-reference-height);
  min-height: 0;
  display: grid;
  grid-template-rows: calc(var(--app-stage-reference-height) - var(--home-footer-height)) var(--home-footer-height);
}

.home-stage {
  position: relative;
  width: var(--app-stage-reference-width);
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  isolation: isolate;
}

.home-destination {
  position: absolute;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: start;
  gap: var(--home-feature-gap);
  width: var(--home-secondary-width);
  text-align: center;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.76));
}

.home-destination-copy {
  position: absolute;
  display: grid;
  place-items: start center;
  color: #fff1c8;
  font-family: var(--font-fantasy);
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
  text-shadow: var(--home-copy-shadow);
  overflow: hidden;
  overflow-wrap: normal;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.76));
}

.home-destination-copy:is(p) {
  min-height: 2.45em;
  margin: 0;
  font-size: 13px;
  line-height: 1.12;
}

.home-destination-copy:is(h2) {
  color: #dfefff;
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.home-floating {
  width: var(--home-secondary-illustration-size);
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
}

.home-floating-play {
  width: var(--home-play-illustration-size);
}

.home-floating-pvp {
  width: var(--home-pvp-illustration-size);
  opacity: 0.9;
}

.home-art-button {
  width: 100%;
  min-height: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.72));
}

.home-art-button img {
  display: block;
  width: 100%;
  height: auto;
}

.home-art-button:hover,
.home-art-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  filter: drop-shadow(0 0 12px rgba(255, 224, 140, 0.55)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.78));
}

.home-play-button {
  width: var(--home-play-width);
}

.home-destination-play {
  left: 50%;
  top: var(--home-play-top);
  width: var(--home-play-width);
  transform: translateX(-50%);
}

.home-copy-play {
  min-height: 1.3em;
  font-size: 15.5px;
  text-transform: uppercase;
}

.home-destination-profile {
  left: var(--home-left-x);
  top: var(--home-secondary-upper-top);
}

.home-destination-collect {
  right: var(--home-right-x);
  top: var(--home-secondary-upper-top);
}

.home-destination-rankings {
  left: var(--home-rankings-left-x);
  top: var(--home-secondary-lower-top);
}

.home-destination-forge {
  right: var(--home-forge-right-x);
  top: var(--home-secondary-lower-top);
}

.home-destination-pvp {
  left: 50%;
  bottom: var(--home-pvp-bottom);
  width: var(--home-pvp-width);
  transform: translateX(-50%);
  opacity: 0.94;
}

.home-destination-pvp .home-art-button {
  width: var(--home-pvp-width);
}

.home-copy-pvp-title {
  color: #dfefff;
  font-size: 14px;
  text-transform: uppercase;
}

.home-copy-pvp {
  color: #a9d7ff;
  min-height: 1.15em;
  font-size: 13.25px;
  text-transform: uppercase;
}

.home-destination-buy-packs {
  left: 50%;
  top: 71%;
  width: 235px;
  transform: translateX(-50%);
}

.home-pack-fan {
  width: 210px;
  aspect-ratio: auto;
}

.home-buy-packs-button {
  width: 100%;
}

.home-destination.is-soon .home-art-button {
  cursor: default;
  opacity: 0.78;
}

.home-footer {
  min-height: var(--home-footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 20px 12px;
  color: #d8c18d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 5px #000;
}

.home-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-socials span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff1c8;
  font-size: 10px;
  text-shadow: 0 2px 5px #000, 0 0 8px rgba(255, 224, 140, 0.32);
}

.profile-view {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  padding: 0;
}

.profile-stage {
  position: relative;
  --profile-title-top: -18px;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.profile-view[data-profile-error]::after {
  content: attr(data-profile-error);
  position: absolute;
  left: 50%;
  bottom: 10px;
  max-width: 520px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(255, 119, 119, 0.6);
  border-radius: 4px;
  background: rgba(16, 6, 8, 0.9);
  color: #ffd2d2;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 3px #000;
  z-index: 20;
}

.profile-column {
  display: contents;
}

.profile-field {
  position: absolute;
  min-width: 0;
  min-height: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.64));
  isolation: isolate;
}

.profile-field-vertical {
  background-image: url("/medias/Profile%20page%20elements/left-top-frame.png");
}

.profile-field-current {
  background-image: url("/medias/Profile%20page%20elements/right-bottom-frame.png");
}

.profile-field-history {
  background-image: url("/medias/Profile%20page%20elements/left-bottom-frame.png");
}

.profile-field-wallet {
  background-image: url("/medias/Profile%20page%20elements/right-top-frame.png");
}

.profile-field-social {
  background-image: url("/medias/Profile%20page%20elements/right-bottom-frame.png");
}

.profile-field-my-fighters {
  background-image: url("/medias/Profile%20page%20elements/central-frame.png");
}

.profile-field-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 210px;
  height: 70px;
  display: grid;
  place-items: center;
  transform: none;
  background-image: url("/medias/Profile%20page%20elements/title-field.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 3;
  pointer-events: none;
}

.profile-field-title span {
  color: #ffe8ad;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(255, 220, 140, 0.35);
}

.profile-field-body {
  position: absolute;
  inset: 38px 24px 22px;
  min-width: 0;
  min-height: 0;
  color: #f5ead1;
  text-shadow: 0 2px 4px #000;
}

.profile-field-legacy .profile-field-body {
  left: var(--profile-text-left, 36px);
  top: var(--profile-text-top, 34px);
  right: auto;
  bottom: auto;
  width: var(--profile-text-width, 228px);
  height: var(--profile-text-height, 24px);
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
}

.profile-field-legacy .profile-input {
  width: min(100%, 226px);
  min-height: 30px;
  height: 30px;
  text-align: center;
}

.profile-field-current .profile-field-body {
  display: grid;
  justify-items: center;
  align-content: start;
}

.profile-display-value,
.profile-empty {
  max-width: 100%;
  margin: 0;
  color: #fff2c6;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-input {
  width: 100%;
  min-height: 31px;
  border: 1px solid rgba(255, 218, 137, 0.45);
  border-radius: 4px;
  background: rgba(7, 10, 16, 0.82);
  color: #fff8df;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.profile-art-action {
  width: 118px;
  height: 50px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  color: transparent;
  text-indent: -9999px;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.72));
}

.profile-floating-action {
  position: absolute;
  z-index: 9;
}

.profile-art-action:hover:not(:disabled),
.profile-art-action:focus-visible:not(:disabled) {
  outline: none;
  filter: drop-shadow(0 0 9px rgba(255, 224, 140, 0.6)) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.78));
}

.profile-legacy-edit-action,
.profile-social-edit-action {
  background-image: url("/medias/Profile%20page%20elements/edit-button.png");
}

.profile-legacy-save-action,
.profile-social-save-action,
.profile-upgrade-save-action {
  background-image: url("/medias/Profile%20page%20elements/save-button.png");
}

.profile-upgrade-edit-action {
  background-image: url("/medias/Profile%20page%20elements/upgrade-button.png");
}

.profile-wallet-scan-action {
  width: 150px;
  height: 64px;
  background-image: url("/medias/Profile%20page%20elements/scan-wallet-button.png");
}

.profile-set-current {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  height: 81px;
  transform: none;
  background-image: url("/medias/Profile%20page%20elements/set-as-current-button.png");
  z-index: 9;
}

.profile-current-fighter-wrap {
  width: 158px;
  margin: 0 auto 5px;
}

.profile-fighter-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1086 / 1448;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  padding: 15% 15% 12%;
  color: #fff1c8;
  overflow: visible;
  transform-origin: center center;
  transition: filter 150ms ease, transform 150ms ease;
}

.profile-fighter-card.is-interactive {
  cursor: pointer;
}

.profile-fighter-card.is-display {
  cursor: default;
  pointer-events: none;
}

.profile-fighter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--profile-fighter-frame);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.profile-fighter-card:hover,
.profile-fighter-card:focus-visible {
  z-index: 20;
  outline: none;
  transform: scale(1.12);
  filter: drop-shadow(0 0 13px rgba(255, 224, 140, 0.68)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.86));
}

.profile-fighter-card.is-selected {
  filter: drop-shadow(0 0 12px rgba(255, 218, 120, 0.88));
}

.profile-fighter-card.is-selected:hover,
.profile-fighter-card.is-selected:focus-visible {
  filter: drop-shadow(0 0 16px rgba(255, 218, 120, 0.95)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.86));
}

.profile-fighter-card.is-current::after {
  content: "CURRENT";
  position: absolute;
  left: 21%;
  right: 21%;
  top: 10%;
  color: #fff8da;
  font-family: var(--font-brand);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(255, 224, 140, 0.65);
  z-index: 4;
}

.profile-fighter-art-wrap {
  position: absolute;
  left: 22%;
  top: 15.5%;
  width: 56%;
  height: 39%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #07090d;
  z-index: 1;
}

.profile-fighter-art {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  transform: none;
}

.profile-fighter-meta {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 55.8%;
  display: grid;
  gap: 2px;
  color: #fff0bd;
  font-size: 9px;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 3px #000;
  z-index: 3;
}

.profile-fighter-meta em {
  color: #d8edff;
  font-style: normal;
}

.profile-fighter-stats {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 9.5%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 226, 151, 0.28);
  border-radius: 4px;
  background: rgba(2, 4, 7, 0.9);
  box-shadow: inset 0 0 11px rgba(0, 0, 0, 0.86), 0 0 6px rgba(255, 217, 130, 0.08);
  font-size: 9px;
  line-height: 1.42;
  z-index: 3;
}

.profile-fighter-stats span {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  border-top: 1px solid rgba(255, 226, 151, 0.13);
}

.profile-fighter-stats span:nth-child(1),
.profile-fighter-stats span:nth-child(2) {
  border-top: 0;
}

.profile-fighter-card.is-compact:hover,
.profile-fighter-card.is-compact:focus-visible {
  transform: none;
}

.profile-current-details {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 0 4px;
  color: #d9e9ff;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}

.profile-season-points {
  margin: 0 0 4px;
  color: #fbd37f;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.profile-upgrade-stats {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
}

.profile-upgrade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 20px 20px;
  align-items: center;
  gap: 3px;
  min-height: 20px;
  font-size: 10px;
}

.profile-upgrade-row strong {
  color: #fff3c0;
  text-align: right;
}

.profile-upgrade-row button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 218, 130, 0.16);
  border-color: rgba(255, 230, 164, 0.45);
}

.profile-history-grid {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px;
}

.profile-history-records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
}

.history-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  text-align: center;
}

.profile-history-item {
  min-width: 0;
  font-size: 10px;
  line-height: 1.05;
}

.profile-history-icon {
  width: 52px;
  height: 40px;
  display: grid;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40px 40px;
  filter: brightness(1.55) saturate(1.1) drop-shadow(0 0 10px rgba(255, 213, 120, 0.58)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9));
}

.profile-history-icon img {
  display: none;
}

.history-metric-fights-png .profile-history-icon {
  background-image: url("/medias/Profile%20page%20elements/FIGHTS.png");
  background-position: calc(50% - 0.5px) center;
}

.history-metric-wins-png .profile-history-icon {
  background-image: url("/medias/Profile%20page%20elements/WINS.png");
  background-position: calc(50% + 3px) center;
}

.history-metric-losses-png .profile-history-icon {
  background-image: url("/medias/Profile%20page%20elements/LOSSES.png");
}

.history-metric-best-rank-png .profile-history-icon {
  background-image: url("/medias/Profile%20page%20elements/BEST_RANK.png");
  background-position: calc(50% + 1.5px) center;
}

.profile-history-item > span:not(.profile-history-icon) {
  width: 100%;
  min-height: 12px;
  text-align: center;
}

.profile-history-item strong {
  width: 100%;
  min-height: 16px;
  color: #fff2c2;
  font-size: 14px;
  text-align: center;
}

.profile-history-best {
  justify-self: center;
  width: 100%;
  height: 100%;
  padding: 2px 4px;
  overflow: hidden;
}

.profile-history-best strong {
  min-height: 13px;
  font-size: 10px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-field-my-fighters .profile-field-body {
  inset: 58px 58px 102px;
  overflow: visible;
}

.profile-fighter-grid {
  height: calc(100% - 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 276px;
  gap: 18px 20px;
  align-content: start;
  overflow-y: auto;
  overflow-x: visible;
  padding: 22px 10px 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 222, 146, 0.42) transparent;
}

.profile-fighter-grid .profile-fighter-card {
  width: 190px;
  justify-self: center;
}

.profile-fighter-zoom {
  display: none;
}

.profile-wallet .profile-field-body,
.profile-field-wallet .profile-field-body {
  left: var(--profile-text-left, 38px);
  top: var(--profile-text-top, 142px);
  right: auto;
  bottom: auto;
  width: var(--profile-text-width, 224px);
  height: var(--profile-text-height, 120px);
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
}

.profile-wallet-results {
  width: 100%;
  max-width: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.profile-wallet-results strong {
  color: #fff1bd;
  font-family: var(--font-brand);
  font-size: 16px;
}

.profile-wallet-results span {
  color: #b9c8de;
  font-size: 10px;
  text-transform: uppercase;
}

.profile-field-social .profile-field-body {
  inset: 54px 42px 42px;
  display: grid;
  grid-template-rows: auto 50px;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 0;
}

.profile-field-social label {
  width: 100%;
  display: grid;
  gap: 3px;
  color: #f6d38f;
  font-size: 10px;
}

.profile-social-form {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.profile-social-edit-item {
  width: min(100%, 190px);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.profile-social-lines {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.profile-social-lines p {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(100%, 190px);
  margin: 0;
  font-size: 12px;
  text-align: center;
}

.profile-social-glyph {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 224, 140, 0.38);
  border-radius: 50%;
  color: #ffe09a;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 2px 4px #000, 0 0 7px rgba(255, 216, 119, 0.45);
  box-shadow: inset 0 0 8px rgba(255, 208, 102, 0.1);
}

.profile-social-lines strong {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
}

.collection-view {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  padding: 38px 18px 6px;
}

.buy-packs-view {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  padding: 0;
}

.placeholder-view {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  padding: 0;
}

.rankings-view {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  padding: 0;
}

.placeholder-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.rankings-page-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.rankings-stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.rankings-stage > * {
  position: absolute;
}

.rankings-double-frame {
  z-index: 1;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.rankings-panel,
.rankings-my-rank-panel,
.rankings-top-slot,
.rankings-table-area,
.rankings-title {
  z-index: 2;
}

.rankings-panel,
.rankings-my-rank-panel,
.rankings-top-slot,
.rankings-table-area {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rankings-title {
  display: grid;
  place-items: center;
  margin: 0;
  color: #ffe6a3;
  font-family: var(--font-brand);
  font-size: 28px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 5px #000, 0 0 12px rgba(255, 189, 63, 0.5);
}

.rankings-my-rank-title {
  font-size: 22px;
}

.rankings-top-slot {
  display: block;
  padding: 0;
  color: #f8efd2;
  text-align: center;
  font-family: var(--font-game);
  font-size: 12px;
  overflow: visible;
  transition: filter 160ms ease;
}

.rankings-top-composition {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 180ms ease, filter 180ms ease;
  transform-origin: center center;
  will-change: transform;
}

.rankings-top-slot:hover {
  z-index: 90 !important;
}

.rankings-top-slot:hover .rankings-top-composition {
  filter: drop-shadow(0 0 16px rgba(255, 214, 126, 0.42));
  transform: scale(1.12);
}

.rankings-top-frame {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.rankings-top-pfp-slot {
  position: absolute;
  min-width: 0;
  min-height: 0;
}

.rankings-top-pfp-slot {
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.rankings-top-pfp-slot.is-empty {
  opacity: 0;
}

.rankings-top-pfp-slot .rankings-pfp,
.rankings-top-pfp-slot .rankings-pfp.nft-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.rankings-medal {
  color: #ffd369;
  font-family: var(--font-brand);
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255, 194, 69, 0.64);
}

.rankings-pfp {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(255, 214, 126, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(244, 191, 69, 0.28);
}

.rankings-pfp.nft-image {
  position: static;
  width: 58px;
  height: 58px;
  max-width: 58px;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.rankings-pfp-fallback,
.rankings-pfp-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 231, 166, 0.82);
  font-family: var(--font-brand);
  font-size: 15px;
}

.rankings-pfp-empty {
  opacity: 0.28;
}

.rankings-table-area {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 8px;
}

.rankings-table {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  align-content: start;
  color: #eaf2ff;
  font-family: var(--font-game);
  font-size: 10px;
}

.rankings-table-row {
  display: grid;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  gap: 6px;
  border: 1px solid rgba(151, 178, 226, 0.18);
  background: rgba(7, 10, 17, 0.62);
}

.rankings-table-valor .rankings-table-row {
  grid-template-columns: 42px minmax(120px, 1fr) 58px 42px 54px 48px;
}

.rankings-table-collector .rankings-table-row {
  grid-template-columns: 38px minmax(120px, 1fr) 76px 96px;
}

.rankings-table-row.is-header {
  min-height: 21px;
  color: #ffd98a;
  font-family: var(--font-brand);
  font-size: 9px;
  letter-spacing: 0;
  background: rgba(51, 31, 6, 0.62);
}

.rankings-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-empty-row {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px;
  color: rgba(255, 231, 166, 0.72);
  font-family: var(--font-brand);
  font-size: 12px;
  text-align: center;
}

.rankings-my-rank-empty {
  width: 100%;
  height: 100%;
}

.rankings-my-rank-card {
  display: grid;
  grid-template-rows: 18px 1fr 1fr;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  height: 100%;
  padding: 5px 10px;
  color: #f8efd2;
  font-family: var(--font-game);
  font-size: 10px;
}

.rankings-my-rank-line {
  display: grid;
  grid-template-columns: minmax(116px, 1.35fr) minmax(82px, 0.9fr) minmax(58px, 0.65fr) minmax(76px, 0.8fr) minmax(72px, 0.7fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rankings-my-rank-header {
  color: #ffd98a;
  font-family: var(--font-brand);
  font-size: 8px;
  text-transform: uppercase;
}

.rankings-my-rank-card strong {
  color: #fff4c6;
  font-family: var(--font-fantasy);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-my-rank-card span {
  color: #dbe8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-packs-stage {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.buy-packs-stage > * {
  position: absolute;
}

.buy-packs-field > .buy-ui-art,
.buy-panel > .buy-ui-art,
.buy-session-panel > .buy-ui-art,
.buy-quantity-field > .buy-ui-art,
.buy-price-field > .buy-ui-art {
  position: absolute;
}

.buy-ui-art,
.buy-image-button img,
.buy-session-card,
.buy-pack-card,
.buy-last-card,
.buy-current-card,
.buy-rarity-glow {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.buy-ui-art,
.buy-image-button img,
.buy-session-card,
.buy-pack-card,
.buy-last-card,
.buy-current-card {
  object-fit: contain;
}

.buy-packs-field,
.buy-panel,
.buy-session-panel {
  z-index: 1;
}

.buy-packs-field > .buy-ui-art,
.buy-panel > .buy-ui-art,
.buy-session-panel > .buy-ui-art {
  inset: 0;
  z-index: 0;
}

.buy-panel > .buy-ui-art {
  filter: brightness(0.76) contrast(1.04);
}

.buy-copy {
  z-index: 3;
  color: #ffe7a4;
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(255, 218, 121, 0.5);
}

.buy-quantity-label,
.buy-total-label,
.buy-all-label {
  display: grid;
  place-items: center;
}

.buy-image-button {
  z-index: 5;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.62));
  overflow: visible;
}

.buy-image-button img,
.buy-action-label {
  grid-area: 1 / 1;
}

.buy-action-label {
  position: relative;
  z-index: 1;
  color: #ffe49a;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 2px #120906, 0 0 8px rgba(255, 212, 122, 0.55);
  pointer-events: none;
  user-select: none;
}

.buy-pack-button .buy-action-label {
  font-size: 19px;
}

.buy-image-button:disabled {
  cursor: default;
  filter: grayscale(0.62) brightness(0.68) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.62));
}

.buy-image-button:not(:disabled):active {
  transform: translateY(1px);
}

.buy-quantity-field,
.buy-price-field {
  z-index: 4;
  display: grid;
  place-items: center;
}

.buy-quantity-field .buy-ui-art,
.buy-price-field .buy-ui-art {
  inset: 0;
  z-index: 0;
}

.buy-quantity-field strong,
.buy-price-field strong {
  position: relative;
  z-index: 1;
  color: #fff6c9;
  font-family: var(--font-brand);
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 2px 4px #000;
}

.buy-ape-icon {
  z-index: 4;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.buy-pack-stack {
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.buy-pack-card {
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.7));
}

.buy-rarity-glow {
  z-index: 3;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.96;
}

.buy-current-card {
  z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.76));
}

.buy-last-card {
  z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.76));
}

.buy-last-card:not([src]) {
  display: none;
}

.buy-all-toggle {
  z-index: 5;
  display: block;
}

.buy-all-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.buy-all-checkbox,
.buy-all-checkmark {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.buy-all-checkbox {
  z-index: 5;
  background-image: url("/medias/Buy%20page%20elements/all-checkbox.png");
  cursor: pointer;
}

.buy-all-checkmark {
  background-image: url("/medias/Buy%20page%20elements/all-checkmark.png");
  display: none;
  z-index: 6;
  pointer-events: none;
}

.buy-all-checkmark.is-visible {
  display: block;
}

.buy-all-label {
  height: 100%;
}

.buy-session-cards {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.buy-session-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.68));
  pointer-events: auto;
}

.buy-session-hover-preview {
  z-index: 3600;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.84));
  transition: opacity 120ms ease, transform 150ms ease;
}

.buy-session-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.buy-add-collection-button {
  z-index: 5;
  min-height: 0;
  border: 1px solid rgba(255, 224, 140, 0.74);
  border-radius: 4px;
  background: linear-gradient(#3b2114, #170d08);
  color: #fff0bd;
  padding: 0 14px;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 4px #000;
  box-shadow: inset 0 0 16px rgba(255, 197, 93, 0.18), 0 8px 14px rgba(0, 0, 0, 0.48);
}

.buy-layout-edit-toggle {
  position: absolute;
  left: 28px;
  top: 116px;
  z-index: 3200;
  min-height: 28px;
  border-color: rgba(255, 224, 140, 0.52);
  background: rgba(20, 13, 8, 0.9);
  color: #fff0bd;
  font-size: 11px;
  font-weight: 900;
  pointer-events: auto;
}

.buy-layout-editor {
  z-index: 3300;
}

.buy-layout-selection-box {
  position: absolute;
  z-index: 3000;
  border: 2px solid rgba(255, 229, 145, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.78), 0 0 18px rgba(255, 219, 126, 0.56);
  pointer-events: auto;
  cursor: move;
}

.buy-layout-selection-box::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid #07111a;
  border-radius: 2px;
  background: #ffe08a;
  cursor: nwse-resize;
}

.buy-packs-view.is-layout-editing [data-buy-layout-key] {
  outline: 1px dashed rgba(95, 211, 255, 0.78);
  outline-offset: 2px;
  cursor: move;
}

.buy-packs-view.is-layout-editing [data-buy-layout-key].is-layout-selected {
  outline: 2px solid rgba(255, 229, 145, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 219, 126, 0.56);
}

.buy-packs-view.is-layout-editing [data-buy-layout-key].is-layout-selected::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border: 1px solid #07111a;
  border-radius: 2px;
  background: #ffe08a;
}

.collection-stage {
  position: static;
  height: 100%;
}

.collection-wallet-panel,
.collection-hand-panel {
  display: contents;
}

.collection-scan-wallet {
  position: absolute;
  margin-top: 0;
  z-index: 80;
}

.collection-achievement-panel {
  position: absolute;
  z-index: 20;
  width: 270px;
  height: 304px;
  padding: 0;
  background-image: url("/medias/My%20collection%20page%20elements/completion-tab.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #fff1be;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, 0.76));
  text-shadow: 0 2px 4px #000;
}

.collection-card-inspector {
  position: absolute;
  width: 500px;
  height: 552px;
  padding: 0;
  background-image: url("/medias/My%20collection%20page%20elements/card-display-frame.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, 0.76));
  z-index: 1150;
}

.collection-card-inspector[hidden] {
  display: none;
}

.collection-inspector-card {
  position: absolute;
  display: block;
  width: 268px;
  height: 382px;
  overflow: visible;
}

.collection-inspector-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-inspector-close {
  position: absolute;
  left: 440px;
  top: 22px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 238, 185, 0.58);
  border-radius: 50%;
  background: rgba(24, 15, 8, 0.86);
  color: #fff4d0;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 30px;
  padding: 0;
  text-align: center;
  text-shadow: 0 2px 3px #000;
  z-index: 4;
}

.collection-inspector-close:hover,
.collection-inspector-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 230, 165, 0.48);
}

.collection-achievement-global-label,
.collection-achievement-global-count,
.collection-achievement-label,
.collection-achievement-count {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  text-align: center;
  text-transform: uppercase;
}

.collection-achievement-global-label {
  font-size: 13px;
  line-height: 1;
}

.collection-achievement-global-count {
  color: #fff8dd;
  font-size: 22px;
  line-height: 1.05;
}

.collection-achievement-label,
.collection-achievement-count {
  font-size: 8px;
  font-weight: 900;
}

.collection-achievement-count {
  color: #fff8dd;
  font-size: 8px;
}

.collection-achievement-bar {
  position: absolute;
  z-index: 1;
  height: 8px;
  border: 1px solid rgba(255, 230, 165, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.collection-achievement-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
}

.collection-achievement-free-bar i {
  background: linear-gradient(90deg, #2c2c2c, #f5f5f5);
}

.collection-achievement-global-bar {
  border-color: rgba(106, 73, 16, 0.68);
  background: rgba(12, 8, 3, 0.72);
}

.collection-achievement-global-bar i {
  background: linear-gradient(90deg, #5a3705, #9f6b12);
}

.collection-achievement-basic-plus-bar i {
  background: linear-gradient(90deg, #0b5f24, #36f36e);
}

.collection-achievement-rare-bar i {
  background: linear-gradient(90deg, #073d82, #42b8ff);
}

.collection-achievement-epic-bar i {
  background: linear-gradient(90deg, #48106f, #bd5cff);
}

.collection-achievement-legendary-bar i {
  background: linear-gradient(90deg, #a43a00, #ff7a1a);
}

.collection-achievement-mythic-bar i {
  background: linear-gradient(90deg, #ff2f73, #ffd84a, #39f67d, #31c8ff, #b767ff);
}

.collection-season-badge {
  position: absolute;
  z-index: 2;
  left: 31%;
  top: 74%;
  width: 38%;
  height: 18%;
  display: grid;
  place-items: center;
}

.collection-season-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-season-badge-tag {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.collection-season-badge-tag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-page-arrow {
  z-index: 130;
}

.collection-album {
  min-width: 0;
  display: contents;
}

.collection-album-tabs {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.collection-album-tab {
  position: relative;
  height: 62px;
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/medias/My%20collection%20page%20elements/active-album-tab.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 6px 18px 8px;
  color: #fff0bd;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 4px #000;
}

.collection-album-tab em {
  color: #d5e1f0;
  font-family: var(--font-game);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.collection-album-tab strong {
  color: #fff5d2;
  font-family: var(--font-game);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.collection-album-tab.is-locked {
  background-image: url("/medias/My%20collection%20page%20elements/locked-album-tab.png");
}

.collection-album-tab.is-locked::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  background-image: url("/medias/My%20collection%20page%20elements/padlock.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.collection-book {
  position: absolute;
  width: 1050px;
  height: 461px;
  display: grid;
  place-items: center;
  background-image: url("/medias/My%20collection%20page%20elements/old-book.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.74));
}

.collection-book-grid {
  position: absolute;
  inset: 0;
}

.collection-book-decoration {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.collection-book-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-book-card {
  position: absolute;
  width: 108px;
  height: 154px;
  min-height: 154px;
  justify-self: center;
  align-self: center;
  border: 0;
  border-radius: 4px;
  background: rgba(13, 10, 7, 0.62);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.48);
}

.collection-book-card img,
.collection-hand-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-book-card.is-owned:hover,
.collection-book-card.is-owned:focus-visible,
.collection-hand-card:hover,
.collection-hand-card:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 10px rgba(255, 224, 140, 0.62));
}

.collection-book-card.is-inspected,
.collection-hand-card.is-inspected {
  filter: drop-shadow(0 0 10px rgba(255, 224, 140, 0.82));
}

.collection-book-card.is-missing {
  border: 1px solid rgba(64, 46, 30, 0.75);
  color: rgba(255, 234, 186, 0.46);
  font-family: var(--font-brand);
  cursor: default;
}

.collection-book-card.is-missing .collection-card-back {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.48;
}

.collection-book-card.is-missing .collection-card-lock {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 2;
  width: 34%;
  height: 34%;
  object-fit: contain;
  opacity: 0.92;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.collection-book-card em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  z-index: 3;
  color: #ffe9ad;
  font-size: 8px;
  font-style: normal;
  text-align: center;
  text-shadow: 0 2px 3px #000, 0 0 4px #000;
  pointer-events: none;
}

.collection-page-arrow {
  position: absolute;
  top: calc(50% - 52px);
  width: 76px;
  height: 104px;
  min-height: 104px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  color: transparent;
  text-indent: -9999px;
  cursor: pointer;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 6px rgba(255, 224, 146, 0.45));
  opacity: 0.96;
  transform: none;
  z-index: 130;
}

.collection-page-prev {
  left: 8px;
  background-image: url("/medias/My%20collection%20page%20elements/left-arrow.png");
}

.collection-page-next {
  right: 8px;
  background-image: url("/medias/My%20collection%20page%20elements/right-arrow.png");
}

.collection-page-arrow:hover:not(:disabled),
.collection-page-arrow:focus-visible:not(:disabled) {
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 10px rgba(255, 232, 165, 0.72));
  opacity: 1;
}

.collection-page-arrow:focus-visible {
  outline: 2px solid rgba(255, 232, 165, 0.9);
  outline-offset: 2px;
}

.collection-page-arrow:disabled {
  cursor: default;
  filter: grayscale(0.35) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.58));
  opacity: 0.38;
}

.collection-controls {
  position: absolute;
  display: block;
  min-height: 54px;
}

.collection-filters {
  position: absolute;
  left: 0;
  top: 0;
  width: 625px;
  height: 75px;
  display: block;
  min-width: 0;
  padding: 0;
  background-image: url("/medias/My%20collection%20page%20elements/thickable-rarity-sort-field.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.collection-filter {
  position: absolute;
  top: 59%;
  width: 5.2%;
  height: 15%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.collection-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.collection-filter-basic-plus { left: 10.4%; }
.collection-filter-rare { left: 25.4%; }
.collection-filter-epic { left: 40.3%; }
.collection-filter-mythic { left: 55.1%; }
.collection-filter-legendary { left: 70%; }
.collection-filter-free { left: 84.8%; }

.collection-filter-check {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(102, 65, 27, 0.72);
  background: linear-gradient(180deg, #ead39b, #bc945c);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.42), inset 0 -2px 4px rgba(66, 38, 12, 0.42), 0 1px 2px rgba(0, 0, 0, 0.7);
}

.collection-filter.is-selected .collection-filter-check {
  border-color: rgba(112, 50, 34, 0.88);
}

.collection-filter.is-selected .collection-filter-check::before,
.collection-filter.is-selected .collection-filter-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: 18%;
  border-radius: 999px;
  background: #b31212;
  box-shadow: 0 1px 0 rgba(255, 220, 190, 0.46), 0 0 3px rgba(80, 0, 0, 0.66);
  transform-origin: center;
}

.collection-filter.is-selected .collection-filter-check::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.collection-filter.is-selected .collection-filter-check::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.collection-search-frame {
  position: absolute;
  left: 637px;
  top: 9px;
  width: 250px;
  height: 83px;
  background-image: url("/medias/My%20collection%20page%20elements/search-field.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.collection-search-input {
  position: absolute;
  left: 663px;
  top: 34px;
  width: 198px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  padding: 0 8px;
  color: #fff8db;
  font-size: 12px;
  text-shadow: 0 2px 3px #000;
  outline: none;
}

.collection-hand-panel {
  position: absolute;
  inset: 0;
  width: 0;
  min-height: 0;
  padding-top: 0;
}

.collection-hand-frame {
  position: absolute;
  width: 1050px;
  height: 270px;
  display: grid;
  place-items: center;
  background-image: url("/medias/My%20collection%20page%20elements/my-hand-frame.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 15px 21px rgba(0, 0, 0, 0.76));
}

.collection-hand-frame h2 {
  position: absolute;
  left: 132px;
  top: 49px;
  margin: 0;
  color: #ffe7a6;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(255, 222, 143, 0.4);
  pointer-events: none;
}

.collection-hand-slots {
  position: absolute;
  inset: 0;
}

.collection-hand-slot {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.collection-hand-slot.is-empty img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
}

.collection-hand-card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 3px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.collection-save-hand {
  position: absolute;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/medias/My%20collection%20page%20elements/save-hand.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  padding: 0;
  text-indent: -9999px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.74));
}

.collection-buy-packs-cta {
  display: contents;
}

.collection-pack-fan,
.collection-buy-packs-button {
  position: absolute;
  z-index: 60;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.76));
}

.collection-pack-fan,
.collection-buy-packs-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.collection-pack-fan {
  pointer-events: none;
}

.collection-buy-packs-button {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.72));
}

.collection-buy-packs-button:hover,
.collection-buy-packs-button:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 12px rgba(255, 224, 140, 0.55)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.78));
}

.collection-hand-status {
  position: absolute;
  right: 80px;
  top: 170px;
}

.collection-layout-edit-toggle {
  position: absolute;
  right: 22px;
  top: 12px;
  z-index: 1300;
  min-height: 28px;
  border-color: rgba(255, 224, 140, 0.52);
  background: rgba(20, 13, 8, 0.9);
  color: #fff0bd;
  font-size: 11px;
  font-weight: 900;
}

.collection-view.is-layout-editing [data-layout-key] {
  outline: 1px dashed rgba(95, 211, 255, 0.78);
  outline-offset: 2px;
  cursor: move;
}

.collection-view.is-layout-editing [data-layout-key].is-layout-selected {
  outline: 2px solid rgba(255, 229, 145, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 219, 126, 0.56);
}

.collection-book-card-copy-count {
  position: absolute;
  top: 3%;
  right: 3%;
  z-index: 4;
  min-width: 22%;
  height: 18%;
  display: grid;
  place-items: center;
  padding: 0 4%;
  border: 1px solid rgba(69, 40, 5, 0.82);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 238, 168, 0.96), rgba(149, 91, 18, 0.94));
  color: #fff6c9;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 2px #1a0800, 0 0 5px rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), inset 0 0 5px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.page-layout-edit-toggle {
  position: absolute;
  right: 22px;
  top: 88px;
  z-index: 3200;
  min-height: 28px;
  border-color: rgba(255, 224, 140, 0.52);
  background: rgba(20, 13, 8, 0.9);
  color: #fff0bd;
  font-size: 11px;
  font-weight: 900;
  pointer-events: auto;
}

.profile-layout-edit-toggle {
  top: 116px;
}

.page-layout-editor {
  z-index: 3300;
}

.page-layout-selection-box {
  position: absolute;
  z-index: 3000;
  border: 2px solid rgba(255, 229, 145, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.78), 0 0 18px rgba(255, 219, 126, 0.56);
  pointer-events: auto;
  cursor: move;
}

.page-layout-selection-box::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid #07111a;
  border-radius: 2px;
  background: #ffe08a;
  cursor: nwse-resize;
}

.home-view.is-layout-editing [data-home-layout-key],
.profile-view.is-layout-editing [data-profile-layout-key],
.forge-view.is-layout-editing [data-forge-layout-key],
.rankings-view.is-layout-editing [data-rankings-layout-key] {
  outline: 1px dashed rgba(95, 211, 255, 0.78);
  outline-offset: 2px;
  cursor: move;
}

.home-view.is-layout-editing [data-home-layout-key].is-layout-selected,
.profile-view.is-layout-editing [data-profile-layout-key].is-layout-selected,
.forge-view.is-layout-editing [data-forge-layout-key].is-layout-selected,
.rankings-view.is-layout-editing [data-rankings-layout-key].is-layout-selected {
  outline: 2px solid rgba(255, 229, 145, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 219, 126, 0.56);
}

.collection-view.is-layout-editing [data-layout-key].is-layout-selected::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border: 1px solid #07111a;
  border-radius: 2px;
  background: #ffe08a;
  box-shadow:
    -50px 0 0 #ffe08a,
    0 -50px 0 #ffe08a,
    -50px -50px 0 #ffe08a;
  z-index: 1500;
  pointer-events: none;
}

.collection-layout-editor {
  position: absolute;
  z-index: 1600;
  width: 300px;
  max-height: 790px;
  overflow: auto;
  border: 1px solid rgba(255, 224, 140, 0.5);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.94);
  color: #f8e5ae;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.74);
  font-size: 11px;
}

.layout-editor-header {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 224, 140, 0.1);
  cursor: move;
}

.layout-editor-header strong,
.layout-editor-section h3 {
  margin: 0;
  color: #ffe8a8;
  font-family: var(--font-brand);
  font-size: 12px;
  line-height: 1;
}

.layout-editor-header button {
  width: 24px;
  min-height: 22px;
  padding: 0;
}

.layout-editor-body {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.collection-layout-editor.is-minimized {
  width: 220px;
  overflow: hidden;
}

.layout-editor-section {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 224, 140, 0.16);
}

.layout-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.layout-editor-section label {
  display: grid;
  gap: 2px;
}

.layout-editor-section span {
  color: #cbd7ea;
  font-size: 9px;
  text-transform: uppercase;
}

.layout-editor-selected {
  color: #ffe08a;
  font-size: 11px;
  font-weight: 800;
}

.layout-editor-section input,
.layout-editor-section select {
  min-height: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 11px;
}

.layout-editor-checkbox {
  grid-template-columns: 16px 1fr;
  align-items: center;
}

.layout-editor-checkbox input {
  width: 14px;
  min-height: 14px;
  height: 14px;
}

.layout-editor-actions {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 5px;
}

.layout-editor-actions button {
  min-height: 28px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 900;
}

.layout-editor-status {
  min-height: 18px;
  color: #f4d479;
  font-family: 'IM Fell English SC', serif;
  font-size: 12px;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.layout-editor-status.is-error {
  color: #ff9a7a;
}

.collection-hand-status,
.collection-empty {
  max-width: 240px;
  margin: 0;
  color: #ffe1a1;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.topbar,
.arena,
.hands {
  display: grid;
  gap: 8px;
}

.topbar {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  min-height: 42px;
  margin-bottom: 6px;
}

.auth-panel {
  position: relative;
  top: auto;
  right: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 34px;
  max-width: min(470px, 42vw);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 6px;
  font-size: 12px;
  text-align: right;
  backdrop-filter: none;
}

.auth-art-button {
  width: 70px;
  height: 52px;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
  padding: 0;
  text-indent: -9999px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.74));
}

.auth-login {
  background-image: url("/medias/Home%20page%20elements/LOGIN-button.png");
}

.auth-sign {
  background-image: url("/medias/Home%20page%20elements/SIGNAUTH-button.png");
}

.auth-logout {
  background-image: url("/medias/Home%20page%20elements/LOGOUT-button.png");
}

.auth-art-button:hover,
.auth-art-button:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 9px rgba(255, 224, 140, 0.5)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.74));
}

.resource-wallet {
  position: relative;
  width: var(--home-wallet-button-size);
  min-height: var(--home-wallet-button-size);
}

.resource-wallet-button {
  width: var(--home-wallet-button-size);
  height: var(--home-wallet-button-size);
  min-height: var(--home-wallet-button-size);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/medias/Home%20page%20elements/dust-and-valor-mini-wallet-icon.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.8));
}

.resource-wallet.is-expanded .resource-wallet-button,
.resource-wallet-button:hover,
.resource-wallet-button:focus-visible {
  background-image: url("/medias/Home%20page%20elements/dust-and-valor-mini-wallet-icone-activated-on-hover.png");
  outline: none;
}

.resource-wallet-panel {
  position: absolute;
  top: var(--home-wallet-panel-top);
  right: -6px;
  width: var(--home-wallet-frame-size);
  height: var(--home-wallet-frame-size);
  min-height: var(--home-wallet-frame-size);
  display: none;
  padding: 0;
  background-image: url("/medias/Home%20page%20elements/mini-wallet-v2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #f8e5ae;
  font-size: var(--home-wallet-font-size);
  font-weight: 900;
  text-shadow: 0 2px 4px #000;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.8));
  overflow: hidden;
}

.resource-wallet.is-expanded .resource-wallet-panel {
  display: block;
}

.resource-wallet-inner {
  position: absolute;
  left: var(--home-wallet-inner-left);
  top: var(--home-wallet-inner-top);
  width: var(--home-wallet-inner-width);
  height: var(--home-wallet-inner-height);
  display: grid;
  align-content: center;
  gap: var(--home-wallet-row-gap);
  box-sizing: border-box;
  padding: var(--home-wallet-inner-padding);
  overflow: hidden;
}

.resource-wallet-row {
  display: grid;
  grid-template-columns: var(--home-wallet-resource-icon-size) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  height: var(--home-wallet-row-height);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  column-gap: calc(var(--home-wallet-frame-size) * 0.0208);
  white-space: nowrap;
}

.resource-wallet-row img {
  display: block;
  width: var(--home-wallet-resource-icon-size);
  height: var(--home-wallet-resource-icon-size);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

.resource-wallet-row span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-wallet-row strong {
  color: #fff8dd;
  min-width: 0;
  justify-self: end;
}

.resource-wallet-unavailable {
  align-self: center;
  justify-self: center;
  color: #dfefff;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}

.future-destination-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 193, 141, 0.42);
  border-radius: 6px;
  background: rgba(5, 8, 14, 0.86);
  color: #fff1c8;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.forge-view {
  position: absolute;
  inset: 0;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
}

.forge-mount {
  position: absolute;
  inset: 0;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
}

.ll-forge-page {
  position: relative;
  width: var(--app-stage-reference-width);
  height: var(--app-stage-reference-height);
  overflow: hidden;
  color: #f8e8ad;
  font-family: var(--font-brand);
}

.ll-forge-panel,
.ll-forge-action,
.ll-forge-refresh,
.ll-forge-dust,
.ll-forge-action-button,
.ll-forge-socket,
.ll-forge-ratios,
.ll-forge-instruction,
.ll-forge-action-body,
.ll-forge-status {
  position: absolute;
  box-sizing: border-box;
}

.ll-forge-panel,
.ll-forge-action,
.ll-forge-socket {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ll-forge-duplicates {
  z-index: 5;
  padding: 30px 36px 28px 48px;
  background-image: url("/medias/Forge%20page%20elements/available-duplicate.png");
}

.ll-forge-dust-panel {
  z-index: 4;
  background-image: url("/medias/Forge%20page%20elements/available-dust.png");
}

.ll-forge-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(248, 208, 98, 0.74) rgba(0, 0, 0, 0.34);
}

.ll-forge-card-row p,
.ll-forge-empty {
  margin: auto;
  color: rgba(255, 239, 184, 0.86);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-card {
  position: relative;
  display: grid;
  flex: 0 0 148px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  height: 84px;
  min-width: 0;
  border: 1px solid rgba(248, 210, 95, 0.3);
  background: rgba(5, 6, 7, 0.58);
  color: #f7e7ad;
  cursor: pointer;
  text-align: left;
}

.ll-forge-card.is-selected,
.ll-forge-dust.is-selected {
  outline: 2px solid #fff1a8;
  box-shadow: 0 0 18px rgba(255, 226, 106, 0.75);
}

.ll-forge-card-image {
  position: absolute;
  width: 48px;
  height: 68px;
  object-fit: cover;
}

.ll-forge-card-details,
.ll-forge-card-quantity {
  position: absolute;
}

.ll-forge-card span,
.ll-forge-selected-card,
.ll-forge-stack,
.ll-forge-convert-box {
  min-width: 0;
}

.ll-forge-card strong,
.ll-forge-card em,
.ll-forge-card b,
.ll-forge-selected-card strong,
.ll-forge-selected-card em,
.ll-forge-stack strong,
.ll-forge-stack span,
.ll-forge-stack em,
.ll-forge-convert-box strong,
.ll-forge-convert-box em {
  display: block;
  overflow: hidden;
  color: #fff0b6;
  font-style: normal;
  text-overflow: ellipsis;
  text-shadow: 0 2px 2px #000;
  white-space: nowrap;
}

.ll-forge-card strong {
  font-size: 10px;
}

.ll-forge-card em {
  color: rgba(255, 236, 180, 0.78);
  font-size: 8px;
}

.ll-forge-card-quantity {
  font-size: 10px;
}

.ll-forge-refresh {
  z-index: 8;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ll-forge-refresh img,
.ll-forge-action-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ll-forge-refresh:hover,
.ll-forge-card:hover,
.ll-forge-dust:hover {
  filter: brightness(1.14);
}

.ll-forge-dust {
  z-index: 6;
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff1b4;
  cursor: pointer;
}

.ll-forge-dust-display,
.ll-forge-selected-dust-display {
  position: relative;
  display: block;
  width: 74px;
  height: 74px;
}

.ll-forge-stack .ll-forge-selected-dust-display,
.ll-forge-convert-box .ll-forge-selected-dust-display {
  position: static;
  width: 0;
  height: 0;
  overflow: visible;
}

.ll-forge-dust-frame,
.ll-forge-dust-art,
.ll-forge-dust-quantity,
.ll-forge-convert-amount,
.ll-forge-convert-preview,
.ll-forge-cost-text,
.ll-forge-selected-card-image,
.ll-forge-selected-card-text,
.ll-forge-processing,
.ll-forge-dust-result img,
.ll-forge-dust-result strong,
.ll-forge-new-card-image,
.ll-forge-new-card strong {
  position: absolute;
  box-sizing: border-box;
}

.ll-forge-dust-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}

.ll-forge-dust-art {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.ll-forge-dust-quantity {
  min-width: 54px;
  padding: 1px 8px 2px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff1b4;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-action {
  z-index: 3;
}

.ll-forge-burn {
  background-image: url("/medias/Forge%20page%20elements/burn-field-and-display.png");
}

.ll-forge-convert {
  background-image: url("/medias/Forge%20page%20elements/convert-field-and-display.png");
}

.ll-forge-card-field {
  background-image: url("/medias/Forge%20page%20elements/forge-field-and-display.png");
}

.ll-forge-instruction {
  z-index: 7;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid rgba(221, 188, 110, 0.26);
  background: rgba(4, 6, 8, 0.64);
  color: #fff3bb;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-action-body {
  z-index: 6;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: visible;
}

.ll-forge-selected-card,
.ll-forge-stack,
.ll-forge-convert-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 180px;
  color: #fff0b6;
  font-size: 11px;
  text-align: center;
}

.ll-forge-selected-card-image {
  width: 76px;
  height: 108px;
  border: 1px solid rgba(255, 230, 135, 0.6);
  object-fit: cover;
}

.ll-forge-convert-box label {
  display: inline-grid;
}

.ll-forge-convert-box input {
  width: 76px;
  border: 1px solid rgba(246, 218, 128, 0.55);
  background: rgba(0, 0, 0, 0.75);
  color: #fff0b6;
  font: inherit;
  text-align: center;
}

.ll-forge-convert-box.is-invalid em,
.ll-forge-stack.is-invalid strong {
  color: #fca5a5;
}

.ll-forge-convert-box small {
  color: rgba(255, 236, 180, 0.72);
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-ratios {
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 3px 10px;
  padding: 4px 10px;
  border: 1px solid rgba(240, 209, 110, 0.25);
  background: rgba(0, 0, 0, 0.58);
  color: #fff0b6;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-action-button {
  z-index: 8;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.ll-forge-action-button.is-ready {
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(255, 224, 140, 0.48));
}

.ll-forge-action-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.ll-forge-status {
  z-index: 20;
  margin: 0;
  color: #fff0b6;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-burn-button img {
  content: url("/medias/Forge%20page%20elements/burn-button-v2.png");
}

.ll-forge-convert-button img {
  content: url("/medias/Forge%20page%20elements/convert-button-v2.png");
}

.ll-forge-forge-button img {
  content: url("/medias/Forge%20page%20elements/forge-button-v2.png");
}

.ll-forge-socket {
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff0b6;
  text-align: center;
}

.ll-forge-dust-result,
.ll-forge-new-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  color: #fff0b6;
  font-weight: 900;
  text-shadow: 0 2px 2px #000;
}

.ll-forge-dust-result img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.ll-forge-dust-result strong {
  color: #fff1a8;
  font-size: 34px;
  line-height: 1;
}

.ll-forge-new-card img {
  width: 104px;
  height: 148px;
  border: 1px solid rgba(255, 230, 135, 0.7);
  object-fit: cover;
}

.ll-forge-round-reveal,
.ll-forge-card-reveal {
  position: absolute;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(255, 224, 140, 0.48));
}

.ll-forge-round-reveal {
  width: 130px;
  height: 130px;
}

.ll-forge-card-reveal {
  width: 132px;
  height: 176px;
}

.ll-forge-round-reveal img,
.ll-forge-card-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-status {
  color: var(--muted);
  font-weight: 800;
  min-width: 0;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status.is-authenticated {
  color: #f4bf45;
}

.auth-status.is-error {
  color: var(--danger);
}

.auth-wallet-chooser {
  min-height: 30px;
  max-width: 150px;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #f4bf45;
  background: linear-gradient(180deg, #fff3b0 0%, #f9d978 24%, #c68a23 52%, #7d4b12 72%, #ffe391 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  text-shadow: 0 1px 0 rgba(74, 38, 5, 0.94), 0 4px 10px rgba(0, 0, 0, 0.72), 0 0 12px rgba(244, 191, 69, 0.28);
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
}

.title-trademark {
  margin-left: 3px;
  font-size: 0.34em;
  line-height: 1;
  transform: translateY(-0.28em);
}

h2 {
  font-size: 16px;
}

label,
.topbar p,
.total,
.stat-row .attribute-name,
.debug-grid span {
  color: var(--muted);
}

.phase-label,
.flavor-heading,
.match-state h2,
.hand-header h2,
.match-recap h3,
.recap-round strong,
.recap-tiebreak strong {
  font-family: var(--font-fantasy);
  font-weight: 400;
}

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

button,
input,
select,
.stat-row,
.timer,
.private-note,
.initiative-line,
.reveal-count,
.decision-reveal,
.roll-values,
.match-over strong,
.match-over span,
.empty-hand,
.debug-panel,
.debug-grid {
  font-family: var(--font-game);
}

.topbar p {
  display: none;
}

.scroll-panel,
.fight-panel,
.hands article,
.debug-panel,
.dev-card-setup,
.recap-round,
.recap-tiebreak,
.debug-grid div,
.debug-grid pre {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(58, 65, 79, 0.72);
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.scroll-panel::before,
.fight-panel::before,
.hands article::before,
.debug-panel::before,
.dev-card-setup::before,
.recap-round::before,
.recap-tiebreak::before,
.debug-grid div::before,
.debug-grid pre::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--scroll-panel-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.scroll-panel::after,
.fight-panel::after,
.hands article::after,
.debug-panel::after,
.dev-card-setup::after,
.recap-round::after,
.recap-tiebreak::after,
.debug-grid div::after,
.debug-grid pre::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 4, 9, 0.44);
  pointer-events: none;
}

.fight-panel > *,
.hands article > *,
.debug-panel > *,
.dev-card-setup > *,
.recap-round > *,
.recap-tiebreak > *,
.debug-grid div > *,
.debug-grid pre > * {
  position: relative;
  z-index: 1;
}

.dev-card-setup {
  padding: 10px;
}

.dev-card-setup summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-top: 10px;
}

.dev-card-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.dev-card-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #0d111a;
  padding: 8px;
  font-size: 12px;
}

.dev-card-option small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.25;
}

.selector,
.seed-row {
  display: grid;
  gap: 6px;
}

.token-stepper {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
}

.token-stepper button {
  padding: 0;
  font-size: 18px;
  font-weight: 900;
}

.arena {
  grid-template-columns: var(--fighter-width) var(--combat-carpet-width) var(--battlefield-width) var(--combat-carpet-width) var(--fighter-width);
  align-items: start;
  column-gap: var(--combat-column-gap);
  row-gap: 13px;
  justify-content: center;
}

.fighter-panel {
  width: 100%;
  padding: 2px;
  background: transparent;
  border: 0;
}

.played-carpet {
  width: var(--combat-carpet-width);
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2px;
  align-self: start;
  justify-items: center;
}

.opponent-carpet {
  justify-items: end;
}

.played-carpet h2 {
  color: #d8c18d;
  font-family: var(--font-fantasy);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.carpet-surface {
  width: var(--combat-carpet-width);
  height: var(--combat-carpet-height);
  min-height: var(--combat-carpet-height);
  margin-top: 0;
  display: grid;
  grid-template-rows: repeat(3, var(--played-card-height));
  gap: var(--carpet-inner-gap);
  justify-content: center;
  align-content: center;
  padding: 7px 11px;
  background-image: var(--played-carpet-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.carpet-slot {
  position: relative;
  width: var(--played-card-width);
  height: var(--played-card-height);
  align-self: start;
  display: grid;
  place-items: center;
  transform: none;
}

.carpet-slot.empty {
  min-height: 0;
}

.carpet-slot > span {
  display: none;
  position: absolute;
  top: 5px;
  left: 7px;
  z-index: 3;
  color: rgba(237, 242, 255, 0.74);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 4px #000;
}

.carpet-card-back,
.carpet-card {
  width: var(--played-card-width);
  height: var(--played-card-height);
}

.carpet-card-back {
  display: block;
  object-fit: fill;
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.carpet-card {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.carpet-empty {
  width: var(--played-card-width);
  height: var(--played-card-height);
  display: block;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.fighter-card-main {
  --fighter-v2-frame-width: min(100%, 396px);
  --fighter-info-field-width: min(48.5%, 190px);
  min-height: 0;
  display: grid;
  justify-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.fighter-frame-stage {
  --frame-nft-x: 50%;
  --frame-nft-y: 14.7%;
  --frame-nft-size: 48.6%;
  --frame-nft-overscan: 110%;
  --frame-stats-x: 13.4%;
  --frame-stats-y: 56.2%;
  --frame-stats-w: 73.2%;
  --frame-stats-h: 37.2%;
  position: relative;
  width: var(--fighter-v2-frame-width);
  aspect-ratio: 1086 / 1448;
  justify-self: center;
  overflow: visible;
}

.fighter-info-plates {
  width: var(--fighter-v2-frame-width);
  display: grid;
  grid-template-columns: var(--fighter-info-field-width) var(--fighter-info-field-width);
  justify-content: space-between;
  align-items: start;
  gap: 6px;
  margin-top: 2px;
}

.fighter-info-plate {
  position: relative;
  width: 100%;
  aspect-ratio: 2172 / 724;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px 15px 9px;
  overflow: hidden;
  background-image: var(--fighter-info-field-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #fff2c2;
  font-family: var(--font-brand);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.fighter-info-plate span {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fighter-info-identity {
  justify-self: start;
  font-size: clamp(9px, 1vw, 12px);
}

.fighter-info-overall {
  justify-self: end;
  font-size: clamp(16px, 1.7vw, 22px);
}

.fighter-frame-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.fighter-frame-base {
  z-index: 0;
}

.fighter-frame-overlay {
  z-index: 2;
}

.framed-fighter.no-transparent-shell .fighter-frame-overlay {
  display: none;
}

.card-role {
  display: none;
}

.avatar {
  position: absolute;
  top: var(--frame-nft-y);
  left: var(--frame-nft-x);
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: var(--frame-nft-size);
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: clamp(28px, 4vh, 46px);
  font-weight: 900;
  overflow: visible;
}

.avatar.has-image {
  background: transparent;
}

.nft-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--frame-nft-overscan);
  height: var(--frame-nft-overscan);
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%);
}

.profile-fighter-art.nft-image {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  transform: none;
}

.avatar.has-image .avatar-fallback {
  display: none;
}

.fighter-title {
  display: none;
}

.fighter-title h2 {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-fantasy);
  font-weight: 400;
  font-size: clamp(13px, 1.7vh, 16px);
  line-height: 1.05;
  text-overflow: ellipsis;
  text-shadow: 0 2px 5px #000;
  white-space: nowrap;
}

.visual-source {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  min-height: 13px;
  text-align: center;
  display: none;
}

.total {
  display: none;
}

.total strong {
  color: var(--text);
}

.tier-green .tier {
  color: var(--tier-green);
}

.tier-purple .tier {
  color: var(--tier-purple);
}

.tier-silver .tier {
  color: var(--tier-silver);
}

.tier-gold .tier {
  color: var(--tier-gold);
}

.tier-holographic .tier {
  color: var(--tier-holographic);
}

.stats {
  position: absolute;
  top: var(--frame-stats-y);
  left: var(--frame-stats-x);
  z-index: 3;
  width: var(--frame-stats-w);
  height: var(--frame-stats-h);
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: clamp(2px, 0.45vh, 4px);
  align-content: stretch;
}

.stat-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 4px;
  min-height: 0;
  border-radius: 4px;
  background: rgba(13, 17, 26, 0.74);
  box-shadow: 0 0 0 1px rgba(57, 70, 91, 0.82);
  padding: 1px 5px;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.stat-original {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.stat-original > strong {
  min-width: 0;
  color: #62a8ff;
  font-size: clamp(13px, 1.75vh, 16px);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.stat-row .attribute-name {
  color: #d7e1f4;
  font-size: clamp(10px, 1.3vh, 12px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.stat-history {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  justify-content: flex-start;
  overflow: hidden;
  transform: none;
  transform-origin: left center;
}

.stat-history.history-density-normal {
  gap: 3px;
}

.stat-history.history-density-medium {
  gap: 2px;
}

.stat-history.history-density-dense {
  width: 125%;
  gap: 1px;
  transform: scaleX(0.8);
}

.stat-history.history-density-max {
  width: 185%;
  gap: 1px;
  transform: scaleX(0.54);
}

.hidden-badge {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  border: 1px solid #556175;
  border-radius: 4px;
  background: #0b1018;
  color: var(--muted);
  padding: 1px 3px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.stat-row.revealed {
  border: 1px solid #39465b;
}

.stat-row.selected-combat-stat {
  border: 1px solid rgba(255, 221, 121, 0.96);
  background: linear-gradient(90deg, rgba(88, 54, 8, 0.94), rgba(20, 16, 10, 0.86));
  box-shadow:
    0 0 0 1px rgba(255, 176, 48, 0.74),
    0 0 14px rgba(255, 211, 95, 0.76),
    inset 0 0 10px rgba(255, 214, 104, 0.24);
}

.stat-row.selected-combat-stat .attribute-name,
.stat-row.selected-combat-stat .stat-original > strong,
.stat-row.selected-combat-stat .stat-current > strong {
  color: #ffe39a;
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(255, 209, 84, 0.78);
}

.stat-row.consumed {
  background: #131821;
  opacity: 0.76;
}

.stat-row.consumed .attribute-name {
  color: var(--common);
  text-decoration: line-through;
  text-decoration-color: var(--common);
  text-decoration-thickness: 2px;
}

.modifiers {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.stat-op {
  display: inline-flex;
  align-items: center;
  min-height: 13px;
  border-radius: 3px;
  background: #0d111a;
  padding: 1px 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.history-density-medium .stat-op {
  padding: 1px 2px;
  font-size: 8px;
}

.history-density-dense .stat-op {
  padding: 1px 2px;
  font-size: 7px;
}

.history-density-max .stat-op {
  padding: 1px;
  font-size: 6px;
}

.stat-current {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  justify-items: end;
  line-height: 1;
}

.stat-current strong {
  width: 100%;
  color: var(--text);
  font-size: clamp(13px, 1.75vh, 16px);
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.stat-current.positive strong {
  color: #60f285;
}

.stat-current.negative strong {
  color: #ff5f68;
}

.stat-current.neutral strong {
  color: #f1eee2;
}

.stat-current.hidden-value strong {
  color: var(--muted);
}

.stat-arrow {
  color: #8793a8;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.stat-delta.positive,
.stat-op.positive {
  color: var(--rare);
}

.stat-delta.negative,
.stat-op.negative {
  color: var(--danger);
}

.stat-op.neutral {
  color: var(--common);
}

.rarity-common {
  color: var(--common);
}

.rarity-uncommon {
  color: var(--uncommon);
}

.rarity-rare {
  color: var(--rare);
}

.rarity-epic {
  color: var(--epic);
}

.rarity-legendary {
  color: var(--legendary);
}

.rarity-mythic {
  color: var(--mythic);
}

.fight-panel {
  width: var(--battlefield-width);
  min-width: var(--battlefield-width);
  max-width: var(--battlefield-width);
  height: var(--battlefield-height);
  min-height: var(--battlefield-height);
  max-height: var(--battlefield-height);
  contain: layout paint;
  display: block;
  padding: 8px;
  align-self: center;
  overflow: hidden;
}

body.is-play .fight-panel,
body.is-play .hands article,
body.is-play .played-carpet,
body.is-play .carpet-surface {
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
}

.match-state {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  min-height: 0;
  overflow: hidden;
}

body.is-play .match-state {
  border-bottom: 0;
  outline: 0;
  box-shadow: none;
}

.match-state h2 {
  font-family: var(--font-fantasy);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.match-state p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.winner {
  color: var(--legendary) !important;
}

.round-result {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  height: 387px;
  display: block;
  min-width: 0;
  min-height: 0;
  text-align: center;
  overflow: hidden;
}

.round-result.is-match-result {
  height: calc(var(--battlefield-height) - 16px);
}

.round-result h2 {
  font-size: 22px;
}

.battle-director {
  --director-safe-width: 74%;
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  contain: layout paint;
}

.battle-director h2 {
  width: 100%;
  max-width: 100%;
  color: #fff7d9;
  font-family: var(--font-brand);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.84);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.director-phase_6_combat_stat_reveal h2 {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.director-title-line,
.director-stat-name {
  display: block;
  max-width: 100%;
}

.director-stat-name {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: clamp(21px, 1.82vw, 27px);
  line-height: 1;
}

.director-announcement-region {
  position: absolute;
  top: 104px;
  left: 50%;
  width: var(--director-safe-width);
  height: 186px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  justify-items: center;
  gap: 7px;
  overflow: hidden;
  transform: translateX(-50%);
}

.director-subtitle-region,
.director-results-region {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  overflow: hidden;
}

.director-secondary,
.director-outcome {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-game);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.director-secondary {
  color: #d7e1f4;
  font-size: clamp(12px, 0.9vw, 14px);
}

.director-clock-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 320px);
  aspect-ratio: 2086 / 754;
  transform: translateX(-50%);
}

.director-clock-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("../medias/clock-frame-v1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.director-clock-frame .director-timer {
  position: absolute;
  inset: 37% 35% 27% 36%;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff2bc;
  font-family: var(--font-brand);
  font-size: clamp(17px, 1.75vw, 26px);
  font-weight: 900;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.92), 0 0 16px rgba(244, 191, 69, 0.42);
}

.director-match_result {
  --director-safe-width: 94%;
}

.director-phase_6_combat_stat_reveal h2 {
  color: #f2d17a;
  font-size: clamp(23px, 2.05vw, 31px);
  line-height: 1.02;
}

.director-neon-stat {
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.84), 0 0 24px rgba(57, 255, 20, 0.58);
}

.director-phase_12_results h2 {
  color: var(--legendary);
  font-size: clamp(20px, 1.7vw, 30px);
}

.director-result-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.director-result-comparison > div {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d111a;
}

.director-result-comparison span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.director-result-comparison strong {
  color: var(--text);
  font-size: 23px;
}

.director-result-comparison .winner strong,
.director-result-comparison .winner span {
  color: var(--success);
}

.director-result-comparison .loser strong,
.director-result-comparison .loser span {
  color: var(--danger);
}

.director-outcome {
  color: var(--legendary);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.phase-label {
  color: #d8c18d;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-count {
  color: #a7d3ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timer {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  min-height: 48px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d111a;
  color: var(--common);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.private-note {
  color: #c5d0e4;
  font-weight: 800;
}

.initiative-line {
  color: var(--legendary);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.instruction-heading,
.result-heading {
  font-family: var(--font-game);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.result-heading {
  font-size: 26px;
}

.flavor-heading {
  color: #f2d17a;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rolled {
  color: var(--legendary);
  font-size: 26px;
  font-weight: 900;
}

.roll-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.roll-values span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #0d111a;
  color: var(--muted);
}

.roll-values strong {
  color: var(--text);
  font-size: 20px;
}

.decision-reveal {
  display: grid;
  gap: 8px;
  color: #edf2ff;
  font-weight: 800;
}

.decision-reveal span,
.modifier-history span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d111a;
  padding: 8px;
}

.modifier-history,
.match-recap,
.match-reward-column,
.recap-round,
.recap-tiebreak {
  display: grid;
  gap: 8px;
}

.recap-round,
.recap-tiebreak {
  padding: 8px;
}

.modifier-history,
.match-recap {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  text-align: left;
}

.recap-round span,
.recap-round em,
.recap-tiebreak span {
  color: var(--muted);
  font-style: normal;
}

.match-over {
  width: 100%;
  min-width: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 336px) minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-items: center;
  overflow: hidden;
}

.match-result-top {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, auto) auto;
  align-content: start;
  justify-items: center;
  gap: 6px;
  overflow: hidden;
}

.match-result-crown {
  width: min(100%, 332px);
  max-height: 178px;
  display: block;
  object-fit: contain;
}

.match-rewards {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.match-rewards h3 {
  color: #f4bf45;
  font-family: var(--font-fantasy);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(84, 45, 8, 0.94), 0 0 12px rgba(244, 191, 69, 0.48), 0 0 26px rgba(244, 191, 69, 0.24);
  text-transform: uppercase;
}

.match-reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 304px;
}

.match-reward-column {
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.match-reward-label {
  color: #d8c18d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.match-reward-label.dust-tier-wood {
  color: #37c871;
  text-shadow: 0 0 10px rgba(55, 200, 113, 0.46);
}

.match-reward-label.dust-tier-silver {
  color: #4da3ff;
  text-shadow: 0 0 10px rgba(77, 163, 255, 0.46);
}

.match-reward-label.dust-tier-platinum {
  color: #a56cff;
  text-shadow: 0 0 10px rgba(165, 108, 255, 0.48);
}

.match-reward-label.dust-tier-gold {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.match-reward-label.dust-tier-diamond {
  color: #80f7ff;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.54), 0 0 20px rgba(165, 108, 255, 0.34);
}

.match-reward-label.valor-label {
  color: #fff2bc;
  text-shadow: 0 0 10px rgba(244, 191, 69, 0.42);
}

.match-reward-art {
  width: 101px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
}

.match-claim-reward {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 6px;
  color: #ffe3a4;
  font-family: var(--font-brand);
  font-size: 11px;
  text-shadow: 0 2px 4px #000;
}

.match-claim-reward-button {
  min-height: 24px;
  border: 1px solid rgba(244, 191, 69, 0.58);
  border-radius: 3px;
  background: rgba(21, 13, 7, 0.82);
  color: #f4bf45;
  padding: 0 12px;
  font-family: var(--font-brand);
  font-size: 13px;
}

.match-play-again {
  width: min(92%, 304px);
  aspect-ratio: 2172 / 724;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

.match-result-cta {
  width: 100%;
  display: grid;
  place-items: center;
}

.match-play-again:hover,
.match-play-again:focus-visible {
  filter: brightness(1.08) saturate(1.06);
  transform: translateY(-1px);
}

.match-play-again img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.match-over .match-recap span,
.match-over .recap-tiebreak span,
.match-over .recap-round span,
.match-over .recap-round em {
  font-size: 10px;
  font-weight: 800;
}

.match-result-region {
  top: 0;
  height: 100%;
}

.match-over .match-recap {
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  border-top: 1px solid rgba(216, 193, 141, 0.28);
  padding-top: 5px;
  overflow: hidden;
}

.match-result-recap-zone {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.match-over .match-recap h3 {
  width: 100%;
  min-width: 0;
  color: #d8c18d;
  font-family: var(--font-fantasy);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(244, 191, 69, 0.22);
}

.recap-round-slots {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}

.recap-round-slot {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid rgba(216, 193, 141, 0.38);
  border-radius: 7px;
  background: rgba(9, 7, 5, 0.42);
  padding: 5px 9px;
  overflow: hidden;
  text-align: center;
}

.recap-match-tiebreak {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1px solid rgba(244, 191, 69, 0.45);
  border-radius: 7px;
  background: rgba(50, 29, 6, 0.38);
  padding: 5px 9px;
  overflow: hidden;
  text-align: center;
}

.recap-round-slot.empty {
  border-color: rgba(216, 193, 141, 0.16);
  background: rgba(9, 7, 5, 0.16);
}

.recap-round-slot strong,
.recap-round-slot span,
.recap-match-tiebreak strong,
.recap-match-tiebreak span {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-round-slot strong,
.recap-match-tiebreak strong {
  color: #fff3c4;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.recap-round-slot span,
.recap-match-tiebreak span {
  color: #d7e1f4;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}

.actions {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: var(--battlefield-presentation-width);
  min-height: 0;
  height: var(--battlefield-presentation-height);
  max-height: var(--battlefield-presentation-height);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  gap: 6px;
  overflow: hidden;
  contain: layout paint;
}

.actions.is-match-result {
  pointer-events: none;
}

.hands {
  margin-top: var(--play-arena-hand-gap);
}

.single-hand {
  grid-template-columns: 1fr;
}

.hands article {
  display: grid;
  gap: 8px;
  padding: 8px;
  overflow: visible;
}

body.is-play .hands {
  --card-width: var(--combat-card-width);
  --card-height: var(--combat-card-height);
}

body.is-play .hands article {
  gap: 0;
  padding: 2px 8px 0;
}

body.is-play #bottomSetupPanel::before {
  background-image: none;
}

body.is-play #bottomSetupPanel::after {
  background: transparent;
}

.battle-hand-background {
  position: absolute;
  z-index: 2;
  display: block;
  width: 1440px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.72));
}

.battle-hand-action-button {
  position: absolute;
  z-index: 4;
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.battle-hand-action-button:disabled {
  cursor: default;
  filter: grayscale(0.35) brightness(0.74);
}

.battle-hand-action-button[hidden] {
  display: none;
}

.battle-hand-action-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body.is-play .hands,
body.is-play .arena,
body.is-play .debug-panel {
  position: relative;
}

body.is-play .arena {
  z-index: 1;
}

body.is-play .hands {
  z-index: 3;
}

body.is-play .debug-panel {
  z-index: 1;
}

body.is-play .battle-layout-edit-toggle {
  top: 148px;
}

body.is-play .battle-layout-editor {
  z-index: 3300;
}

body.is-play .battle-layout-selection-box {
  z-index: 3000;
}

body.is-play.is-battle-layout-editing .battle-hand-background {
  pointer-events: auto;
  outline: 1px dashed rgba(95, 211, 255, 0.78);
  outline-offset: 2px;
  cursor: move;
}

body.is-play.is-battle-layout-editing .battle-hand-background.is-layout-selected {
  outline: 2px solid rgba(255, 229, 145, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 219, 126, 0.56);
}

body.is-play #bottomSetupPanel[data-mode="NO_CURRENT_FIGHTER"],
body.is-play #bottomSetupPanel[data-mode="CURRENT_FIGHTER_UNAVAILABLE"],
body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] {
  position: relative;
  top: calc(-1 * var(--prefight-bottom-field-lift));
}

body.is-play #bottomSetupPanel[data-mode="NO_CURRENT_FIGHTER"],
body.is-play #bottomSetupPanel[data-mode="CURRENT_FIGHTER_UNAVAILABLE"],
body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] {
  height: var(--combat-hand-height);
  min-height: 0;
  overflow: visible;
}

body.is-play #bottomSetupPanel[data-mode="NO_CURRENT_FIGHTER"] .setup-copy,
body.is-play #bottomSetupPanel[data-mode="CURRENT_FIGHTER_UNAVAILABLE"] .setup-copy,
body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .setup-copy,
body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .hand-header {
  position: absolute;
  left: 8px;
  right: 8px;
  z-index: 2;
}

body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .hand-header {
  top: calc(-1 * var(--prefight-control-offset));
  grid-template-columns: max-content max-content;
}

body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .setup-copy {
  display: none;
}

body.is-play #bottomSetupPanel[data-mode="NO_CURRENT_FIGHTER"] .setup-copy,
body.is-play #bottomSetupPanel[data-mode="CURRENT_FIGHTER_UNAVAILABLE"] .setup-copy,
body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .setup-copy {
  top: -32px;
}

body.is-play #bottomSetupPanel[data-mode="COMBAT_HAND"] {
  position: relative;
  height: var(--combat-hand-height);
  min-height: 0;
  overflow: hidden;
}

body.is-play .setup-copy {
  gap: 0;
}

body.is-play #bottomSetupPanel[data-mode="COMBAT_HAND"] .setup-copy {
  display: none;
}

body.is-play .setup-copy h2 {
  font-size: 12px;
  line-height: 1;
}

body.is-play .setup-copy p {
  font-size: 10px;
}

body.is-play .card-list,
body.is-play .deck-browser {
  gap: var(--combat-card-gap);
}

body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .deck-browser {
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  height: var(--combat-card-height);
  min-height: 0;
  align-items: start;
  padding: 0 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

body.is-play #bottomSetupPanel[data-mode="BUILD_HAND"] .deck-browser:not([hidden]) {
  min-height: 0;
}

body.is-play #bottomSetupPanel[data-mode="COMBAT_HAND"] .card-list {
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  height: var(--combat-card-height);
  align-items: start;
  justify-content: center;
  overflow: hidden;
}

body.is-play .debug-panel {
  display: none;
}

.setup-copy {
  display: grid;
  gap: 2px;
}

.setup-copy h2 {
  color: #f2d17a;
  font-family: var(--font-fantasy);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.setup-copy p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fighter-setup {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 320px) 170px;
  align-items: end;
  gap: 8px;
}

.hand-header {
  display: grid;
  grid-template-columns: auto auto max-content max-content;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.hand-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-select {
  display: none;
}

.deck-browser {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-width);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.deck-browser:not([hidden]) {
  min-height: calc(var(--card-height) + 14px);
}

.deck-browser[hidden],
.hand-header [hidden],
.fighter-setup[hidden] {
  display: none;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--card-width));
  gap: 8px;
}

.card-list.hand-size-0,
.card-list.hand-size-1 {
  grid-template-columns: var(--card-width);
}

.card-list.hand-size-2 {
  grid-template-columns: repeat(2, var(--card-width));
}

.card-list.hand-size-3 {
  grid-template-columns: repeat(3, var(--card-width));
}

.card-list.hand-size-4 {
  grid-template-columns: repeat(4, var(--card-width));
}

.card-list.hand-size-5 {
  grid-template-columns: repeat(5, var(--card-width));
}

.card-list.hand-size-6 {
  grid-template-columns: repeat(6, var(--card-width));
}

.bonus-card {
  position: relative;
  isolation: isolate;
  width: var(--card-width);
  height: var(--card-height);
  min-height: var(--card-height);
  display: block;
  text-align: center;
  border: 0;
  background: #050506;
  color: var(--text);
  padding: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 7px;
}

.carpet-card.bonus-card {
  width: var(--played-card-width);
  height: var(--played-card-height);
  min-height: var(--played-card-height);
}

.bonus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--card-frame-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.bonus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.08), transparent 39%), #050506;
  pointer-events: none;
}

.card-artwork {
  position: absolute;
  left: var(--card-art-left, 5.804%);
  top: var(--card-art-top, 3.810%);
  width: var(--card-art-width, 88.392%);
  height: var(--card-art-height, 62.099%);
  z-index: 0;
  display: block;
  background-image: var(--card-artwork-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0;
  pointer-events: none;
}

.card-name {
  position: absolute;
  left: var(--card-title-left, 9.229%);
  top: 63.35%;
  z-index: 2;
  width: var(--card-title-width, 81.637%);
  height: 9.1%;
  display: grid;
  place-items: center;
  color: #fff3bf;
  font-family: var(--font-fantasy);
  font-size: var(--card-title-font-size, 13px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000, 0 2px 3px rgba(0, 0, 0, 0.96);
  -webkit-text-stroke: 0.18px rgba(20, 10, 0, 0.72);
  overflow: hidden;
  text-overflow: clip;
}

.card-effect {
  position: absolute;
  left: 10.5%;
  top: 75%;
  z-index: 2;
  width: 79%;
  height: 14.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f7f2df;
  font-family: var(--font-brand);
  font-weight: 650;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 1px 1px #000, 0 2px 3px rgba(0, 0, 0, 0.88);
  overflow: hidden;
}

.card-effect-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.card-effect-line i {
  font-style: italic;
  font-weight: 650;
}

.card-effect-line strong {
  font-weight: 900;
}

.card-effect-standard {
  font-size: 8px;
}

.card-effect-compact {
  font-size: 6.3px;
}

.bonus-card em {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 6px;
  z-index: 5;
  display: block;
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
  color: #edf2ff;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.bonus-card.selected {
  box-shadow: 0 0 0 3px #f4bf45 inset, 0 0 0 1px rgba(255, 247, 217, 0.55), 0 0 24px rgba(244, 191, 69, 0.64);
}

.bonus-card.disabled {
  opacity: 0.52;
}

.bonus-card.used {
  opacity: 0.62;
}

.card-inspection-layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: var(--card-inspection-width, calc(var(--card-width) * 3));
  height: var(--card-inspection-height, calc(var(--card-height) * 3));
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.68));
  transform-origin: center;
  transition: opacity 140ms ease, transform 140ms ease;
  will-change: transform, opacity;
}

.card-inspection-layer.visible {
  opacity: 1;
}

.card-inspection-layer .bonus-card,
.card-inspection-back {
  width: var(--card-inspection-width, calc(var(--card-width) * 3));
  height: var(--card-inspection-height, calc(var(--card-height) * 3));
  min-height: var(--card-inspection-height, calc(var(--card-height) * 3));
  border-radius: calc(7px * var(--card-inspection-scale, 3));
}

.card-inspection-layer .bonus-card {
  box-shadow: none;
}

.card-inspection-layer .bonus-card em {
  display: none;
}

.card-inspection-layer .card-effect-standard {
  font-size: calc(8px * var(--card-inspection-scale, 3));
}

.card-inspection-layer .card-effect-compact {
  font-size: calc(6.3px * var(--card-inspection-scale, 3));
}

.card-inspection-back {
  display: block;
  object-fit: fill;
}

.card-inspection-layer .ll-forge-card-image,
.card-inspection-layer .ll-forge-selected-card-image,
.card-inspection-layer .ll-forge-new-card-image {
  position: static !important;
  width: var(--card-inspection-width, calc(var(--card-width) * 3)) !important;
  height: var(--card-inspection-height, calc(var(--card-height) * 3)) !important;
  min-height: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
}

.deck-card {
  min-height: var(--card-height);
}

.empty-hand {
  min-height: var(--card-height);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d111a;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.debug-panel {
  margin-top: 10px;
  padding: 12px 16px;
}

.debug-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.debug-controls {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.debug-grid div,
.debug-grid pre {
  min-height: 58px;
  padding: 10px;
}

.debug-grid span,
.debug-grid strong {
  display: block;
}

.debug-grid strong {
  margin-top: 5px;
  font-size: 13px;
}

.debug-grid pre {
  grid-column: 1 / -1;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
}

.empty {
  color: var(--muted);
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 1080px) {
  .topbar,
  body:not(.is-play) .arena,
  body:not(.is-play) .fighter-setup,
  body:not(.is-play) .card-list,
  .debug-grid {
    grid-template-columns: 1fr;
  }
}
