/* Tema, tipografia e componentes básicos.
 * O build reúne estes módulos na ordem abaixo para preservar a cascata.
 * As URLs dos assets são resolvidas em /build no arquivo emitido.
 */

/* Componentes Discord preservados; ocultação controlada na integração local.
 * Faixa 0–36 da folha de referência; preservar a ordem de importação.
 */

.profile-discord {
  gap: 8px;
  display: grid;
}

.discord-row {
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  background: #12151d;
  grid-template-columns: 56px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  display: grid;
}

.discord-row.is-linked {
  box-shadow: inset 0 0 0 2px #5865f2;
}

.discord-mark {
  place-items: center;
  width: 56px;
  height: 40px;
  display: grid;
}

.discord-mark svg {
  width: 56px;
  height: 40px;
}

.discord-text {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.discord-text strong {
  font-family: var(--font-display);
  text-shadow: var(--outline-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 30px;
  font-weight: 400;
  line-height: .9;
  overflow: hidden;
}

.discord-text small {
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.3;
}

.discord-row .cta {
  height: 46px;
  padding: 0 16px;
  font-size: 26px;
}

.panel-unlink {
  --accent: #5865f2;
}

.unlink-text {
  color: #c3c9d8;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.unlink-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.unlink-actions .cta {
  height: 56px;
  font-size: 32px;
}

.app:is([data-format=short],[data-format=tall]) .discord-row {
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 10px;
  padding: 8px 10px;
}

.app:is([data-format=short],[data-format=tall]) :is(.discord-mark,.discord-mark svg) {
  width: 44px;
  height: 32px;
}

.app:is([data-format=short],[data-format=tall]) .discord-text strong {
  font-size: 24px;
}

.app:is([data-format=short],[data-format=tall]) .discord-text small {
  font-size: 12px;
}

.app:is([data-format=short],[data-format=tall]) .discord-row .cta {
  height: 40px;
  padding: 0 12px;
  font-size: 22px;
}

.app[data-format=tall] .discord-row {
  grid-template-columns: 44px minmax(0,1fr);
}

.app[data-format=tall] .discord-row .cta {
  grid-column: 1/-1;
  height: 44px;
  font-size: 24px;
}

.app:is([data-format=short],[data-format=tall]) .unlink-text {
  font-size: 15px;
}

.app:is([data-format=short],[data-format=tall]) .unlink-actions {
  gap: 10px;
}

.app:is([data-format=short],[data-format=tall]) .unlink-actions .cta {
  height: 46px;
  font-size: 26px;
}

body.discord-return {
  height: auto;
  min-height: 100%;
  color: var(--night-text);
  overflow: auto;
}

.discord-return-main {
  box-sizing: border-box;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 12px;
  display: grid;
}

.back-panel {
  --accent: #5865f2;
  width: min(620px,100%);
  animation: none;
}

.back-panel.is-error {
  --accent: #e8453c;
}

.back-body {
  text-align: center;
  justify-items: center;
  gap: 18px;
  padding: 34px 30px 30px;
  display: grid;
}

.back-mark svg {
  width: 84px;
  height: 60px;
}

.back-title {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: var(--outline-sm);
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: .95;
}

.back-who {
  box-sizing: border-box;
  width: 100%;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  background: #12151d;
  gap: 6px;
  padding: 14px 16px;
  display: grid;
}

.back-who strong {
  font-family: var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
}

.back-who strong.discord {
  color: #8f9bff;
}

.back-who small {
  color: var(--night-muted);
  font-size: 14px;
}

.back-text {
  color: #c3c9d8;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.back-body .cta {
  box-sizing: border-box;
  width: 100%;
  text-decoration: none;
}

@media (width<=560px) {
  .back-body {
    gap: 14px;
    padding: 26px 18px 22px;
  }
  .back-title {
    font-size: 40px;
  }
  .back-mark svg {
    width: 70px;
    height: 50px;
  }
  .back-who strong {
    font-size: 28px;
  }
  .back-text {
    font-size: 16px;
  }
}
/* Fontes locais e famílias tipográficas.
 * Faixa 37–39 da folha de referência; preservar a ordem de importação.
 */
@font-face {
  font-family: "Jersey 10";
  src: url(./jersey-10-DrL73VYW.woff2)format("woff2");
  font-display: block;
}
@font-face {
  font-family: Pixelify Sans;
  src: url(./pixelify-sans-Cbhn5ptY.woff2)format("woff2");
  font-weight: 400 700;
  font-display: block;
}
@font-face {
  font-family: "Jersey 10 Digits";
  src: url(./jersey-10-DrL73VYW.woff2)format("woff2");
  unicode-range: U+30-39;
  font-weight: 400 700;
  size-adjust: 117.8%;
  ascent-override: 78%;
  descent-override: 23.7%;
  font-display: block;
}
/* Variáveis do tema, reset, foco e moldura principal.
 * Faixa 40–52 da folha de referência; preservar a ordem de importação.
 */
:root {
  --font-ui: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Jersey 10", var(--font-ui);
  --font-pixel: "Jersey 10 Digits", "Pixelify Sans", var(--font-ui);
  --night: #0e1016;
  --night-card: #171a23;
  --night-plate: #1f2330;
  --night-line: #31374a;
  --night-text: #eef1f8;
  --night-muted: #8b93a7;
  --topbar-height: 76px;
  --pixel-corners: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
  --pixel-corners-small: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  --ink: #2b1408;
  --orange: #ffa43a;
  --orange-deep: #d8621a;
  --outline: 0 2px 0 var(--ink), 2px 0 0 var(--ink), 0 -2px 0 var(--ink), -2px 0 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 4px 0 var(--ink);
  --outline-sm: 0 2px 0 var(--ink), 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 -1px 0 var(--ink), 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink);
  font-family: var(--font-pixel);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
*,:before,:after {
  box-sizing: border-box;
}
html,body {
  height: 100%;
  margin: 0;
}
html,button,input,select,textarea {
  font-variant-ligatures: none;
}
body {
  background: var(--night);
  overscroll-behavior: none;
  overflow: hidden;
}
button,select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #fff;
}
.app {
  -webkit-user-select: none;
  user-select: none;
  --frame-scale: 1;
  --frame-topbar: 76px;
  --topbar-height: calc(var(--frame-topbar) * var(--frame-scale));
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 0;
}
.app[data-format=wide] {
  --frame-topbar: 76px;
}
.app[data-format=short] {
  --frame-topbar: 52px;
}
.app[data-format=tall] {
  --frame-topbar: 60px;
}
.framed {
  --topbar-height: var(--frame-topbar);
  width: calc(100% / var(--frame-scale));
  transform: scale(var(--frame-scale));
  transform-origin: 0 0;
}
/* Barra superior, perfil, navegação e saldo.
 * Faixa 53–124 da folha de referência; preservar a ordem de importação.
 */
.topbar {
  top: env(safe-area-inset-top);
  z-index: 5;
  height: var(--topbar-height);
  color: var(--night-text);
  font-family: var(--font-pixel);
  background: var(--night);
  box-shadow: inset 0 -2px 0 var(--night-line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  display: flex;
  position: absolute;
  left: 0;
}
.app[data-screen=lobby] .topbar,.app[data-page] .topbar {
  box-shadow: none;
  background: 0 0;
}
.player {
  min-width: 0;
  color: inherit;
  text-align: left;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 14px;
  padding: 0;
  display: flex;
}
.player-avatar {
  background: var(--night-plate);
  width: 60px;
  height: 60px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  flex: none;
  place-items: center;
  transition: box-shadow .12s;
  display: grid;
}
.player-avatar[data-hero] {
  background: radial-gradient(ellipse 70% 60% at 50% 45%, color-mix(in srgb, var(--rarity) 45%, transparent), #10131a 80%);
  box-shadow: inset 0 0 0 3px var(--rarity), inset 0 0 0 5px #0b0d12;
}
.player:hover .player-avatar,.player:focus-visible .player-avatar {
  box-shadow: inset 0 0 0 3px var(--orange), inset 0 0 14px #ffa43a73;
}
.player:hover .player-avatar[data-hero],.player:focus-visible .player-avatar[data-hero] {
  box-shadow: inset 0 0 0 3px var(--rarity), inset 0 0 0 5px #0b0d12, inset 0 0 16px color-mix(in srgb, var(--rarity) 60%, transparent);
}
.player:hover .player-name,.player:focus-visible .player-name {
  color: #ffc07a;
}
.player:focus-visible {
  outline: none;
}
.player-text {
  justify-items: start;
  gap: 2px;
  min-width: 0;
  display: grid;
}
.player-name {
  font-family: var(--font-display);
  letter-spacing: .5px;
  color: var(--orange);
  text-shadow: var(--outline-sm);
  white-space: nowrap;
  font-size: 36px;
  font-weight: 400;
  line-height: .9;
}
.topbar-right {
  align-items: center;
  gap: 10px;
  display: flex;
}
.player {
  position: relative;
}
.player-hint {
  justify-items: start;
  gap: 2px;
  display: grid;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
}
.player-hint[hidden] {
  display: none;
}
.player-hint-arrow {
  height: 27px;
  margin-left: 18px;
  display: block;
}
.player-hint-arrow .icon {
  width: 24px;
  height: 27px;
  display: block;
}
.player-hint-plate {
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--orange);
  clip-path: var(--pixel-corners);
  background: #0f1219;
  gap: 2px;
  padding: 8px 12px;
  display: grid;
}
.player-hint-plate strong {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--orange);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}
.player-hint-plate small {
  color: var(--night-muted);
  font-size: 13px;
}
@media (prefers-reduced-motion:no-preference) {
  .player-hint-arrow {
    animation: .9s step-end infinite nudge;
  }
}
.mhdg-chip,.top-btn {
  height: 52px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  background: #171a23eb;
}
.mhdg-chip {
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  display: flex;
}
.mhdg-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.top-btn {
  border: 0;
  place-items: center;
  width: 52px;
  padding: 0;
  transition: background .12s;
  display: grid;
}
.top-btn:hover {
  background: var(--night-plate);
}
.top-btn:active {
  transform: translateY(1px);
}
.topbar button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.topbar .top-btn:disabled:hover {
  background: #171a23eb;
}
.topbar .top-btn:disabled:active {
  transform: none;
}
.topbar .topbar-crumb:disabled {
  color: var(--night-muted);
}
.back-btn svg {
  width: 26px;
  height: 24px;
}
.chest-btn {
  width: auto;
  padding: 0 9px;
}
.chest-icon {
  width: 54px;
  height: 24px;
  image-rendering: pixelated;
  display: block;
}
.icon {
  image-rendering: pixelated;
  display: block;
}
.token,.brand {
  image-rendering: auto;
  object-fit: contain;
}
.icon-coin {
  width: 20px;
  height: 20px;
}
.icon-token,.icon-top {
  width: 33px;
  height: 33px;
}
.app[data-format=short] .topbar {
  gap: 8px;
  padding: 0 12px;
}
.app[data-format=short] :is(.invite-btn,.topbar-links) {
  display: none;
}
.app[data-format=short] .player {
  gap: 10px;
}
.app[data-format=short] .player-avatar {
  zoom: calc(40 / 60);
}
.app[data-format=short] .player-name {
  font-size: 26px;
}
.app[data-format=short] .topbar-right {
  gap: 6px;
}
.app[data-format=short] .topbar :is(.mhdg-chip,.top-btn) {
  height: 40px;
}
.app[data-format=short] .topbar .top-btn {
  width: 40px;
}
.app[data-format=short] .topbar .chest-btn {
  width: auto;
  padding: 0 4px;
}
.app[data-format=short] .mhdg-chip {
  gap: 8px;
  padding: 0 12px;
}
.app[data-format=short] .mhdg-chip .icon-token {
  width: 24px;
  height: 24px;
}
.app[data-format=short] .mhdg-value {
  font-size: 26px;
}
.app[data-format=short] .topbar-back {
  gap: 12px;
}
.app[data-format=short] .topbar-title {
  font-size: 34px;
}
.app[data-format=short] .topbar-back {
  flex: none;
}
.app[data-format=short] .topbar-back~.topbar-right {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.app[data-format=short] .topbar-back~.topbar-right .mhdg-chip {
  flex: 0 auto;
  min-width: 58px;
}
.app[data-format=short] .topbar-back~.topbar-right .mhdg-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.app[data-format=short] .player-hint-arrow {
  margin-left: 8px;
}
.app[data-format=short] .player-hint-plate {
  padding: 5px 10px;
}
.app[data-format=short] .player-hint-plate strong {
  font-size: 17px;
}
.app[data-format=short] .player-hint-plate small {
  font-size: 11px;
}
.app[data-format=tall] .topbar {
  gap: 6px;
  padding: 0 12px;
}
.app[data-format=tall] :is(.player-text,.invite-btn,.topbar-links,.topbar-title) {
  display: none;
}
.app[data-format=tall] .player {
  flex: none;
}
.app[data-format=tall] .player-avatar {
  zoom: calc(44 / 60);
}
.app[data-format=tall] .topbar-right {
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.app[data-format=tall] .topbar :is(.mhdg-chip,.top-btn) {
  height: 44px;
}
.app[data-format=tall] .topbar .top-btn {
  width: 44px;
}
.app[data-format=tall] .topbar .chest-btn {
  width: auto;
  padding: 0 4px;
}
.app[data-format=tall] .mhdg-chip {
  flex: 0 auto;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
}
.app[data-format=tall] .mhdg-chip .icon-token {
  width: 24px;
  height: 24px;
}
.app[data-format=tall] .mhdg-value {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 24px;
  overflow: hidden;
}
.app[data-format=tall] .topbar-back {
  gap: 10px;
}
/* Palco, lobby, carrossel e navegação dos modos.
 * Faixa 125–163 da folha de referência; preservar a ordem de importação.
 */
.stage {
  flex: 1;
  min-height: 0;
  position: relative;
}
.screen {
  display: none;
  position: absolute;
  inset: 0;
}
.app[data-screen=lobby] .screen-lobby {
  display: block;
}
.screen-lobby {
  height: calc(100% / var(--frame-scale));
  background: var(--night);
  bottom: auto;
  right: auto;
  overflow: hidden;
}
.room-backdrop {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
  position: absolute;
  inset: 0;
}
.room-shade {
  background: radial-gradient(70% 65% at 50% 52%,#0e101673,#0e1016d1),linear-gradient(#0e1016e6,#0e101633 130px calc(100% - 170px),#0e1016e6);
  position: absolute;
  inset: 0;
}
:is(.screen-lobby,.page.menu) {
  --cell-w: calc(296px * var(--card-zoom));
  --cell-h: calc(428px * var(--card-zoom));
}
.lobby-area {
  inset: var(--topbar-height) 0 var(--lobby-bottom);
  pointer-events: none;
  place-items: center;
  display: grid;
  position: absolute;
}
.lobby-grid {
  gap: var(--card-gap);
  width: calc(5 * var(--cell-w) + 4 * var(--card-gap));
  pointer-events: auto;
  grid-template-columns: minmax(0,1fr);
  display: grid;
}
.lobby-events-slot {
  height: var(--cell-h);
  position: relative;
}
.lobby-events-slot:has(>.lobby-events:empty) {
  display: none;
}
.lobby-events,.lobby-modes {
  justify-content: center;
  gap: var(--card-gap);
  display: flex;
}
.lobby-events {
  height: 100%;
}
.lobby-grid .mode {
  zoom: var(--card-zoom);
  flex: none;
}
.lobby-dots {
  display: none;
}
.app[data-format=wide] :is(.screen-lobby,.page.menu) {
  --card-zoom: .77;
  --card-gap: 24px;
  --lobby-bottom: 100px;
}
.app[data-format=short] :is(.screen-lobby,.page.menu) {
  --card-zoom: .43;
  --card-gap: 8px;
  --lobby-bottom: 8px;
}
.app[data-format=short] .lobby-area {
  left: 10px;
  right: 96px;
}
.app[data-format=tall] :is(.screen-lobby,.page.menu) {
  --card-zoom: .4;
  --card-gap: 10px;
  --lobby-bottom: 128px;
}
.app[data-format=tall] .lobby-grid {
  width: calc(3 * var(--cell-w) + 2 * var(--card-gap));
}
.app[data-format=tall] .lobby-events-slot {
  height: calc(var(--cell-h) + 16px);
}
.app[data-format=tall] .lobby-events {
  height: var(--cell-h);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: safe center;
  overflow: auto hidden;
}
.app[data-format=tall] .lobby-events::-webkit-scrollbar {
  display: none;
}
.app[data-format=tall] .lobby-events>.mode {
  scroll-snap-align: start;
}
.app[data-format=tall] .lobby-dots {
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}
.lobby-dots span {
  background: #3a4155;
  width: 8px;
  height: 8px;
}
.lobby-dots span.on {
  background: var(--night-text);
}
.lobby-arrow {
  display: none;
}
.app[data-format=wide] .lobby-events>.mode {
  transition: transform .18s ease-out,filter .18s,opacity .15s;
}
.app[data-format=wide] .lobby-events>.mode.mode-cut {
  opacity: 0;
  pointer-events: none;
}
.app[data-format=wide] .lobby-arrow:not([hidden]) {
  z-index: 2;
  background: var(--night-plate);
  width: 56px;
  height: 56px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  cursor: pointer;
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}
.app[data-format=wide] .lobby-arrow-prev {
  left: calc(-56px - 2 * var(--card-gap));
}
.app[data-format=wide] .lobby-arrow-next {
  right: calc(-56px - 2 * var(--card-gap));
}
.lobby-arrow-mark {
  background: var(--night-text);
  clip-path: polygon(0 0,5px 0,15px 12.5px,5px 25px,0 25px,10px 12.5px);
  width: 15px;
  height: 25px;
  display: block;
}
.lobby-arrow-prev .lobby-arrow-mark {
  scale: -1 1;
}
.lobby-arrow:hover {
  box-shadow: inset 0 0 0 2px var(--night-text);
  background: #2a2f3e;
}
.lobby-arrow:hover .lobby-arrow-mark {
  background: #fff;
}
.lobby-arrow:focus-visible {
  outline: 2px solid var(--night-text);
  outline-offset: 2px;
}
.app[data-format=tall] .lobby-modes {
  row-gap: var(--card-gap);
  flex-wrap: wrap;
}
/* Cartões de modos, ilustrações e animações de vitrine.
 * Faixa 164–228 da folha de referência; preservar a ordem de importação.
 */
.mode {
  color: var(--night-text);
  filter: drop-shadow(0 0 #0000)drop-shadow(0 10px #00000073);
  background: 0 0;
  border: 0;
  padding: 0;
  transition: transform .18s ease-out,filter .18s;
}
.mode:not(:disabled):hover,.mode:focus-visible {
  filter: drop-shadow(0 0 22px var(--glow)) drop-shadow(0 16px 0 #00000073);
  outline: none;
  transform: translateY(-10px)scale(1.04);
}
.mode:not(:disabled):active {
  transform: translateY(-4px)scale(1.02);
}
.mode-heroes {
  --glow: #57b9ff;
  --glow-deep: #1f6fb8;
}
.mode-dungeon {
  --glow: #ff9a3c;
  --glow-deep: #b8540f;
}
.mode-shop,.mode-summon {
  --glow: #b57cff;
  --glow-deep: #6c3fb0;
}
.mode-blacksmiths {
  --glow: #ff6b3d;
  --glow-deep: #a8361a;
}
.mode-porter {
  --glow: #6ee06a;
  --glow-deep: #2f8a3a;
}
.mode-market {
  --glow: #ffd447;
  --glow-deep: #b8860f;
}
.mode-fusion {
  --glow: #ff5fd2;
  --glow-deep: #a8327f;
}
.mode:disabled {
  cursor: not-allowed;
}
.mode:disabled .mode-name {
  color: #6b7286;
}
.mode:disabled .mode-art>:not(.mode-lock) {
  filter: grayscale()brightness(1.6);
  opacity: .45;
}
.mode-lock {
  background: linear-gradient(#0000 40%,#0b0d12bf);
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  display: flex;
  position: absolute;
  inset: 0;
}
.icon-lock {
  width: 40px;
  height: 50px;
}
.mode-lock-text {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: #c3c9d8;
  box-shadow: inset 0 0 0 2px var(--night-line);
  background: #171a23eb;
  padding: 6px 14px;
  font-size: 26px;
}
.mode-card {
  background: var(--night-card);
  box-shadow: inset 0 0 0 4px var(--night-line), inset 0 0 0 6px #0b0d12;
  clip-path: var(--pixel-corners);
  gap: 10px;
  padding: 10px;
  transition: box-shadow .18s;
  display: grid;
}
.mode:not(:disabled):hover .mode-card,.mode:focus-visible .mode-card {
  box-shadow: inset 0 0 0 4px var(--glow), inset 0 0 0 6px #0b0d12;
}
.mode-art {
  width: 276px;
  height: 318px;
  clip-path: var(--pixel-corners);
  background: #0b0d12;
  display: block;
  position: relative;
  overflow: hidden;
}
.mode-name {
  height: 80px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: var(--outline-sm);
  background: var(--night-plate);
  box-shadow: inset 0 -6px 0 var(--glow-deep), inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  place-items: center;
  font-size: 52px;
  line-height: 1;
  display: grid;
}
.art-heroes {
  background: radial-gradient(75% 60% at 50% 42%,#57b9ff61,#0b0d12 78%);
}
.art-ground {
  background: #0006;
  border-radius: 50%;
  height: 18px;
  position: absolute;
  top: 202px;
  left: 14px;
  right: 14px;
}
.art-row {
  display: flex;
  position: absolute;
  top: 81px;
  left: 50%;
  transform: translate(-50%);
}
.art-row .sprite {
  margin: 0 -68px;
}
.art-dungeon {
  background: radial-gradient(75% 60% at 50% 42%,#ff9a3c5c,#0b0d12 78%);
}
.art-dungeon .art-row {
  top: 100px;
}
.art-dungeon .art-row .sprite {
  margin: 0 -66px;
}
.art-shop {
  background: radial-gradient(65% 55% at 50% 45%,#b57cff73,#0b0d12 75%);
}
.art-cards {
  display: block;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translate(-50%);
}
.art-gloss {
  width: 120px;
  height: 168px;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: .8;
  pointer-events: none;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAA4CAYAAABudd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ewecqPfKjjMJLzvkXlTXeqNyaaPv9yG34u9LulkDN68g5by9I9UblvsCnLlC1/S1TeB17G5BXI3/3Y+u4TSldL7XWU76jjqzys/xbi/VNdVhHSmnRiwA+VtT6ol5fl+PDvb849+ce5hsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADu+z+7kWBVWgf2UgAAAABJRU5ErkJggg==) 0 0/3000px 168px no-repeat;
  position: absolute;
  top: 36px;
  left: 78px;
}
.art-coins {
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  display: flex;
  position: absolute;
  top: 232px;
  left: 0;
  right: 0;
}
.icon-shop-coin-small {
  width: 33px;
  height: 33px;
}
.icon-shop-coin-big {
  width: 44px;
  height: 44px;
}
.icon-shop-hammer {
  width: 50px;
  height: 50px;
}
.art-summon {
  background: radial-gradient(65% 55% at 50% 45%,#b57cff73,#0b0d12 75%);
}
.art-summon-image {
  display: block;
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translate(-50%);
}
.art-summon .art-gloss {
  top: 62px;
}
.art-forge {
  background: radial-gradient(70% 55% at 50% 72%,#ff6e328c,#0b0d12 78%);
  place-items: center;
  display: grid;
}
.art-forge-image {
  width: 210px;
  height: 222px;
  image-rendering: pixelated;
  margin-top: 20px;
}
.art-forge .forge-smith {
  left: calc(50% - 62px);
}
.art-porter {
  background: radial-gradient(65% 55%,#6ee06a66,#0b0d12 75%);
  place-items: center;
  display: grid;
}
.art-market {
  background: radial-gradient(70% 55%,#ffc83c6b,#ffa0281a 58%,#0b0d12 82%);
}
.art-market-ground {
  top: 228px;
}
.art-merchant {
  width: 256px;
  height: 256px;
  image-rendering: pixelated;
  background: url(./merchant-xEPUzTvq.png) -8448px 0/14592px 256px no-repeat;
  margin-left: -152px;
  position: absolute;
  top: 4px;
  left: 50%;
}
.art-pile {
  width: 52px;
  height: 26px;
  image-rendering: pixelated;
  position: absolute;
  top: 268px;
}
.art-pile-left {
  left: 48px;
}
.art-pile-right {
  right: 48px;
  transform: scaleX(-1);
}
.art-fusion {
  background: radial-gradient(70% 52% at 50% 36%,#ff5fd26b,#0b0d12 78%);
}
.fusion-beam {
  clip-path: polygon(0 100%,100% 100%,70% 0,30% 0);
  background: linear-gradient(#ffc2ee00,#ff5fd259 30%,#ff5fd200);
  width: 150px;
  height: 110px;
  position: absolute;
  top: 120px;
  left: 50%;
  translate: -50%;
}
.fusion-made {
  filter: drop-shadow(0 0 16px #6ee06abf);
  position: absolute;
  top: 16px;
  left: 50%;
  translate: -50%;
}
.fusion-fan {
  display: flex;
  position: absolute;
  top: 190px;
  left: 50%;
  translate: -50%;
}
.fusion-fan .rarity-card {
  --px: 2px;
  rotate: calc(var(--fan) * 7deg);
  translate: 0 calc(var(--fan) * var(--fan) * 2.5px);
  transform-origin: 50% 120%;
  filter: drop-shadow(0 4px #00000080);
}
.fusion-fan .rarity-card+.rarity-card {
  margin-left: -46px;
}
.fusion-art-spark {
  width: var(--s);
  height: var(--s);
  clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
  background: #ff5fd2;
  position: absolute;
}
.fusion-art-spark.light {
  background: #ffc2ee;
}
@media (prefers-reduced-motion:no-preference) {
  .sprite-idle {
    animation: idle-frames calc(var(--frames) * .2s) steps(var(--frames)) infinite;
  }
  .art-coins>span {
    --px: 3px;
    animation: coin-bob 2.4s step-end calc(var(--i) * .15s) infinite;
  }
  .art-gloss {
    animation: 5s infinite card-gloss;
  }
  .art-merchant {
    animation: 5.8s steps(29,end) 4s both merchant-setup,.8s steps(4,end) 5 merchant-walk,4s steps(20,end) merchant-enter,4.8s steps(24,end) 9.8s infinite merchant-sit;
  }
  .mode:not(:disabled):hover .sprite-idle,.mode:focus-visible .sprite-idle {
    animation-duration: calc(var(--frames) * .1s);
  }
  .mode:not(:disabled):hover .art-merchant,.mode:focus-visible .art-merchant {
    animation-duration: 5.8s,.8s,4s,2.4s;
  }
  .mode:not(:disabled):hover .art-row .sprite-idle,.mode:focus-visible .art-row .sprite-idle {
    animation: idle-frames calc(var(--frames) * .1s) steps(var(--frames)) infinite, hop 1s step-end calc(var(--i) * .12s) infinite;
  }
  .mode:not(:disabled):hover .art-coins>span,.mode:focus-visible .art-coins>span {
    animation: hop 1s step-end calc(var(--i) * .12s) infinite;
  }
  .fusion-art-spark {
    animation: spark-twinkle 3s step-end calc(var(--i) * .5s) infinite;
  }
  .mode:not(:disabled):hover .fusion-fan .rarity-card,.mode:focus-visible .fusion-fan .rarity-card {
    animation: hop 1s step-end calc(var(--i) * .12s) infinite;
  }
  .app[data-page] .screen-lobby * {
    animation-play-state: paused;
  }
  body:has(>.loading:not(.loaded)) .screen-lobby * {
    animation-play-state: paused;
  }
}
@keyframes idle-frames {
  0% {
    background-position-x: 0;
  }
  to {
    background-position-x: calc(-1 * var(--strip));
  }
}
@keyframes hop {
  0%,40%,to {
    transform: none;
  }
  10% {
    transform: translateY(calc(-2 * var(--px)));
  }
  25% {
    transform: translateY(calc(-1 * var(--px)));
  }
}
@keyframes spark-twinkle {
  0%,70%,to {
    opacity: 1;
    scale: 1;
  }
  80% {
    opacity: .35;
    scale: .6;
  }
}
@keyframes coin-bob {
  0%,75%,to {
    transform: none;
  }
  80% {
    transform: translateY(calc(-1 * var(--px)));
  }
}
@keyframes card-gloss {
  0% {
    background-position-x: 0;
    animation-timing-function: steps(25,end);
  }
  20%,to {
    background-position-x: -3000px;
  }
}
@keyframes merchant-walk {
  0% {
    background-position-x: 0;
  }
  to {
    background-position-x: -1024px;
  }
}
@keyframes merchant-enter {
  0% {
    translate: -160px;
  }
}
@keyframes merchant-setup {
  0% {
    background-position-x: -1024px;
  }
  to {
    background-position-x: -8448px;
  }
}
@keyframes merchant-sit {
  0% {
    background-position-x: -8448px;
  }
  to {
    background-position-x: -14592px;
  }
}
/* Mapa, modais, painéis, páginas, botões e seletores.
 * Faixa 229–278 da folha de referência; preservar a ordem de importação.
 */
.map-frame {
  box-shadow: inset 0 0 0 4px var(--night-line), inset 0 0 0 6px #0b0d12;
  clip-path: var(--pixel-corners);
  background: #0b0d12;
  position: absolute;
  inset: 10px;
}
.modal-backdrop {
  z-index: 20;
  background: #08090d9e;
  place-items: center;
  padding: 18px 12px 12px;
  animation: .15s ease-out fade;
  display: grid;
  position: fixed;
  inset: 0;
}
.panel {
  max-height: calc(100dvh - 30px);
  color: var(--night-text);
  font-family: var(--font-pixel);
  box-shadow: inset 0 0 0 4px var(--night-line), inset 0 0 0 6px #0b0d12;
  clip-path: var(--pixel-corners);
  background: #171a23fa;
  flex-direction: column;
  animation: .2s cubic-bezier(.2,1.3,.4,1) pop;
  display: flex;
  position: relative;
}
.panel:before {
  content: "";
  background: var(--accent,var(--night-line));
  height: 4px;
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
}
.panel-head {
  padding: 26px 96px 0 30px;
}
.panel-title {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: var(--outline-sm);
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  display: flex;
}
.panel-title-icon {
  flex: none;
  display: grid;
}
.close-btn {
  z-index: 2;
  background: var(--night-plate);
  width: 48px;
  height: 48px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  top: 26px;
  right: 30px;
}
.close-btn:hover {
  background: #2a2f3e;
}
.close-btn:active {
  transform: translateY(2px);
}
.close-btn svg {
  width: 27px;
  height: 27px;
}
.panel-body {
  flex: 1;
  min-height: 0;
  padding: 22px 30px 30px;
  overflow: auto;
}
.sprite {
  image-rendering: pixelated;
  background-repeat: no-repeat;
  flex: none;
  display: inline-block;
}
.dur-bar {
  --fill: #5fd35a;
  --fill-light: #a8f08a;
  --fill-dark: #2f8a3a;
  height: 24px;
  clip-path: var(--pixel-corners-small);
  background: #0b0d12;
  padding: 3px;
  position: relative;
}
.dur-bar[data-level=low] {
  --fill: #ffb22e;
  --fill-light: #ffd98a;
  --fill-dark: #c47a12;
}
.dur-bar:after {
  content: "";
  box-shadow: inset 0 0 0 3px var(--night-line);
  clip-path: var(--pixel-corners-small);
  position: absolute;
  inset: 0;
}
.dur-fill {
  background: linear-gradient(var(--fill-light) 0 3px, var(--fill) 3px calc(100% - 3px), var(--fill-dark) calc(100% - 3px));
  width: 0;
  height: 100%;
  transition: width .12s linear;
  display: block;
}
.dur-large {
  height: 30px;
}
.dur-text {
  font-family: var(--font-display);
  text-shadow: var(--outline-sm);
  font-variant-numeric: tabular-nums;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  display: grid;
  position: absolute;
  inset: 0;
}
.skill-caption {
  color: #aab1c3;
  min-height: 42px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.35;
}
.skill-caption strong {
  color: var(--night-text);
  font-weight: 600;
}
.page-root {
  z-index: 4;
  background: var(--night);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-root[hidden] {
  display: none;
}
.page {
  inset: var(--topbar-height) 0 0;
  color: var(--night-text);
  font-family: var(--font-pixel);
  outline: none;
  padding: 16px 24px 32px;
  position: absolute;
  overflow: auto;
}
.page-empty {
  text-align: center;
  max-width: 560px;
  color: var(--night-muted);
  margin: 120px auto 0;
  font-size: 22px;
}
.topbar-back {
  align-items: center;
  gap: 18px;
  min-width: 0;
  display: flex;
}
.topbar-title {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: var(--outline-sm);
  white-space: nowrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  display: flex;
}
.topbar-crumb {
  font: inherit;
  letter-spacing: inherit;
  color: var(--night-muted);
  text-shadow: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
}
.topbar-crumb:hover,.topbar-crumb:focus-visible {
  color: var(--night-text);
}
.topbar-crumb-sep {
  background: var(--night-muted);
  clip-path: polygon(0 0,4px 0,12px 10px,4px 20px,0 20px,8px 10px);
  flex: none;
  width: 12px;
  height: 20px;
  display: inline-block;
}
.home-btn .icon {
  width: 30px;
  height: 30px;
  display: block;
}
.app[data-format=short] .topbar .home-btn .icon {
  width: 24px;
  height: 24px;
}
.page-panel {
  background: var(--night-card);
  box-shadow: inset 0 0 0 4px var(--night-line), inset 0 0 0 6px #0b0d12;
  clip-path: var(--pixel-corners);
  position: relative;
}
.page-panel:before {
  content: "";
  z-index: 1;
  background: var(--accent,var(--night-line));
  height: 4px;
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
}
.page-panel-title {
  font-family: var(--font-display);
  text-shadow: var(--outline-sm);
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: .9;
}
.page-panel-text {
  color: #aab1c3;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
}
.page-label {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--night-muted);
  font-size: 13px;
}
.page-note {
  color: var(--night-muted);
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.35;
}
.muted {
  color: var(--night-muted);
}
.cta {
  height: 58px;
  font-family: var(--font-display);
  white-space: nowrap;
  clip-path: var(--pixel-corners);
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 34px;
  line-height: 1;
  transition: filter .1s;
  display: flex;
}
.cta-main {
  color: #2b1408;
  background: var(--orange);
  box-shadow: inset 0 -7px 0 var(--orange-deep), inset 0 3px 0 #ffc07a;
}
.cta-alt {
  color: var(--night-text);
  background: var(--night-plate);
  box-shadow: inset 0 -6px #12141b,inset 0 0 0 2px #3c4359;
}
.cta:not(:disabled):hover {
  filter: brightness(1.08);
}
.cta:not(:disabled):active {
  transform: translateY(2px);
}
.cta:disabled {
  color: #6b7286;
  cursor: not-allowed;
  background: #2a2e3a;
  box-shadow: inset 0 -6px #191c24;
}
.cta-big {
  height: 70px;
  font-size: 42px;
}
.cta .icon-coin {
  width: 30px;
  height: 30px;
}
.seg {
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-top: 22px;
  display: grid;
}
.seg-option {
  height: 62px;
  font-family: var(--font-display);
  color: var(--night-muted);
  background: var(--night-plate);
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  border: 0;
  font-size: 36px;
}
.seg-option[aria-checked=true] {
  color: var(--night-text);
  background: #b57cff29;
  box-shadow: inset 0 0 0 2px #b57cff;
}
/* Cartas de raridade, molduras e emblemas de habilidades.
 * Faixa 279–288 da folha de referência; preservar a ordem de importação.
 */
.rarity-card {
  flex: none;
  display: block;
  position: relative;
}
.card-glow {
  inset: calc(5px * var(--card-scale));
  background: radial-gradient(ellipse 70% 55% at 50% 44%, color-mix(in srgb, var(--rarity) 40%, transparent), #10131a 80%);
  position: absolute;
}
.card-hero {
  position: absolute;
}
.card-frame,.card-holo {
  image-rendering: pixelated;
  background-repeat: no-repeat;
  position: absolute;
  inset: 0;
}
.card-frame {
  background-image: url(./rarity-frames-BdP1Q6FJ.png);
  background-size: calc(240px * var(--card-scale)) calc(56px * var(--card-scale));
}
.card-holo {
  opacity: .45;
  mix-blend-mode: screen;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAA4CAYAAACPKLr2AAAG8ElEQVR4nO2ZTY8cRxnHf0919UzPzL6NvfYuEayTIOEEJadcOHAAySe45sYniDhxdA4cvV8AiS9AOCFxRopCTnBDSLzEQBzLie14sfHO7sz0y3R1PRyqZ2d3euxZ8E5y8V9q9ai6p/rXT9fLU/+Cl3qpr1eyqPBv/PzGJn/urvGvKOHfxpoRpj1BLiu8CrwNvAW8DmyD60HRgkMLX8RwO4F/tOBeDE8tpEYopc2ELTK+xZDrjLlOxh4lfe/pVmBT5AcfzrPY+YKP+OONMZ9cjRmsW8axYSL4SmylmLREDhUeApeANaANJgJroGNgs4KdEo4MpAZKAS+KUuElJ2ZAwgElm1R0VYm1xJRKMkQ/vjEP2QAsuNqNyNcjig1D2RIqEVRwYPMx5qlDHih0gBiIQASMQFt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YLNydHzO93Tt1qrgPoizW7n0GXONY77LIe807mlE8HoGBzE8shBZh9BcCl6UjtsxSg91EZUmlPSXA75RwFYFSXsa3gVJ2gXp8ZpBsSgdEtfCa3c54LUSuh5irc2xleHB/S2Z2nCoRKizwbM7pUYb7Ht4xcGrJXy7gGsTeG+8yKV6Mb31Y92/dykYBY/XhGE7IosXJFfzBV0HkZllW6uK4ONpclo7kd6AS2V+nF4wUGcg8aIrF6tRzwMm5KoCZQRpDPMGV+MTm6dgh5BkYd2664JNcdbweUHdTPeLTsWw53m8Aff7wbS6s928tQEod8F8GZaESboCyF/d3+dyjlt3TLoB8sl6DXmulP8vIK+A+SbY3bOeMwTId3cWW75L9fc/7XMwy+sdCUrwgibWMGqfB/CvwCFIDqYCqxcEOfz9PuPmoF9Jgie0w8I2l+lNwM+AMTAJGwSmvmkR5KftsJv0y95i2G392X7GHhO/i3PpM5cPSoITqCbNa03AJ8AEpULRsAfzLMip3ku59cjCUWRJTULBBjlXSbkTmOoKZk7yibc320ahrZqeI+VnjMcHOOpxXYLPhZUmpJ45O/TUFsOZxxmpIQ0665vTZ4QNp0G74c40AR0VGSUwDbggiJjZnlwSMev/wklDD23J4SUPoT+pNLiAaiLUWhwRMz8BRZgQaUnLN/ytJqCS4hiSARAjCBFCCyQB0wGbQBIHSHXBFCgFcoHcQCEOF+WntsJCQupJ8CbB2xY+QGodvRKrQ7ouXQoo8KEqN3CMyIgwGA4Im3B9kMtgNgNk28KagSsVpA4GJQwsHCvkWlFJgWVEmyd4ejg2KenjzDreJtQGvcdoRexTvv9mYzv2pV7q69Z/Ac8P4urbvXkrAAAAAElFTkSuQmCC);
  background-size: 100% 100%;
}
.card-back {
  image-rendering: pixelated;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAA4CAYAAACPKLr2AAAFb0lEQVR4nO2ZQWgUVxjHf5bKCu1CWLK7YWDc0DWk2T2UIiYUSkiRkp5y6aEUQXoQrRfFg4fiWTx4kPZSW3qQ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48cKJwGfHtn04YT3YdRjZguEHTx2o4wZa95cAL6QIye+dDAeew4gxOukMoc1mVlf6O9887m36tXV/H+24fRzbZhnvPZw6+iFXry0oIcV/OQJsN5axIBIZVNIG6kFPJ1tEpPpiyUXx5MO2XvjHJdOIeGxcfBwYqFtOm7sYVKq9iBW92uMM4FlSLLnsJButF3u2XixgeHChnMOqrQdSpl1IcGwvNoriXVhNnkfOhmR53q1ufSTa6mQrhiHBC96i3lA9oEhyZ+Ym/IRDvt5y2nQzm+kAO24/MgnmeCT5DMOE5wACcGuZI4xkgveVTAOrtpwcUBeTZEsWyjlYrAO7NUdYcmlwZ7HOgSPT+uxbI2V/cLbwfiQplSX39UBf0wpvFTVLnLce3mqIomlwf1DEwbgqDPBrjkpVUdElBAORsTeU17RVHStqr9KBhiu6JGBJlDjdiuutiOIo/Jd0PJAu3dIprreSpMMaNz51ujX1cSXwWfRWdJ2rQR3WuPGpO6y6MDMyPKTszyTtsKrGg+ckqXvUDx5bqktavWqHNXVd/CY7rK+1iZ60wxonVQompNxJLnxW5sbKywDAIMkPtJc+4MnZg8l/aSqUc3xDjxsrL/2kQe6ahq2rchzVfeEx4r6Tswe1ThL7Y6IYJL/A4XxO9QNikh8PxdyFco5us8e13d7gwB8Tfci3IB3Pvvb11vQfe8lKqZ6vlFMAAAAASUVORK5CYII=) 0 0/100% 100% no-repeat;
  display: block;
}
.skill-badges {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  display: flex;
}
.skill-badge {
  background: var(--night-plate);
  clip-path: var(--pixel-corners);
  padding: 4px;
  display: block;
  box-shadow: inset 0 0 0 2px #3a4157,inset 0 -4px #151821;
}
.skill-badge-art {
  image-rendering: pixelated;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAQCAYAAADOFPsRAAAGXklEQVR4nM2ZX2wUVRTGf4tEaI01GKyhaRUKKtYQ4pOuibpNrAVrmuWhqOGhBiJIJa0omNZgNpjVllWsJSELFTCbQGmWBxo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7AZ2G/z25zIzk7am4hwIjub12/dsrkrDlXAGPVPaoAfQW4kFzW2RUwmUAVKcyDAwPCIpU9hQR4Az7le0glf/vgiutoO0dV2CJd7DZA+kVZo69QKmaNN8MWv8fFUVWjP5XFeAYZjxBWueB/XrCL2XTjGkiVLiJ49zHzXOgrQNFARl5O8FD2RfOr+vshxA4mKvJ5IPnDRdu8mfBfv6uuoawsSk9Kip9op46fLZPx0mfzzc7lMhdxJ8ySkB+O10j91XeutN6VXLFKBMpd7jVR5fVLl9YkQ10jV9wVbxZBHLdNoYlo2ptJEU+myv71R+tsb5WXH07LxgUL59OFl8unDywQwpc/SWFthkUKNptJpumnTyozQx2osUqin2knFyqcALT1qKdLJu4+cIZo9l6ahZ/W0mehrhfWVlXQPDVJYkMfA8AiFBXmms2AqVLUdoqLtEMXuNbzn9UFzLCLDY+aIBNKtSc9fDdvOlaytp/NAHQOjYbzr2mz93kc7/6nIm+4MWDY5CTu2au0Mzr3GCDa2jiaz32yIE5GODlr5Gh9ghfWVlRlt/gjYptatFW/ofkFgdUYrW0ORqNA7OQe4yYI5D+hjHwIFaPrXmGItdZRwOBwcz8qiDFL+NnZI9Le7Xz8HJpK3fdcZ9lx1mqLPztfuAc+5XtK1z4hU56XVxEkJokXk7m0f0Xu2m8sXfjM+0HaNmWLbfjdd//Sy78Ixeifn8MnvvxAJtVhG22a0iDTC6mPGie27TYVXJkjXf8Y5OtEStTBR72b6zTAYM4lZ0GCJvlYa2Bces9VAoyktVOfASKhFPx/mgHwT00J1hMi3eS911rPSP7vfwHjes9I+O5sFmX2FUUj3awzajm7rG6iKyCMxq4jZnUifRpSsrWdgNMypnh6Gr40xfG2MxSs36/Mq4jajfUpTkZmU7mq/BIhVnhqkYYvJNzG67jv3R/z+WBSn+3vdsQi8F+x2InA6U1GYT/J/JP4v+xdAsYsKmAHY9gAAAABJRU5ErkJggg==) no-repeat;
  display: block;
}
/* Listas de heróis, atributos, filtros, durabilidade e escudos.
 * Faixa 289–366 da folha de referência; preservar a ordem de importação.
 */
.heroes-layout {
  grid-template-columns: minmax(0,1fr) clamp(420px,32vw,470px);
  gap: 24px;
  max-width: 1440px;
  height: 100%;
  min-height: 520px;
  margin: 0 auto;
  display: grid;
}
.heroes-empty {
  --accent: #57b9ff;
  justify-items: center;
  gap: 26px;
  max-width: 520px;
  margin: 80px auto 0;
  padding: 44px 40px 40px;
  display: grid;
}
.roster {
  --accent: #57b9ff;
  flex-direction: column;
  min-height: 0;
  padding: 22px 14px 0 22px;
  display: flex;
}
.roster-tools {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-right: 8px;
  display: flex;
}
.toggles {
  gap: 8px;
  display: flex;
}
.toggle {
  height: 44px;
  font-family: var(--font-display);
  color: var(--night-muted);
  background: var(--night-plate);
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 26px;
  line-height: 1;
  display: flex;
}
.toggle:hover {
  color: var(--night-text);
}
.toggle[aria-checked=true] {
  color: var(--night-text);
  background: #57b9ff29;
  box-shadow: inset 0 0 0 2px #57b9ff;
}
.toggle small,.cta-small small {
  font-family: var(--font-pixel);
  color: var(--night-muted);
  font-size: 15px;
}
.toggle[aria-checked=true] small {
  color: #a9d8ff;
}
.cta-small {
  height: 44px;
  padding: 0 16px;
  font-size: 26px;
}
.cta-alt.cta-small {
  box-shadow: inset 0 -5px #12141b,inset 0 0 0 2px #3c4359;
}
.roster-list {
  scrollbar-width: thin;
  scrollbar-color: #3a4157 transparent;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 0;
  margin-top: 10px;
  padding: 0 8px 18px 0;
  display: flex;
  overflow: auto;
}
.list-empty {
  text-align: center;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  display: grid;
}
.roster-list>.list-empty>.page-note {
  max-width: 540px;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.hero-sheet.market-empty-item {
  place-content: center;
  display: grid;
}
.side-empty {
  text-align: center;
  max-width: 360px;
  color: var(--night-muted);
  margin: 0;
  padding: 24px;
  font-size: 18px;
  line-height: 1.4;
}
.app:is([data-format=short],[data-format=tall]) .list-empty {
  gap: 12px;
  padding: 16px;
}
.app:is([data-format=short],[data-format=tall]) .roster-list>.list-empty>.page-note,.app:is([data-format=short],[data-format=tall]) .side-empty {
  font-size: 15px;
}
.roster-row {
  height: 66px;
  color: var(--night-text);
  font-family: var(--font-pixel);
  text-align: left;
  background: var(--night-plate);
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  border: 0;
  flex: none;
  grid-template-columns: 58px 104px repeat(3,44px) minmax(0,1fr) 152px;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 4px;
  transition: box-shadow .12s,background .12s;
  display: grid;
}
.roster-row:not(.roster-head):hover,.roster-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--rarity), inset 0 0 16px color-mix(in srgb, var(--rarity) 35%, transparent);
  outline: none;
}
.roster-row[aria-pressed=true] {
  background: color-mix(in srgb, var(--rarity) 10%, var(--night-plate));
  box-shadow: inset 0 0 0 3px var(--rarity);
}
.roster-row[data-status=idle]>* {
  opacity: .5;
}
.roster-row[data-status=idle]:hover>* {
  opacity: .8;
}
.roster-head {
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 34px;
  color: var(--night-muted);
  background: var(--night-card);
  box-shadow: none;
  clip-path: none;
  font-size: 13px;
  position: sticky;
  top: 0;
}
.roster-face {
  background: radial-gradient(ellipse 70% 60% at 50% 45%, color-mix(in srgb, var(--rarity) 45%, transparent), #10131a 80%);
  width: 58px;
  height: 58px;
  box-shadow: inset 0 0 0 3px var(--rarity), inset 0 0 0 5px #0b0d12;
  clip-path: var(--pixel-corners);
  place-items: center;
  display: grid;
}
.roster-name {
  min-width: 0;
  display: grid;
}
.roster-name strong {
  font-family: var(--font-display);
  color: var(--rarity);
  text-shadow: var(--outline-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 26px;
  font-weight: 400;
  line-height: .9;
  overflow: hidden;
}
.roster-name span {
  color: #c3c9d8;
  font-size: 14px;
}
.roster-stat {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
}
.roster-row .skill-badges {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  overflow: hidden;
}
.roster-row .skill-badge {
  padding: 2px;
}
.sheet-stat-icon {
  place-items: center;
  display: grid;
}
.roster-row[data-forge=true] .roster-repair,.sheet-durability[data-forge=true] .sheet-stat-icon {
  filter: drop-shadow(0 0 3px #ff8a3dd9);
}
.hero-sheet {
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 28px 26px 24px;
  display: flex;
  overflow: auto;
}
.sheet-head {
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  display: grid;
}
.sheet-name {
  justify-items: start;
  min-width: 0;
  display: grid;
}
.sheet-id {
  color: var(--night-muted);
  font-size: 15px;
}
.sheet-rarity {
  font-family: var(--font-display);
  color: var(--rarity);
  text-shadow: var(--outline-sm);
  margin-top: 4px;
  font-size: 52px;
  font-weight: 400;
  line-height: .9;
}
.sheet-skin {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}
.sheet-role {
  color: var(--night-muted);
  margin-top: 2px;
  font-size: 15px;
}
.sheet-status {
  color: var(--night-muted);
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 16px;
  display: flex;
}
.sheet-status:before {
  content: "";
  background: #5a6175;
  width: 10px;
  height: 10px;
}
.sheet-status[data-status=working] {
  color: #8be08a;
}
.sheet-status[data-status=working]:before {
  background: #5fd35a;
}
.sheet-status[data-status=resting] {
  color: #ffd27a;
}
.sheet-status[data-status=resting]:before {
  background: #ffb22e;
}
.sheet-status[data-status=forge] {
  color: #ffb27a;
}
.sheet-status[data-status=forge]:before {
  background: #ff8a3d;
}
.sheet-stats {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  display: grid;
}
.sheet-stat {
  background: var(--night-plate);
  height: 60px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  grid-template-columns: 36px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  display: grid;
}
.sheet-stat strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: .9;
  display: block;
}
.sheet-stat small {
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--night-muted);
  font-size: 12px;
  display: block;
}
.sheet-skills .skill-badges {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}
.skill-picker .skill-badge {
  cursor: pointer;
  border: 0;
}
.skill-picker .skill-badge[aria-pressed=true] {
  box-shadow: inset 0 0 0 2px var(--night-text), inset 0 -4px 0 #151821;
}
.sheet-durability {
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  display: grid;
}
.sheet-durability>:nth-child(3) {
  grid-column: 3;
}
.sheet-forge-note {
  font-family: var(--font-display);
  color: #ffb27a;
  font-size: 22px;
}
.sheet-actions {
  grid-auto-columns: minmax(0,1fr);
  grid-auto-flow: column;
  gap: 12px;
  margin-top: auto;
  display: grid;
}
.sheet-actions .cta {
  font-size: 32px;
}
.dur-bar.shield-bar {
  --fill: #57b9ff;
  --fill-light: #b5e1ff;
  --fill-dark: #2468c8;
}
.shield-bar[data-broken=true] {
  background: #0d1119;
}
.shield-small {
  height: 14px;
}
.shield-small:after {
  box-shadow: inset 0 0 0 2px var(--night-line);
}
.shield-broken-tag {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: #8ea5bb;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  display: none;
  position: absolute;
  inset: 0;
}
.shield-bar[data-broken=true] .shield-broken-tag {
  display: grid;
}
.sheet-shield {
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  display: grid;
}
.shield-level {
  height: 30px;
  font-family: var(--font-display);
  color: #a9d8ff;
  clip-path: var(--pixel-corners-small);
  background: #57b9ff1f;
  place-items: center;
  padding: 0 10px;
  font-size: 24px;
  line-height: 1;
  display: grid;
  box-shadow: inset 0 0 0 2px #57b9ff8c;
}
.shield-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: -2px;
  padding-left: 46px;
  display: grid;
}
.shield-actions .cta {
  gap: 12px;
  height: 42px;
}
.cost {
  align-items: center;
  gap: 5px;
  display: flex;
}
.cost>span {
  display: grid;
}
.shield-note {
  margin: -4px 0 0;
  padding-left: 46px;
}
.sheet-status[data-status=broken] {
  color: #8ec9ff;
}
.sheet-status[data-status=broken]:before {
  background: #57b9ff;
}
.heroes-layout .hero-sheet {
  gap: 12px;
  padding: 22px 24px 20px;
}
.heroes-layout .sheet-stat {
  height: 50px;
}
/* Seleção e custo de fusão.
 * Faixa 367–391 da folha de referência; preservar a ordem de importação.
 */
.fusion-layout {
  --accent: #ff5fd2;
  grid-template-columns: minmax(0,1fr) clamp(400px,30vw,440px);
  gap: 24px;
  max-width: 1440px;
  height: 100%;
  min-height: 520px;
  margin: 0 auto;
  display: grid;
}
.fusion-main {
  --accent: #ff5fd2;
}
.fusion-tabs {
  flex-wrap: wrap;
}
.fusion-tab[aria-checked=true] {
  color: var(--night-text);
  background: color-mix(in srgb, var(--rarity) 16%, transparent);
  box-shadow: inset 0 0 0 2px var(--rarity);
}
.fusion-tab[aria-checked=true] small {
  color: var(--rarity);
}
.fusion-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-right: 8px;
  display: flex;
}
.fusion-count {
  color: #c3c9d8;
  margin-right: auto;
  font-size: 15px;
}
.roster-row.fusion-row {
  grid-template-columns: 30px 58px 136px repeat(3,44px) minmax(0,1fr) 128px 66px;
  padding-left: 10px;
}
.fusion-row[aria-checked=true] {
  background: color-mix(in srgb, #ff5fd2 9%, var(--night-plate));
  box-shadow: inset 0 0 0 2px #ff5fd2;
}
.fusion-row[aria-disabled=true] {
  cursor: not-allowed;
}
.fusion-row[aria-disabled=true]>* {
  opacity: .45;
}
.fusion-box {
  width: 26px;
  height: 26px;
  clip-path: var(--pixel-corners-small);
  background: #0f1219;
  place-items: center;
  display: grid;
  box-shadow: inset 0 0 0 2px #3c4359;
}
.fusion-row[aria-checked=true] .fusion-box {
  box-shadow: none;
  background: #ff5fd2;
}
.fusion-row[aria-checked=true] .fusion-box:after {
  content: "";
  background: var(--ink);
  clip-path: polygon(14% 52%,0 66%,38% 100%,100% 22%,86% 8%,38% 72%);
  width: 16px;
  height: 14px;
}
.row-id {
  color: var(--night-text);
  font-style: normal;
}
.fusion-row .roster-name span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.row-shield {
  gap: 5px;
  display: grid;
}
.row-shield-text {
  font-family: var(--font-display);
  color: #a9d8ff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  align-items: baseline;
  gap: 6px;
  font-size: 20px;
  line-height: 1;
  display: flex;
}
.row-shield-text b {
  color: #8ec9ff;
  font-size: 16px;
  font-weight: 400;
}
.row-shield-text small {
  color: var(--night-muted);
  font-size: 16px;
}
.fusion-side {
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 26px 26px 22px;
  display: flex;
  overflow: auto;
}
.fusion-arrow {
  color: var(--night-muted);
}
.fusion-cost {
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  display: flex;
}
.fusion-cost strong {
  font-family: var(--font-display);
  color: var(--night-text);
  align-items: center;
  gap: 8px;
  font-size: 44px;
  font-weight: 400;
  display: flex;
}
.fusion-side .cta-big {
  width: 100%;
}
/* Seleção e saldo de sucata.
 * Faixa 392–402 da folha de referência; preservar a ordem de importação.
 */
.scrap-layout {
  --accent: #2ed3b7;
  --scrap: #2ed3b7;
}
.scrap-layout .fusion-main,.scrap-layout .fusion-side {
  --accent: var(--scrap);
}
.scrap-tabs {
  gap: 6px;
}
.scrap-tabs .fusion-tab {
  padding: 0 12px;
  font-size: 24px;
}
.scrap-side {
  gap: 14px;
}
.scrap-balance {
  background: var(--night-plate);
  height: 54px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  display: flex;
}
.scrap-balance .page-label {
  margin-right: auto;
}
.scrap-from {
  font-family: var(--font-display);
  color: var(--night-muted);
  align-items: center;
  gap: 6px;
  font-size: 26px;
  display: flex;
}
.scrap-balance strong {
  font-family: var(--font-display);
  color: var(--night-text);
  align-items: center;
  gap: 6px;
  font-size: 34px;
  font-weight: 400;
  display: flex;
}
.scrap-rule {
  margin: 0;
}
.scrap-side .cta-big {
  width: 100%;
  margin-top: auto;
}
/* Atalhos e dicas do lobby.
 * Faixa 403–418 da folha de referência; preservar a ordem de importação.
 */
.shortcuts {
  gap: 8px;
  display: flex;
}
.screen-lobby>.shortcuts {
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  position: absolute;
}
.screen-lobby .shortcut-plate {
  width: 60px;
  height: 60px;
}
.app[data-format=tall] .screen-lobby>.shortcuts {
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.app[data-format=tall] .screen-lobby .shortcut {
  zoom: .8;
}
.app[data-format=short] .screen-lobby>.shortcuts {
  top: calc(var(--topbar-height) + 6px);
  grid-template-columns: repeat(2,auto);
  align-content: center;
  gap: 4px;
  display: grid;
  bottom: 8px;
  right: 10px;
}
.app[data-format=short] .screen-lobby .shortcut {
  zoom: .6;
}
.app:is([data-format=short],[data-format=tall]) .screen-lobby .shortcut[data-label]:after {
  content: none;
}
.shortcut {
  background: 0 0;
  border: 0;
  padding: 0;
  position: relative;
}
.shortcut-plate {
  width: 60px;
  height: 60px;
  box-shadow: inset 0 0 0 2px var(--night-line), 0 6px 0 #00000073;
  clip-path: var(--pixel-corners);
  background: #171a23f5;
  place-items: center;
  transition: box-shadow .12s;
  display: grid;
}
.shortcut:hover .shortcut-plate,.shortcut:focus-visible .shortcut-plate {
  box-shadow: inset 0 0 0 2px var(--glow), inset 0 0 16px color-mix(in srgb, var(--glow) 40%, transparent);
}
.shortcut:focus-visible {
  outline: none;
}
.shortcut-locked .shortcut-plate {
  box-shadow: inset 0 0 0 2px #4b47c9,0 6px #00000073;
}
.shortcut:active .shortcut-plate {
  transform: translateY(2px);
}
.shortcut[data-label]:after {
  content: attr(data-label);
  font-family: var(--font-display);
  white-space: nowrap;
  color: var(--night-text);
  box-shadow: inset 0 0 0 2px var(--night-line);
  opacity: 0;
  pointer-events: none;
  background: #0b0d12f5;
  padding: 6px 12px 7px;
  font-size: 22px;
  line-height: 1;
  transition: opacity .12s;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%);
}
.shortcut:hover:after,.shortcut:focus-visible:after {
  opacity: 1;
}
/* Carregamento, manutenção e apresentação de login.
 * Faixa 419–459 da folha de referência; preservar a ordem de importação.
 */
.loading {
  z-index: 100;
  color: var(--night-text);
  font-family: var(--font-pixel);
  background: radial-gradient(ellipse 45% 40% at 50% 46%, #57b9ff29, transparent 70%), var(--night);
  place-content: center;
  justify-items: center;
  gap: 26px;
  transition: opacity .35s;
  display: grid;
  position: fixed;
  inset: 0;
}
.loading.loaded {
  opacity: 0;
  pointer-events: none;
}
.loading-logo {
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-shadow: var(--outline);
  margin: 0;
  font-size: 132px;
  line-height: .8;
}
.loading-logo b {
  color: #ff9a3c;
  font-weight: 400;
}
.loading-heroes {
  display: flex;
}
.loading-hero {
  width: 192px;
  height: 102px;
  margin: 0 -50px;
  overflow: hidden;
}
.loading-hero img {
  width: 3072px;
  height: 768px;
  image-rendering: pixelated;
  margin-top: -18px;
  display: block;
}
.loading-hero.turned img {
  margin-top: -210px;
}
.loading-bar {
  width: min(460px,80vw);
  height: 30px;
  clip-path: var(--pixel-corners-small);
  background: #0b0d12;
  padding: 3px;
  position: relative;
}
.loading-bar:after {
  content: "";
  box-shadow: inset 0 0 0 3px var(--night-line);
  clip-path: var(--pixel-corners-small);
  position: absolute;
  inset: 0;
}
.loading-fill {
  background: linear-gradient(#ffd98a 0 3px,#ff9a3c 3px calc(100% - 3px),#b8540f calc(100% - 3px));
  width: 0;
  height: 100%;
  transition: width .2s;
  display: block;
}
.loading-pct {
  font-family: var(--font-display);
  color: var(--night-muted);
  margin: 0;
  font-size: 26px;
}
.loading .account-actions,.loading-note,.loading.login .loading-bar,.loading.login .loading-pct {
  display: none;
}
.loading.login .account-actions {
  display: grid;
}
.loading.login .loading-note {
  color: var(--night-muted);
  text-align: center;
  margin: 0;
  font-size: 18px;
  display: block;
}
.loading.login:has(.login-notice:not([hidden])) .loading-note {
  display: none;
}
.loading-maintenance,.loading.maintenance .loading-bar,.loading.maintenance .loading-pct,.loading.maintenance .account-actions,.loading.maintenance .loading-note {
  display: none;
}
.loading.maintenance .loading-maintenance {
  text-align: center;
  justify-items: center;
  gap: 12px;
  max-width: min(560px,90vw);
  display: grid;
}
.loading-maintenance h2 {
  font-family: var(--font-display);
  letter-spacing: 2px;
  color: #ff9a3c;
  text-shadow: var(--outline);
  margin: 0;
  font-size: 44px;
  font-weight: 400;
}
.loading-maintenance p {
  color: var(--night-muted);
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.loading[data-format] {
  gap: calc(var(--gap) * var(--frame-scale));
}
.loading[data-format]>* {
  zoom: var(--frame-scale);
}
.loading[data-format] .loading-bar {
  width: var(--bar);
}
.loading[data-format].maintenance .loading-maintenance {
  max-width: var(--text-width);
}
.loading[data-format] .login-notice {
  max-width: var(--notice-width);
}
.loading[data-format] .loading-hero {
  width: calc(32px * var(--k));
  height: calc(17px * var(--k));
  margin: 0 calc(-50px * var(--k) / 6);
}
.loading[data-format] .loading-hero img {
  width: calc(512px * var(--k));
  height: calc(128px * var(--k));
  margin-top: calc(-3px * var(--k));
}
.loading[data-format] .loading-hero.turned img {
  margin-top: calc(-35px * var(--k));
}
.loading[data-format=wide] {
  --gap: 26px;
  --k: 6;
  --bar: 460px;
  --text-width: 560px;
  --notice-width: 620px;
}
.loading[data-format=short] {
  --gap: 16px;
  --k: 5;
  --bar: 360px;
  --text-width: 600px;
  --notice-width: 600px;
}
.loading[data-format=short] .loading-logo {
  font-size: 84px;
}
.loading[data-format=short] .account-actions .action-button {
  height: 56px;
  padding: 0 30px;
  font-size: 30px;
}
.loading[data-format=short] .login-notice {
  font-size: 30px;
}
.loading[data-format=tall] {
  --gap: 24px;
  --k: 6;
  --bar: 300px;
  --text-width: 340px;
  --notice-width: 340px;
}
.loading[data-format=tall] .loading-logo {
  text-align: center;
  font-size: 96px;
}
.loading[data-format=tall] .account-actions .action-button {
  height: 60px;
  padding: 0 30px;
  font-size: 32px;
}
.loading[data-format=tall] .login-notice {
  font-size: 28px;
}
.loading:is([data-format=short],[data-format=tall]) .loading-pct {
  font-size: 22px;
}
.loading:is([data-format=short],[data-format=tall]) .loading-note {
  font-size: 17px;
}
.loading:is([data-format=short],[data-format=tall]) .loading-maintenance h2 {
  font-size: 34px;
}
.loading:is([data-format=short],[data-format=tall]) .loading-maintenance p {
  font-size: 16px;
}
/* Probabilidades, garantias e contadores de invocação.
 * Faixa 460–485 da folha de referência; preservar a ordem de importação.
 */
.panel-head.with-aside {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  display: flex;
}
.summon-total {
  color: #c3c9d8;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 16px;
  display: flex;
}
.summon-total span,.summon-total strong {
  align-items: center;
  gap: 8px;
  display: flex;
}
.summon-total strong {
  font-family: var(--font-display);
  color: var(--night-text);
  font-size: 40px;
  font-weight: 400;
}
.odds-table {
  margin-top: 22px;
}
.odds-row {
  grid-template-columns: 26px 1fr 80px;
  align-items: center;
  gap: 10px;
  height: 34px;
  font-size: 16px;
  display: grid;
  box-shadow: inset 0 -2px #31374a80;
}
.odds-head {
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 28px;
  color: var(--night-muted);
  box-shadow: inset 0 -2px 0 var(--night-line);
  font-size: 13px;
}
.odds-row>:last-child {
  text-align: right;
}
.odds-row strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}
.odds-card {
  width: 16px;
  height: 22px;
  box-shadow: inset 0 0 0 3px var(--rarity);
  background: #10131a;
}
.odds-name {
  color: var(--rarity);
}
.pity-title {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-shadow: var(--outline-sm);
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.pity-rows {
  gap: 10px;
  margin-top: 14px;
  display: grid;
}
.pity-row {
  grid-template-columns: 16px 92px minmax(0,1fr) 84px;
  align-items: center;
  gap: 12px;
  display: grid;
}
.pity-name {
  color: var(--rarity);
  font-size: 16px;
}
.pity-bar {
  height: 32px;
}
.pity-left {
  font-family: var(--font-display);
  color: var(--night-text);
  justify-content: flex-end;
  align-items: baseline;
  gap: 5px;
  font-size: 28px;
  line-height: 1;
  display: flex;
}
.pity-left small {
  font-family: var(--font-pixel);
  color: var(--night-muted);
  font-size: 13px;
}
.pity-note {
  margin-top: 14px;
}
.pity-uncommon {
  --fill: #6ee06a;
  --fill-light: #b6f5a6;
  --fill-dark: #2f8a3a;
}
.pity-rare {
  --fill: #4aa8ff;
  --fill-light: #a6d5ff;
  --fill-dark: #1f5fc0;
}
.pity-epic {
  --fill: #b670ff;
  --fill-light: #dbb8ff;
  --fill-dark: #6a2fc0;
}
.pity-row.next .pity-bar {
  filter: drop-shadow(0 0 6px var(--rarity)) drop-shadow(0 0 2px var(--rarity));
}
.pity-row.next .pity-left {
  color: var(--rarity);
  text-shadow: var(--outline-sm);
}
@media (prefers-reduced-motion:no-preference) {
  .pity-row.next .pity-bar {
    animation: 1.2s steps(2,end) infinite pity-pulse;
  }
}
@keyframes pity-pulse {
  50% {
    filter: drop-shadow(0 0 2px var(--rarity));
  }
}
/* Animações e fatos de ferreiros e porter.
 * Faixa 486–495 da folha de referência; preservar a ordem de importação.
 */
.forge-entrance {
  width: 210px;
  height: 222px;
  image-rendering: pixelated;
  margin-top: 26px;
}
.forge-smith {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAgCAYAAABEmHeFAAACk0lEQVR4nO3Z30tTYRgH8O8iVGgmzsWuJIoGoUWEyKCQLgqqhdKPi61YyTCkgwzXRQWBxAiCdaMQ6EUXgwqbd9Kc7X9Y3nUTQwrqzhksA3/cvF3YmUorznm3875b+35gN+fH+32eZzs74wwgIiIiIiIiIiIiIiIiIiIiak5jU9NCdw3NjPOvvf1WDxybmhal1RUAqPQmuGpWkTW6a1Cez/k7k2/pJHP4b54+QbY3AN9x4Gh8BADgbnOjpf+WdAEShOYalOdz/s7l77Ny0O/huxbGewAAnXfD8AyMAoAZrJzuGlTmc/51lP/y9mGx/H5SZHsD4sONgFiO3xOofEtyku4atOVz/rXNl7lliZHIBZy/OID2A53wdPlw9lxIdi1ZYvZ1olnzOf8a5ssWLc70HYPP2w7PoS6cONWH+w+S1axnO1/kgOuTp3HkWgzda58QP5mE65LaD+H3ldVyvur+OX998xe7X7EhiI1Rr4gNKbsFlrNFDiIykRAiBy35C+M9IjKR0NY/NM/f7L+R52/5MagZ/nZucc8Gf0sGm8UUhr0GXrybMYtw6krck58uAUAeP762YTgaVZ6/BgAf89js/6mlf0Dv/M3+G3n+dgqtOHx/MYWCN4rC1mB5+81Q0O7atvPDHUEsrRvwF1M42L2BdGlnn4p8QG//9Zgf7ggiXVpsqP4tPQb9l9a8u9olpJgf+Na8G0vrBoDti0I1Xf3XY/7uLyEd+TJs/QSaz2Zw9crOlVbYGgQuo3z1zWczVRVTbX541gDgXA313r+qfPOb/n/o3+5tSoTuGH/dOfdqRnZd5jNfS77U/wCPHj//Y2Py2UPZ9ZjPfG35dp8CAQC+fPssc1rNMJ/5RERERERERERE1v0Crqsv19p0js4AAAAASUVORK5CYII=) 0 0/768px 128px no-repeat;
  animation: 1.2s steps(6,end) infinite forge-smith;
  position: absolute;
  bottom: -4px;
}
@keyframes forge-smith {
  to {
    background-position-x: -768px;
  }
}
.facts {
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 16px;
  display: grid;
}
.fact {
  background: var(--night-plate);
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  padding: 10px 12px 8px;
  display: grid;
}
.fact strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}
.fact span {
  color: var(--night-muted);
  font-size: 13px;
}
.porter-sprite {
  width: 200px;
  height: 180px;
  image-rendering: pixelated;
}
.porter-loop {
  width: 240px;
  height: 140px;
  image-rendering: pixelated;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAAOCAYAAAA/ruXZAAAHnUlEQVR42u2dS2gbRxzGP8WlBwenEZZltyAscAqxLeUSQ14FWQWnMaQX9+RQIQIuLQ4Y0kuaOOggCKWngg7Bpb4YQww5+JJLkkITQZ7gXCK5DjQmCoLWVlZIzUOHlrI9yDtZyZJsa2c2Xvf7QMRSxG9m5z/7zc5TLlAURVEURVEURVFWpNf4zMVioSiK/iBPLDRWRIqiKIr+T1EURW1RPp8P2WwWAPQRrxeB3k7xfx6/BxMzt9g2UBT9gf4gUe+xCJrvvNSpiDorIkVRFP2foiiK2rk6cOgYHj+8W/FZemkVg8P9+PPgV3AXrwEAAvvdSD8psMAoiv5Af5CgjQawVM8wO5of6O2Ex+8R7909XY7rhDG+5JNPPvn0f8aXfPLJV8i3bcVqa2srSqWS8vSqOqd6LBQUbYKW0eA+0QYUgdn4KCKxORWTG1wFTFHb9BlJlT8o8je7vcRyeo0GsFTPMDuZr8dCQQDA0omz6L3+I7SMhqUTZzEbh8yGSmWFYnzJJ5988un/jC/55JOvkm/ritVSqdQwPdOWHkuqXllhlsfvgTZ1AQW/R0xuDHS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/cLhfdIot/pJiTX6gtxOBtXrg7unCmbUvR2Jz+hYHIWryjw/4cHMhKwZRDu/eizPnhqXln/x3G1/V9dNB/iDV3+z2Z6vty646D+fQMhriyVTFAzoA8wN6sxfhdH7FSGTuWQsOTi0jen8MAHDlaXk0UUZlbJR/i50vxpd88k387GILAGD6dpH5Z/2h/7P+kE//Z/6t51/wjA4nAGOGHb+O/QQAmDkyjRsv8oZ/Nn3mylCf2zUxcwvppdWKswnN6VtcfVuzc1pdPkZ7sJaO5cGran6tMgXWb0dqlm/I4/fg9dQFFJZXUFheEWfUDHS3Wcq/cWaP0eE287dwvlBD/vEBX8XLnH/y1fNVxld1/VR9fzXrDwr8zVZ/lt2+NPqSPuL1Yj6XQyIaxqNveqpHyCwvJXM4X6QTCwVxJ3IUn8zeM85DkfYz7fFkqmb+JYzYMr7kk08++fR/xpd88slXyRfn1sSTKQQmx5G+dFnF9mv42/cgk3+57pwcY8s3AAzs+8C18PQvKf7fYAWBSyHfhfpnAW2lfajJr3eOYzPbp7bCN9KIxOYw0N3m2sQZQ03zVeeffPvjK6t+qr6/rPiDIn+zzZ9lti+7Gg1uzedyCEyOQ8toyC62oPu7h2KGR4Kczhe6Ezla8a+MvMeTKVGRauVfwgw/40s++eSTT/9nfMknn3yVfNd87u0PXqQvXQZQnuHPLrYgu9iC6dtFGTP8yORfwt++R6RnvIzzCgFA1uBVYHIcuWct4hpkD15V82+8yIv/7NrTuu4at9q5rsfXMtq6X9eVmf+N+IloGAvPX+kq+ZuoZ+Q7NL7b9f6S4Q+K/M02f7b7+VwPTI7rAPTo/TEdCn5Skfz6bJYP+eSTTz79n+VDPvnkk0++Sv6I16uPeL16LBSseCWiYT0WCuoA9KE+t3S+OY1ENLzZayWffKn1k/7gHP5/ClwNPc9smlQAAAAASUVORK5CYII=) 0 0/12000px 140px no-repeat;
  animation: 8.2s infinite porter-loop;
}
@keyframes porter-loop {
  0% {
    background-position-x: 0;
    animation-timing-function: steps(32,end);
  }
  78.05% {
    background-position-x: -7680px;
    animation-timing-function: steps(18,end);
  }
  to {
    background-position-x: -12000px;
  }
}
/* Filtros, preços, taxas e composição de compra/venda.
 * Faixa 496–529 da folha de referência; preservar a ordem de importação.
 */
.icon-price {
  width: 44px;
  height: 44px;
}
.market-filters .toggle[style]:before {
  content: "";
  background: var(--grade);
  width: 12px;
  height: 12px;
  box-shadow: inset -3px -3px #00000059,inset 3px 3px #ffffff59;
}
.market-filters {
  margin-top: 10px;
}
.market-filters .toggle {
  height: 40px;
  padding: 0 12px;
  font-size: 24px;
}
.market-right {
  text-align: right;
  justify-self: end;
}
.market-price {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  line-height: 1;
  display: flex;
}
.market-more {
  flex: none;
  align-self: center;
  margin-top: 6px;
}
.market-section {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--night-muted);
  flex: none;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  font-size: 13px;
  display: flex;
}
.market-section small {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--night-text);
  font-size: 22px;
}
.market-section:after {
  content: "";
  background: var(--night-line);
  flex: 1;
  height: 2px;
}
.market-breakdown {
  gap: 4px;
  display: grid;
}
.market-breakdown>div {
  color: #c3c9d8;
  background: var(--night-plate);
  height: 44px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 15px;
  display: flex;
}
.market-breakdown strong {
  font-family: var(--font-display);
  color: var(--night-text);
  font-size: 28px;
  font-weight: 400;
}
.market-breakdown .market-fee strong {
  color: #ff9c8f;
}
.market-breakdown .market-total {
  height: 54px;
  color: var(--night-text);
  background: #5fd35a14;
  box-shadow: inset 0 0 0 2px #5fd35a66;
}
.market-total .market-price {
  color: #8be08a;
  font-size: 36px;
}
.sheet-status[data-status=note]:before {
  background: #ffd447;
}
.facts-two {
  grid-template-columns: 1fr 1fr;
}
.sell-actions {
  grid-template-columns: 170px minmax(0,1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  display: grid;
}
.buy-breakdown .buy-price {
  color: #ffd447;
  font-size: 32px;
}
.buy-breakdown .market-total .market-price {
  font-size: 30px;
}
.buy-wallet {
  height: 48px;
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  background: #0f1219;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  display: flex;
}
.buy-wallet .page-label {
  margin-right: auto;
}
@keyframes nudge {
  0% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}
:where(.app[data-format=tall]) .buy-breakdown>div {
  height: auto;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
}
:where(.app[data-format=tall]) .buy-breakdown>div>:last-child {
  white-space: nowrap;
  flex: none;
}
.buy-balance {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  display: flex;
}
.buy-warning {
  color: #ffd0c8;
  clip-path: var(--pixel-corners);
  background: #ff78641a;
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: inset 0 0 0 2px #ff786473;
}
.buy-warning[hidden] {
  display: none;
}
.buy-status {
  min-height: 19px;
  margin: 0;
}
.buy-status-error {
  color: #ffb4a8;
}
.buy-actions {
  grid-template-columns: 170px minmax(0,1fr);
  margin-top: 4px;
  padding-top: 0;
}
.buy-actions .cta[hidden] {
  display: none;
}
.buy-actions:has(.cta-main[hidden]) {
  grid-template-columns: 1fr;
}
/* Convites e ícones dos links sociais.
 * Faixa 530–539 da folha de referência; preservar a ordem de importação.
 */
.invite-btn {
  width: auto;
  color: var(--night-text);
  box-shadow: inset 0 0 0 2px var(--night-line), inset 0 -4px 0 #2a8fb0;
  gap: 10px;
  padding: 0 18px 0 14px;
  display: flex;
}
.invite-btn:hover {
  box-shadow: inset 0 0 0 2px #7fe3ff,inset 0 -4px #2a8fb0;
}
.icon-invite {
  width: 30px;
  height: 20px;
}
.icon-trophy {
  width: 30px;
  height: 30px;
}
.topbar-links {
  gap: 10px;
  display: flex;
}
.link-btn {
  text-decoration: none;
}
.icon-discord {
  width: 42px;
  height: 30px;
}
.icon-x {
  width: 30px;
  height: 27px;
}
.invite-label {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.icon-check {
  width: 18px;
  height: 14px;
}
/* Toasts, banners e estados de notificação.
 * Faixa 540–553 da folha de referência; preservar a ordem de importação.
 */
.toasts {
  z-index: 50;
  pointer-events: none;
  gap: 10px;
  width: min(460px,100% - 24px);
  display: grid;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%);
}
.toast {
  --kind: #57b9ff;
  font-family: var(--font-pixel);
  color: var(--night-text);
  box-shadow: inset 0 0 0 2px var(--night-line), 0 6px 0 #00000073;
  clip-path: var(--pixel-corners);
  background: #171a23f7;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 15px 20px 14px 18px;
  font-size: 16px;
  line-height: 1.35;
  transition: opacity .3s,transform .3s;
  animation: .2s ease-out pop;
  display: grid;
  position: relative;
}
.toast:before {
  content: "";
  background: var(--kind);
  width: 4px;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
}
.toast-error {
  --kind: #e8453c;
}
.toast-success {
  --kind: #5fd35a;
}
.toast-card {
  --kind: #7fe3ff;
}
.toast-card .toast-mark .icon {
  width: 18px;
  height: 26px;
}
.toast-mark {
  width: 30px;
  height: 30px;
  font-family: var(--font-display);
  color: #0b0d12;
  background: var(--kind);
  clip-path: var(--pixel-corners-small);
  place-items: center;
  font-size: 26px;
  line-height: 1;
  display: grid;
}
.toast-leaving {
  opacity: 0;
  transform: translateY(8px);
}
.app[data-format=tall] .toasts {
  top: calc(env(safe-area-inset-top) + var(--topbar-height) + 8px);
  bottom: auto;
}
.app[data-format=tall] .toast-leaving {
  transform: translateY(-8px);
}
.status-banner {
  top: calc(var(--topbar-height) + 16px + env(safe-area-inset-top));
  z-index: 30;
  text-align: center;
  width: max-content;
  max-width: min(560px,100% - 24px);
  color: var(--night-text);
  font-family: var(--font-pixel);
  box-shadow: inset 0 0 0 4px var(--night-line), inset 0 0 0 6px #0b0d12;
  clip-path: var(--pixel-corners);
  background: #171a23f7;
  padding: 22px 24px 18px;
  font-size: 16px;
  position: fixed;
  left: 50%;
  transform: translate(-50%);
}
.status-banner:before {
  content: "";
  background: #ffd447;
  height: 4px;
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
}
.status-text {
  margin: 0;
  line-height: 1.4;
}
/* Botões da conta e estados do login.
 * Faixa 554–571 da folha de referência; preservar a ordem de importação.
 */
.action-button {
  height: 46px;
  font-family: var(--font-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: #2b1408;
  background: var(--orange);
  box-shadow: inset 0 -6px 0 var(--orange-deep), inset 0 3px 0 #ffc07a;
  clip-path: var(--pixel-corners);
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
  font-size: 26px;
  line-height: 1;
  transition: filter .1s;
  display: inline-flex;
}
.action-button:not(:disabled):hover {
  filter: brightness(1.08);
}
.action-button:not(:disabled):active {
  transform: translateY(2px);
}
.action-button:disabled {
  color: #6b7286;
  cursor: not-allowed;
  background: #2a2e3a;
  box-shadow: inset 0 -6px #191c24;
}
.account-actions {
  justify-items: center;
  gap: 10px;
  display: grid;
}
.account-actions .action-button {
  height: 64px;
  padding: 0 36px;
  font-size: 36px;
}
.login-notice {
  max-width: 620px;
  font-family: var(--font-display);
  text-align: center;
  color: #ff9a3c;
  text-shadow: var(--outline);
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.1;
}
.login-status {
  color: var(--night-muted);
  margin: 0;
  font-size: 15px;
}
.login-status:empty {
  display: none;
}
.login-error {
  text-align: center;
  max-width: 460px;
}
.account-actions .action-button[aria-busy=true]:disabled {
  cursor: progress;
}
.panel-error {
  color: #ff8f80;
  margin: 0;
  font-size: 14px;
}
.login-install {
  text-align: center;
  max-width: 460px;
  color: var(--night-muted);
  margin: 0;
  font-size: 15px;
}
.login-install a {
  color: var(--orange);
}
.login-open {
  gap: 10px;
  width: min(100%,320px);
  display: grid;
}
.login-open a {
  color: var(--night-text);
  font-family: var(--font-pixel);
  background: var(--night-plate);
  clip-path: var(--pixel-corners);
  padding: 14px 16px;
  font-size: 20px;
  text-decoration: none;
  display: block;
  box-shadow: inset 0 -4px #12141b,inset 0 0 0 2px #3c4359;
}
.login-open a:hover,.login-open a:focus-visible {
  box-shadow: inset 0 0 0 2px var(--orange), inset 0 -4px 0 #12141b;
  outline: none;
}
.login-open a:active {
  transform: translateY(2px);
}
/* Animações comuns e ajustes finais para telas compactas.
 * Faixa 572–599 da folha de referência; preservar a ordem de importação.
 */
@keyframes fade {
  0% {
    opacity: 0;
  }
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(.92);
  }
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion:reduce) {
  *,:before,:after {
    transition: none !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
:where(.app[data-format=tall]) .pity-row {
  grid-template-columns: 16px 74px minmax(0,1fr) 62px;
  gap: 8px;
}
:where(.app[data-format=tall]) .pity-name {
  font-size: 14px;
}
:where(.app[data-format=tall]) .pity-left {
  gap: 4px;
  font-size: 24px;
}
:where(.app[data-format=tall]) .pity-left small {
  font-size: 11px;
}
:where(.app[data-format=tall]) .shield-actions,:where(.app[data-format=tall]) .shield-note {
  padding-left: 0;
}
:where(.app[data-format=tall]) .shield-actions .cta {
  gap: 8px;
  padding: 0 10px;
  font-size: 22px;
}
:where(.app[data-format=tall]) .ask-track .dur-text {
  font-size: 22px;
}
:where(.app[data-format=tall]) .ask-room {
  font-size: 0;
}
:where(.app[data-format=tall]) .panel-ask .ask-change {
  font-size: 18px;
}
:where(.app[data-format=tall]) .pay-line {
  gap: 6px;
  padding: 0 10px;
}
:where(.app[data-format=tall]) .pay-line .ask-amount {
  font-size: 20px;
}
:where(.app[data-format=tall]) .pay-with .toggle {
  gap: 6px;
  padding: 0 8px;
  font-size: 24px;
}
:where(.app[data-format=tall]) .pay-col .ask-actions .cta,:where(.app[data-format=tall]) .ask-actions .cta {
  padding: 0 10px;
  font-size: 24px;
}
@media (width<=560px) {
  .loading:not([data-format]) .loading-logo {
    text-align: center;
    font-size: min(132px,24vw);
  }
}
.panel-ask.panel-nickname {
  --accent: var(--orange);
}
.nick-change {
  box-shadow: inset 0 0 0 2px var(--night-line);
  clip-path: var(--pixel-corners);
  background: #12151d;
  justify-items: start;
  gap: 6px;
  padding: 18px 20px;
  display: grid;
}
.nick-change strong {
  max-width: 100%;
  font-family: var(--font-display);
  text-shadow: var(--outline-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  line-height: .9;
  overflow: hidden;
}
.nick-old {
  color: var(--night-muted);
  font-size: 36px;
}
.nick-new {
  color: var(--night-text);
  font-size: 52px;
}
.nick-arrow {
  align-items: center;
  height: 40px;
  display: grid;
}
:where(.app[data-format=tall] .framed) .roster-face {
  width: 46px;
  height: 46px;
}
:where(.app[data-format=tall] .framed) .sheet-stat {
  grid-template-columns: 24px minmax(0,1fr);
  gap: 6px;
  padding: 0 6px;
}
:where(.app[data-format=tall] .framed) .sheet-stat .sheet-stat-icon .icon {
  zoom: calc(2 / 3);
}
:where(.app[data-format=tall] .framed) .sheet-stat small {
  letter-spacing: 0;
}
