@font-face {
  font-family: "bc-novatica-cyr";
  src: url("./assets/swamp-lane/fonts/bc-novatica-cyr/BCNovaticaCyr-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "bc-novatica-cyr";
  src: url("./assets/swamp-lane/fonts/bc-novatica-cyr/BCNovaticaCyr-SemiBold.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "bc-novatica-cyr";
  src: url("./assets/swamp-lane/fonts/bc-novatica-cyr/BCNovaticaCyr-Bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07100d;
  --panel: rgba(35, 31, 20, 0.92);
  --panel-deep: rgba(11, 16, 11, 0.9);
  --panel-warm: rgba(63, 46, 25, 0.86);
  --text: #f9edc6;
  --text-strong: #fff7dc;
  --muted: rgba(232, 213, 165, 0.62);
  --line: rgba(143, 174, 67, 0.46);
  --line-warm: rgba(185, 136, 53, 0.48);
  --inner-line: rgba(255, 231, 158, 0.1);
  --green: #9fca3a;
  --green-dark: #4b701f;
  --amber: #d7952b;
  --amber-dark: #7d4313;
  --blue: #82bdd5;
  --red: #c65a49;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  font-family: "bc-novatica-cyr", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body:has(#view-wallet.is-wallet-connected.is-active) {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 93, 34, 0.45), transparent 38%),
    radial-gradient(circle at 20% 26%, rgba(37, 76, 52, 0.42), transparent 28%),
    linear-gradient(180deg, #132a1c 0%, #06100c 54%, #020705 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 4, 0.72), transparent 18%, transparent 82%, rgba(2, 5, 4, 0.72)),
    linear-gradient(180deg, rgba(2, 5, 4, 0.14), rgba(2, 5, 4, 0.72));
}

.desktop-video-backdrop {
  display: none;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 34%, rgba(159, 202, 58, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(6, 16, 12, 0.98), rgba(2, 7, 5, 0.98));
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.boot-loader img {
  width: 104px;
  max-width: 34vw;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.48));
}

.boot-loader span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.boot-loader span::after {
  content: "";
  width: 34px;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: boot-pulse 900ms ease-in-out infinite;
}

body:not(.is-booting) .boot-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes boot-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: translateX(-8px);
  }
  50% {
    opacity: 1;
    transform: translateX(8px);
  }
}

.desktop-phone-stage,
.desktop-phone-device {
  min-height: 100svh;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  transition:
    transform 150ms ease,
    filter 150ms ease,
    opacity 150ms ease;
}

a {
  color: #b9dc61;
  font-weight: 800;
  text-decoration-color: rgba(185, 220, 97, 0.42);
}

.app-shell {
  width: min(620px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
  opacity: 1;
  transition: opacity 260ms ease;
}

body.is-booting .app-shell {
  opacity: 0;
  pointer-events: none;
}

.ogre-ui {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.topbar {
  position: relative;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.panel-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  border: 1px solid var(--inner-line);
  border-radius: 5px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  max-width: 22vw;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 10px rgba(161, 210, 65, 0.18));
}

.visually-hidden {
  display: none !important;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0 0 3px;
  scrollbar-width: none;
}

.status-strip::-webkit-scrollbar {
  display: none;
}

.chip {
  min-width: 0;
  min-height: 26px;
  padding: 5px 6px;
  border: 1px solid rgba(151, 197, 70, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 52, 26, 0.88), rgba(13, 18, 12, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 242, 177, 0.07);
  color: rgba(232, 213, 165, 0.72);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.chip strong {
  color: #eff7bd;
  font-weight: 800;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.screen-intro {
  margin: 0 0 10px;
}

.screen-intro h2 {
  margin: 0;
  color: #fff7dc;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.screen-intro p {
  margin: 6px 0 0;
  color: rgba(232, 213, 165, 0.68);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

#view-wallet.is-wallet-connected.is-active {
  display: flex;
  flex-direction: column;
  height: calc(100svh - 194px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: 0;
  overflow: hidden;
}

.panel-frame,
.balance-panel,
.budget-band,
.form-block,
.referral-box,
.info-table,
.admin-panel,
.item,
.metric,
.empty-state {
  position: relative;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-warm), var(--panel-deep));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 242, 177, 0.09);
  overflow: hidden;
}

.balance-panel::after,
.budget-band::after,
.form-block::after,
.referral-box::after,
.info-table::after,
.admin-panel::after,
.item::after,
.metric::after,
.empty-state::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid var(--inner-line);
  border-radius: 5px;
}

.balance-panel > *,
.budget-band > *,
.form-block > *,
.referral-box > *,
.info-table > *,
.admin-panel > *,
.item > *,
.metric > *,
.empty-state > * {
  position: relative;
  z-index: 1;
}

.balance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  background:
    radial-gradient(circle at 86% 20%, rgba(151, 197, 70, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(38, 47, 25, 0.92), rgba(12, 17, 11, 0.96));
}

.reward-card small {
  display: block;
  margin-top: 7px;
  color: rgba(232, 213, 165, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.setup-checklist,
.quest-progress,
.quest-success-strip {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(39, 47, 27, 0.9), rgba(8, 13, 9, 0.96));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 242, 177, 0.08);
  overflow: hidden;
}

.setup-checklist {
  padding: 12px;
}

.checklist-head,
.quest-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.checklist-head span,
.quest-progress span,
.quest-section h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checklist-head strong,
.quest-progress strong {
  color: #f8e7ab;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.checklist-steps {
  display: grid;
  gap: 7px;
}

.checklist-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(4, 10, 7, 0.62);
  color: #fff2c4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.checklist-step strong {
  color: rgba(232, 213, 165, 0.74);
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.check-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 217, 110, 0.32);
  border-radius: 999px;
  background: rgba(91, 64, 21, 0.54);
  color: #ffd875;
  font-size: 8px;
  font-weight: 900;
}

.checklist-step.is-done .check-icon {
  border-color: rgba(183, 235, 69, 0.48);
  background: rgba(61, 96, 23, 0.7);
  color: #d8ff74;
}

.quest-progress {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.quest-progress-meter {
  height: 8px;
  border: 1px solid rgba(221, 179, 84, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.quest-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 10px rgba(185, 220, 97, 0.35);
}

.label,
.metric span,
.info-table span,
.admin-cell span,
.form-block label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

#balance-main {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: var(--text-strong);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 12px rgba(185, 220, 97, 0.18);
}

.primary-action,
.secondary-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
  transition:
    transform 150ms ease,
    filter 150ms ease,
    opacity 150ms ease;
}

.primary-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(214px, 72vw);
  min-width: 0;
  aspect-ratio: 1788 / 603;
  padding: 0 34px 2px;
  background-image: url("./assets/swamp-lane/ui/btn-primary.webp?v=swamp-lane-assets-2");
  box-shadow: none;
  color: #2a1608;
  text-shadow:
    0 1px 0 rgba(255, 247, 203, 0.95),
    0 0 3px rgba(255, 247, 203, 0.75);
}

.primary-action > i,
.primary-action > span {
  position: relative;
  z-index: 1;
}

.primary-action::after {
  content: "";
  position: absolute;
  top: 27%;
  bottom: 31%;
  left: 13%;
  width: 24%;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 230, 0.03) 16%,
    rgba(255, 255, 235, 0.22) 48%,
    rgba(255, 255, 230, 0.04) 82%,
    transparent 100%
  );
  filter: blur(4px);
  transform: skewX(-18deg);
  animation: claim-button-shine 1.65s ease-in-out infinite;
}

.primary-action.is-countdown {
  filter: brightness(0.88);
}

.primary-action.is-countdown::after {
  display: none;
}

.primary-action.is-countdown span {
  font-size: 13px;
}

@keyframes claim-button-shine {
  0%,
  28% {
    left: 13%;
    opacity: 0;
  }
  42% {
    opacity: 0.55;
  }
  72% {
    left: 63%;
    opacity: 0;
  }
  100% {
    left: 63%;
    opacity: 0;
  }
}

.secondary-action {
  width: 100%;
  margin-top: 12px;
  aspect-ratio: 1943 / 542;
  padding: 0 34px 8px;
  background-image: url("./assets/swamp-lane/ui/btn-secondary.webp?v=swamp-lane-assets-2");
  box-shadow: none;
}

.icon-button {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  background-image: url("./assets/swamp-lane/ui/btn-save.webp?v=swamp-lane-assets-2");
  box-shadow: none;
}

#menu-btn {
  width: 44px;
  height: 44px;
  margin-left: auto;
  background-image: url("./assets/swamp-lane/ui/btn-menu.webp?v=swamp-lane-assets-2");
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: transparent;
}

.app-menu {
  position: fixed;
  top: max(74px, calc(62px + env(safe-area-inset-top)));
  right: max(10px, calc((100vw - 620px) / 2 + 12px));
  z-index: 29;
  display: grid;
  gap: 5px;
  width: min(250px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(63, 46, 25, 0.98), rgba(8, 13, 9, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 242, 177, 0.09);
}

.app-menu::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid var(--inner-line);
  border-radius: 5px;
}

.app-menu-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(151, 197, 70, 0.32);
  border-radius: 7px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(42, 52, 26, 0.9), rgba(10, 15, 10, 0.94));
  color: #fff1bd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.app-menu-item svg {
  width: 16px;
  height: 16px;
}

.proof-form .icon-button {
  background-image: url("./assets/swamp-lane/ui/btn-send.webp?v=swamp-lane-assets-2");
}

.icon-button svg {
  opacity: 0;
}

.wallet-auth-panel {
  padding: 16px;
  text-align: center;
}

.wallet-auth-panel.is-connected {
  flex: 0 0 auto;
  padding: 5px 9px;
}

.wallet-auth-panel label {
  display: block;
  text-align: center;
}

.wallet-auth-panel.is-connected label {
  margin-bottom: 2px;
  font-size: 9px;
  line-height: 1;
}

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

.wallet-auth-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1943 / 542;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
}

.wallet-auth-button span {
  display: block;
  transform: translateY(0);
}

#xaman-connect-btn span {
  transform: translateY(-2px);
}

.wallet-auth-button-primary {
  background-image: url("./assets/swamp-lane/ui/btn-primary.webp?v=swamp-lane-assets-2");
  color: #2a1608;
  text-shadow: 0 1px 0 rgba(255, 188, 48, 0.36);
}

.wallet-auth-button-secondary {
  background-image: url("./assets/swamp-lane/ui/btn-secondary.webp?v=swamp-lane-assets-2");
  color: #2a1608;
  text-shadow: 0 1px 0 rgba(255, 188, 48, 0.36);
}

.trustline-set-button {
  display: flex;
  width: min(260px, 78vw);
  margin: 12px auto 0;
  font-size: 14px;
}

.wallet-disconnect-button {
  display: flex;
  width: min(220px, 70vw);
  margin: 10px auto 0;
  font-size: 13px;
}

.wallet-auth-panel.is-connected .wallet-disconnect-button {
  width: min(150px, 48vw);
  margin-top: 3px;
  font-size: 10px;
}

.trustline-set-button span {
  transform: translateY(-1px);
}

.wallet-auth-status {
  min-height: 16px;
  margin: 8px 0 0;
  color: rgba(232, 213, 165, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.wallet-auth-panel.is-connected .wallet-auth-status {
  min-height: 10px;
  margin-top: 1px;
  font-size: 9px;
}

.wallet-setup-rows {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid rgba(151, 197, 70, 0.22);
}

.wallet-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(151, 197, 70, 0.18);
}

.wallet-setup-row span {
  min-width: 0;
  color: rgba(232, 213, 165, 0.7);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.wallet-setup-row strong {
  min-width: 0;
  color: #fff7dc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.wallet-detail-rows {
  margin-top: 0;
}

.collapsible-summary {
  display: none;
}

.collapsible-body {
  position: relative;
  z-index: 1;
}

.collapsible-summary svg {
  width: 17px;
  height: 17px;
  color: #d6ed83;
  transition: transform 160ms ease;
}

.collapsible-panel.is-expanded .collapsible-summary svg {
  transform: rotate(180deg);
}

.wallet-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.wallet-auth-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(500px, calc(100vw - 20px));
  aspect-ratio: 1 / 1;
  padding: 78px 72px 76px;
  border: 0;
  border-radius: 0;
  background: url("./assets/swamp-lane/ui/wallet-modal-square.webp?v=swamp-lane-assets-2") center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.52));
  text-align: center;
}

.wallet-auth-dialog h2 {
  margin: 0 0 16px;
  color: #fff7dc;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.wallet-auth-close {
  position: absolute;
  top: 8.5%;
  right: 7.2%;
  width: 11%;
  height: 11%;
  border: 0;
  border-radius: 0;
  background: url("./assets/swamp-lane/ui/wallet-modal-close.webp?v=swamp-lane-assets-2") center / contain no-repeat;
  color: transparent;
  cursor: pointer;
}

.wallet-auth-close svg {
  display: none;
}

.xaman-qr {
  position: relative;
  width: min(226px, 54vw);
  height: min(226px, 54vw);
  margin: 0 auto 10px;
  border: 5px solid #2b190b;
  border-radius: 8px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: calc(100% - 14px) calc(100% - 14px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
}

.xaman-qr.is-loading {
  display: grid;
  place-items: center;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.xaman-qr.is-loading::before {
  content: "";
  width: 64px;
  height: 64px;
  border: 4px solid rgba(232, 213, 165, 0.18);
  border-top-color: #b6de42;
  border-right-color: rgba(239, 247, 189, 0.72);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(166, 215, 54, 0.18),
    inset 0 0 12px rgba(0, 0, 0, 0.28);
  animation: xaman-qr-spin 820ms linear infinite;
}

@keyframes xaman-qr-spin {
  to {
    transform: rotate(360deg);
  }
}

.xaman-open-link {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 5px;
  color: #eff7bd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.xaman-open-link.is-disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wallet-auth-modal-status {
  min-height: 18px;
  margin: 0;
  color: rgba(232, 213, 165, 0.78);
  font-size: 13px;
  font-weight: 800;
}

button:hover:not(:disabled) {
  transform: scale(1.04);
  filter: brightness(0.78);
}

button:active:not(:disabled) {
  transform: translateY(3px) scale(0.98);
  filter: brightness(0.82);
}

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

.budget-band {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(20, 25, 16, 0.94), rgba(7, 11, 8, 0.96));
}

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

.row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.row strong {
  color: #f5d878;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.meter {
  position: relative;
  height: 12px;
  margin: 10px 0 8px;
  border: 1px solid rgba(221, 179, 84, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(185, 220, 97, 0.35);
}

.muted {
  margin: 0;
  color: rgba(232, 213, 165, 0.62);
  font-size: 13px;
}

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

.metric {
  min-height: 82px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(45, 53, 29, 0.86), rgba(15, 19, 12, 0.96));
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: #f9eab5;
  font-size: 21px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.metric-wide {
  grid-column: 1 / -1;
}

.metric-empty {
  min-height: 72px;
}

.metric-empty strong {
  font-size: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list.compact {
  margin-top: 12px;
}

#quest-list {
  margin-top: 14px;
}

.quest-section {
  display: grid;
  gap: 6px;
}

.quest-section + .quest-section {
  margin-top: 14px;
}

.quest-section h3 {
  margin: 0;
  line-height: 1;
}

.quest-section-list {
  display: grid;
  gap: 10px;
}

.item {
  padding: 14px;
}

.item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.item h2 {
  margin: 0;
  color: #fff3cd;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.item p {
  margin: 8px 0 0;
  color: rgba(232, 213, 165, 0.68);
  font-size: 14px;
}

.item .quest-account-line,
.item .quest-status-line,
.quest-card-status strong {
  color: #f8e7ab;
  font-weight: 800;
}

.quest-card-status {
  font-size: 12px;
}

.quest-status-block {
  margin-top: 8px;
}

.item .quest-status-line {
  margin-top: 3px;
}

.item .quest-status-line.is-rewarded {
  color: #b7eb45;
}

.item .quest-status-line.is-pending {
  color: #ffcf70;
}

.quest-action-link-row {
  margin-top: 8px;
}

.quest-action-link-row a {
  color: #b7eb45;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reward-pill {
  flex: 0 0 auto;
  max-width: 48%;
  min-width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(221, 179, 84, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(91, 64, 21, 0.84), rgba(35, 27, 14, 0.94));
  color: #f2cf75;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: normal;
  text-align: right;
  white-space: nowrap;
}

.proof-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.quest-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.quest-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(174px, 58vw);
  min-width: 0;
  aspect-ratio: 1943 / 542;
  border: 0;
  padding: 0 24px;
  background-color: transparent;
  background-image: url("./assets/swamp-lane/ui/btn-primary.webp?v=swamp-lane-assets-2");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #241105;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 242, 190, 0.7);
  box-shadow: none;
}

.quest-card-button-verify {
  background-image: url("./assets/swamp-lane/ui/btn-secondary.webp?v=swamp-lane-assets-2");
  color: #fff4d0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
}

.quest-item-locked {
  opacity: 0.56;
  filter: saturate(0.62);
}

.quest-lock-reason {
  margin: 12px 0 0;
  color: #d8c695;
  font-size: 13px;
  font-weight: 800;
}

.quest-social-auth {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.quest-item-completed {
  padding: 0;
  opacity: 0.58;
  filter: saturate(0.68);
  transition:
    filter 160ms ease,
    opacity 160ms ease;
}

.quest-item-completed:hover,
.quest-item-completed[open] {
  opacity: 0.9;
  filter: saturate(0.9);
}

.quest-completed-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 38px 10px 12px;
  cursor: pointer;
  list-style: none;
}

.quest-completed-summary::-webkit-details-marker {
  display: none;
}

.quest-completed-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  color: rgba(248, 231, 171, 0.58);
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-54%);
}

.quest-item-completed[open] .quest-completed-summary::after {
  content: "-";
}

.quest-completed-title {
  min-width: 0;
}

.quest-completed-title > span {
  display: block;
  color: rgba(255, 243, 205, 0.78);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-completed-title small {
  display: block;
  margin-top: 2px;
  color: rgba(232, 213, 165, 0.46);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.quest-item-completed .reward-pill {
  justify-self: end;
  min-width: 64px;
  padding: 5px 8px;
  color: rgba(242, 207, 117, 0.78);
  font-size: 11px;
  text-align: center;
}

.quest-completed-body {
  padding: 0 12px 12px;
}

.quest-completed-body p {
  font-size: 13px;
}

.quest-card-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.62;
}

.quest-success-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  color: #d8ff74;
  font-size: 12px;
  font-weight: 900;
}

.quest-success-strip button {
  min-height: 30px;
  border: 1px solid rgba(151, 197, 70, 0.34);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(7, 16, 9, 0.72);
  color: #fff7dc;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.form-block {
  padding: 14px;
}

.form-block label {
  display: block;
  margin-bottom: 8px;
}

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

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(151, 197, 70, 0.3);
  border-radius: 8px;
  background: rgba(7, 12, 9, 0.78);
  color: var(--text-strong);
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 242, 177, 0.06);
}

input::placeholder {
  color: rgba(232, 213, 165, 0.38);
}

input:focus {
  border-color: rgba(190, 230, 90, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 177, 0.08),
    0 0 0 3px rgba(151, 197, 70, 0.14);
}

.info-table {
  margin-top: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(151, 197, 70, 0.18);
}

#view-wallet.is-wallet-connected > .info-table div {
  padding: 5px 9px;
}

#view-wallet.is-wallet-connected > .info-table {
  flex: 0 0 auto;
  margin-top: 6px;
}

#view-wallet.is-wallet-connected > .info-table span {
  font-size: 9px;
}

#view-wallet.is-wallet-connected > .info-table strong {
  font-size: 12px;
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table strong {
  color: #f8e7ab;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.social-account-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: end;
  gap: 3px 5px;
  min-width: 0;
}

.social-account-value > span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-unlink-hint {
  grid-column: 1 / -1;
  color: rgba(232, 213, 165, 0.58);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.social-link-button,
.social-unlink-button {
  width: 22px;
  height: 22px;
}

.copy-icon-button.social-link-button:disabled,
.copy-icon-button.social-unlink-button:disabled {
  cursor: not-allowed;
}

@media (max-width: 700px), (min-width: 900px) {
  #view-wallet.is-wallet-connected .collapsible-panel {
    flex: 0 0 auto;
  }

  #view-wallet.is-wallet-connected .collapsible-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 43px;
    border: 0;
    padding: 7px 11px;
    background: transparent;
    color: #fff7dc;
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  #view-wallet.is-wallet-connected .collapsible-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  #view-wallet.is-wallet-connected .collapsible-title {
    color: rgba(232, 213, 165, 0.68);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  #view-wallet.is-wallet-connected .collapsible-summary strong {
    min-width: 0;
    color: #fff7dc;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-wallet.is-wallet-connected .collapsible-badge {
    max-width: 110px;
    padding: 4px 7px;
    border: 1px solid rgba(151, 197, 70, 0.34);
    border-radius: 8px;
    background: rgba(5, 14, 7, 0.74);
    color: #d7f08a;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  #view-wallet.is-wallet-connected .collapsible-panel:not(.is-expanded) .collapsible-body {
    display: none;
  }

  #view-wallet.is-wallet-connected .wallet-auth-panel.is-connected {
    padding: 0;
  }

  #view-wallet.is-wallet-connected .wallet-auth-panel.is-connected .collapsible-body {
    padding: 0 9px 8px;
  }

  #view-wallet.is-wallet-connected .wallet-auth-panel.is-connected label {
    display: none;
  }

}

.copy-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(151, 197, 70, 0.34);
  border-radius: 6px;
  background: rgba(4, 10, 7, 0.58);
  color: #f8e7ab;
  cursor: pointer;
}

.copy-icon-button svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.copy-icon-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.copy-icon-button.is-refreshing svg {
  animation: swamp-spin 0.85s linear infinite;
}

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

.wallet-nfts-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wallet-nfts-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.wallet-nfts-panel::-webkit-scrollbar-thumb {
  background: transparent;
}

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

.nft-column {
  min-width: 0;
}

.nft-column h2 {
  margin: 0 0 7px;
  color: rgba(232, 213, 165, 0.78);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.nft-list {
  display: grid;
  gap: 8px;
}

.wallet-nft-collections {
  margin-bottom: 7px;
  overflow-x: auto;
}

.wallet-nft-traits {
  margin-bottom: 8px;
}

.nft-wallet-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nft-wallet-list .nft-empty {
  grid-column: 1 / -1;
}

.nft-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 7px;
  border: 1px solid rgba(151, 197, 70, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 32, 18, 0.88), rgba(7, 11, 8, 0.94));
  cursor: pointer;
}

.nft-card img,
.nft-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(4, 10, 7, 0.78);
  color: rgba(248, 231, 171, 0.58);
  font-size: 11px;
  font-weight: 800;
  object-fit: cover;
}

.nft-card strong {
  display: block;
  margin-top: 6px;
  color: #fff1bd;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 22px;
  margin-top: 6px;
}

.nft-card .nft-title-row strong,
.marketplace-card .nft-title-row strong {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.nft-title-row .ogre-level-badge {
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: auto;
}

.nft-card span {
  display: block;
  min-height: 12px;
  margin-top: 2px;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.nft-card .nft-wallet-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  margin-top: 5px;
  border: 1px solid rgba(199, 255, 82, 0.46);
  border-radius: 7px;
  padding: 4px 7px 3px;
  background: linear-gradient(180deg, rgba(50, 82, 12, 0.92), rgba(10, 22, 7, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 247, 184, 0.16), 0 2px 0 rgba(0, 0, 0, 0.26);
  color: #f5ffd0;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.74);
}

.nft-sell-button {
  min-height: 26px;
  margin-top: auto;
}

.nft-unlist-button {
  background-image: url("./assets/swamp-lane/ui/btn-nft-unlist.webp?v=swamp-lane-assets-2");
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #fff6d7;
  text-shadow:
    0 2px 0 rgba(55, 10, 3, 0.92),
    0 0 4px rgba(0, 0, 0, 0.78);
}

.nft-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(151, 197, 70, 0.18);
  border-radius: 8px;
  background: rgba(4, 10, 7, 0.42);
  color: rgba(232, 213, 165, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.nft-lazy-status {
  min-height: 18px;
  padding: 8px 0 2px;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.marketplace-view {
  padding-bottom: 8px;
}

.marketplace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.marketplace-collections,
.marketplace-traits {
  display: flex;
  gap: 6px;
  min-width: 0;
  padding-bottom: 2px;
}

.marketplace-collections {
  overflow-x: auto;
  scrollbar-width: none;
}

.marketplace-collections::-webkit-scrollbar {
  display: none;
}

.marketplace-traits {
  align-items: center;
  overflow: hidden;
}

.marketplace-chip {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(151, 197, 70, 0.34);
  border-radius: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(42, 52, 26, 0.9), rgba(10, 15, 10, 0.94));
  color: rgba(232, 213, 165, 0.74);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.marketplace-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 76px;
  justify-content: center;
}

.marketplace-filter-trigger svg,
.marketplace-active-filter svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.marketplace-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(420px, calc(100% - 88px));
  min-width: 0;
}

.marketplace-active-filter span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marketplace-filter-hint {
  min-width: 0;
  color: rgba(232, 213, 165, 0.58);
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-chip.is-active {
  color: #fff7dc;
  border-color: rgba(185, 220, 97, 0.74);
  box-shadow: inset 0 0 18px rgba(151, 197, 70, 0.14);
}

.marketplace-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 8px;
  margin-bottom: 8px;
}

.marketplace-controls input,
.marketplace-controls select {
  min-height: 36px;
  border: 1px solid rgba(151, 197, 70, 0.3);
  border-radius: 8px;
  background: rgba(7, 12, 9, 0.78);
  color: var(--text-strong);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 242, 177, 0.06);
}

.marketplace-controls input {
  padding: 0 10px;
}

.marketplace-controls select {
  padding: 0 8px;
}

.marketplace-status {
  min-height: 16px;
  margin: 0 0 7px;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

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

.marketplace-grid .empty-state {
  grid-column: 1 / -1;
}

.marketplace-card {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(151, 197, 70, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 32, 18, 0.88), rgba(7, 11, 8, 0.94));
  cursor: pointer;
}

.marketplace-card img,
.marketplace-detail-image,
.marketplace-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(4, 10, 7, 0.78);
  color: rgba(248, 231, 171, 0.58);
  font-size: 11px;
  font-weight: 800;
  object-fit: cover;
}

.marketplace-card strong {
  display: block;
  margin-top: 6px;
  color: #fff1bd;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-card span {
  display: block;
  margin-top: 2px;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
}

.marketplace-card .marketplace-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: 5px;
  border: 1px solid rgba(199, 255, 82, 0.5);
  border-radius: 7px;
  padding: 4px 8px 3px;
  background: linear-gradient(180deg, rgba(55, 86, 13, 0.94), rgba(9, 20, 7, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 247, 184, 0.16), 0 2px 0 rgba(0, 0, 0, 0.28);
  color: #f8ffd3;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.ogre-level-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin-top: 6px;
  border: 1px solid rgba(182, 228, 68, 0.34);
  border-radius: 7px;
  padding: 3px 7px;
  background: linear-gradient(180deg, rgba(46, 70, 16, 0.92), rgba(8, 16, 8, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 247, 184, 0.14), 0 2px 0 rgba(0, 0, 0, 0.24);
  color: #fff1bd;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.nft-card .ogre-level-badge,
.marketplace-card .ogre-level-badge {
  display: inline-flex;
  margin-top: 0;
}

.ogre-level-badge span {
  display: inline;
  margin: 0;
  color: rgba(220, 241, 128, 0.78);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.ogre-level-badge strong {
  display: inline;
  margin: 0;
  color: #fff1bd;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 #000;
}

.ogre-level-badge em {
  min-width: 0;
  color: rgba(232, 213, 165, 0.78);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogre-level-badge.is-compact {
  padding: 2px 6px 3px;
}

.ogre-level-badge.is-compact strong {
  font-size: 11px;
}

.marketplace-detail-info .ogre-level-badge {
  margin-top: 8px;
}

.marketplace-mini-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(244px, 100%);
  aspect-ratio: 1788 / 438;
  min-height: 0;
  margin: 8px auto 0;
  border: 0;
  background-color: transparent;
  background-image: url("./assets/swamp-lane/ui/btn-nft-sell.webp?v=swamp-lane-assets-2");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #2a1608;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 30px 2px;
  text-shadow:
    0 1px 0 rgba(255, 247, 203, 0.95),
    0 0 3px rgba(255, 247, 203, 0.75);
}

.marketplace-mini-buy.nft-unlist-button {
  background-image: url("./assets/swamp-lane/ui/btn-nft-unlist.webp?v=swamp-lane-assets-2");
  color: #fff6d7;
  text-shadow:
    0 2px 0 rgba(55, 10, 3, 0.92),
    0 0 4px rgba(0, 0, 0, 0.78);
}

.nft-card .marketplace-mini-buy {
  width: 100%;
  max-width: 244px;
  aspect-ratio: 1788 / 438;
  margin: auto auto 0;
}

.wallet-auth-button.nft-unlist-button {
  aspect-ratio: 1788 / 438;
  background-image: url("./assets/swamp-lane/ui/btn-nft-unlist.webp?v=swamp-lane-assets-2");
  color: #fff6d7;
  text-shadow:
    0 2px 0 rgba(55, 10, 3, 0.92),
    0 0 4px rgba(0, 0, 0, 0.78);
}

.marketplace-more {
  display: flex;
  width: min(220px, 68vw);
  margin: 12px auto 0;
  font-size: 12px;
}

.marketplace-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.marketplace-detail-dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: min(780px, calc(100svh - 24px));
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(63, 46, 25, 0.98), rgba(8, 13, 9, 0.98));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.56);
  scrollbar-width: none;
}

.marketplace-list-dialog {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  max-height: min(760px, calc(100svh - 24px));
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(63, 46, 25, 0.98), rgba(8, 13, 9, 0.98));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.56);
  scrollbar-width: none;
}

.marketplace-detail-dialog::-webkit-scrollbar {
  display: none;
}

.marketplace-list-dialog::-webkit-scrollbar {
  display: none;
}

.marketplace-detail-dialog .wallet-auth-close {
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
}

.marketplace-list-dialog .wallet-auth-close {
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
}

.marketplace-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding-right: 40px;
}

.marketplace-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  padding-right: 40px;
}

.marketplace-detail-info h2 {
  margin: 0;
  color: #fff7dc;
  font-size: 19px;
  line-height: 1.05;
}

.marketplace-detail-info p {
  margin: 7px 0 0;
  color: rgba(232, 213, 165, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.marketplace-list-label {
  display: block;
  margin: 12px 0 6px;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-list-input {
  min-height: 38px;
  font-size: 15px;
  font-weight: 800;
}

.marketplace-list-note {
  margin-top: 8px;
  color: rgba(232, 213, 165, 0.58);
  font-size: 10px;
  font-weight: 800;
}

.marketplace-trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.marketplace-trait-pill {
  max-width: 100%;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 7px;
  padding: 5px 7px;
  background: rgba(4, 10, 7, 0.58);
  color: rgba(232, 213, 165, 0.8);
  font-size: 9px;
  font-weight: 800;
}

.marketplace-detail-buy {
  display: flex;
  width: min(260px, 100%);
  margin: 12px auto 0;
  font-size: 12px;
}

.nft-detail-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 10px;
}

.nft-detail-intro h2,
.nft-detail-intro p {
  grid-column: 2;
}

.nft-detail-intro .marketplace-chip {
  grid-row: 1 / span 2;
  min-height: 34px;
  padding-inline: 12px;
}

.nft-detail-page-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(151, 197, 70, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 32, 18, 0.9), rgba(7, 11, 8, 0.96));
}

.nft-detail-media img,
.nft-detail-media .marketplace-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(4, 10, 7, 0.78);
  color: rgba(248, 231, 171, 0.58);
  object-fit: cover;
}

.nft-detail-main {
  min-width: 0;
}

.nft-detail-title-row {
  display: grid;
  gap: 8px;
}

.nft-detail-title-row span {
  display: block;
  color: rgba(232, 213, 165, 0.66);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.nft-detail-title-row strong {
  display: block;
  margin-top: 3px;
  color: #fff1bd;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.nft-detail-description {
  margin: 10px 0 0;
  color: rgba(232, 213, 165, 0.74);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.nft-detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nft-detail-actions .marketplace-detail-buy {
  margin-top: 0;
}

.nft-detail-section {
  margin-top: 12px;
  border: 1px solid rgba(151, 197, 70, 0.18);
  border-radius: 8px;
  background: rgba(5, 11, 8, 0.54);
}

.nft-detail-section h3 {
  margin: 0;
  padding: 10px 10px 8px;
  color: rgba(232, 213, 165, 0.78);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.nft-detail-table {
  border-top: 1px solid rgba(151, 197, 70, 0.16);
}

.nft-detail-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-top: 1px solid rgba(151, 197, 70, 0.13);
}

.nft-detail-row:first-child {
  border-top: 0;
}

.nft-detail-row > span {
  color: rgba(232, 213, 165, 0.62);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.nft-detail-row > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nft-detail-value {
  min-width: 0;
  color: #fff1bd;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-align: right;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-detail-value.is-long {
  font-size: 10px;
}

.nft-copy-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.nft-offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(151, 197, 70, 0.16);
}

.nft-offer-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(58px, 0.7fr) minmax(58px, 0.7fr) minmax(74px, 0.8fr) auto;
  gap: 7px;
  align-items: center;
  padding: 9px 10px;
  border-top: 1px solid rgba(151, 197, 70, 0.13);
}

.nft-offer-row:first-child {
  border-top: 0;
}

.nft-offer-row span {
  display: block;
  color: rgba(232, 213, 165, 0.58);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.nft-offer-row strong {
  display: block;
  min-width: 0;
  color: #fff1bd;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-detail-empty {
  display: block;
  padding: 10px;
  color: rgba(232, 213, 165, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.marketplace-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  align-items: end;
  padding: 10px 8px calc(96px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.marketplace-filter-sheet {
  position: relative;
  width: min(620px, 100%);
  max-height: min(560px, calc(100svh - 132px));
  margin: 0 auto;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(63, 46, 25, 0.98), rgba(8, 13, 9, 0.98));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.marketplace-filter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px 9px 8px 13px;
  border-bottom: 1px solid rgba(151, 197, 70, 0.18);
}

.marketplace-filter-head h2 {
  margin: 0;
  color: #fff7dc;
  font-size: 17px;
  line-height: 1;
}

.marketplace-filter-clear {
  min-height: 30px;
  border: 1px solid rgba(151, 197, 70, 0.28);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(4, 10, 7, 0.58);
  color: rgba(232, 213, 165, 0.8);
  font-size: 10px;
  font-weight: 800;
}

.marketplace-filter-head .wallet-auth-close {
  position: static;
  width: 38px;
  height: 38px;
}

.marketplace-filter-body {
  max-height: calc(min(560px, calc(100svh - 132px)) - 48px);
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: none;
}

.marketplace-filter-body::-webkit-scrollbar {
  display: none;
}

.marketplace-filter-group {
  display: grid;
  gap: 7px;
  padding: 9px 0 11px;
  border-bottom: 1px solid rgba(151, 197, 70, 0.14);
}

.marketplace-filter-group:first-child {
  padding-top: 0;
}

.marketplace-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.marketplace-filter-group h3 {
  margin: 0;
  color: rgba(232, 213, 165, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marketplace-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.marketplace-filter-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 8px;
  padding: 0 9px;
  background: linear-gradient(180deg, rgba(42, 52, 26, 0.88), rgba(10, 15, 10, 0.94));
  color: rgba(232, 213, 165, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}

.marketplace-filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-filter-option strong {
  color: rgba(248, 231, 171, 0.56);
  font-size: 9px;
  font-weight: 900;
}

.marketplace-filter-option.is-active {
  color: #fff7dc;
  border-color: rgba(185, 220, 97, 0.78);
  box-shadow: inset 0 0 18px rgba(151, 197, 70, 0.16);
}

@media (max-width: 430px) {
  .marketplace-controls {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .marketplace-filter-options {
    grid-template-columns: 1fr;
  }

  .marketplace-detail-layout {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .marketplace-list-layout {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .nft-detail-page-card {
    grid-template-columns: 1fr;
  }

  .nft-detail-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .nft-offer-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: start;
  }

  .nft-offer-row > div:first-child,
  .nft-offer-row > div:nth-child(4) {
    grid-column: 1 / 3;
  }

  .nft-offer-row .nft-copy-button {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .marketplace-detail-dialog .wallet-auth-close {
    top: 6px;
    right: 6px;
  }
}

.referral-box {
  padding: 14px;
}

.referral-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 46px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(151, 197, 70, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(9, 18, 10, 0.92), rgba(2, 9, 6, 0.96)),
    rgba(4, 10, 7, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 169, 0.08),
    inset 0 -8px 18px rgba(0, 0, 0, 0.22);
}

.referral-link-text {
  min-width: 0;
  color: #fff2c4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
}

.referral-copy-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.more-list {
  display: grid;
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 35, 20, 0.9), rgba(8, 13, 9, 0.94));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 242, 177, 0.08);
  overflow: hidden;
}

#more-admin-slot {
  display: contents;
}

.more-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid rgba(151, 197, 70, 0.18);
  padding: 8px 12px;
  background: transparent;
  color: #fff7dc;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.more-item:last-child {
  border-bottom: 0;
}

.more-item:hover {
  background: rgba(151, 197, 70, 0.08);
}

.more-icon {
  display: block;
  width: 38px;
  height: 38px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.38));
}

.more-icon-referrals {
  background-image: url("./assets/swamp-lane/ui/more-referrals-icon.webp?v=swamp-lane-more-icons-1");
}

.more-icon-chain {
  background-image: url("./assets/swamp-lane/ui/more-chain-icon.webp?v=swamp-lane-more-icons-1");
}

.more-icon-refresh {
  background-image: url("./assets/swamp-lane/ui/more-refresh-icon.webp?v=swamp-lane-more-icons-1");
}

.more-icon-admin {
  background-image: url("./assets/swamp-lane/ui/more-admin-icon.webp?v=swamp-lane-more-icons-1");
}

.more-item > span:not(.more-icon) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.more-item strong {
  color: #fff3cd;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.more-item small {
  color: rgba(232, 213, 165, 0.66);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.admin-panel {
  padding: 14px;
}

.admin-panel .info-table {
  margin-top: 12px;
}

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

.admin-cell {
  min-height: 74px;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(9, 15, 10, 0.66);
}

.admin-cell strong {
  display: block;
  margin-top: 7px;
  color: #f9eab5;
  font-size: 21px;
  font-weight: 800;
}

.admin-form,
.admin-section {
  margin-top: 14px;
}

.admin-form {
  display: grid;
  gap: 9px;
}

.admin-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-field > span {
  color: rgba(232, 213, 165, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form label,
.admin-section h2 {
  margin: 0;
  color: #f9eab5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-item input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(9, 15, 10, 0.7);
  color: #fff7dc;
  font: inherit;
}

.admin-form select {
  appearance: none;
}

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

.admin-form-row,
.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-budget-form .admin-form-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: end;
}

.admin-budget-form .wallet-auth-button {
  align-self: end;
}

.admin-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(151, 197, 70, 0.24);
  border-radius: 8px;
  background: rgba(7, 16, 9, 0.72);
  color: rgba(232, 213, 165, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.admin-status-pill.is-ok {
  border-color: rgba(182, 228, 68, 0.42);
  color: #b7ff42;
}

.admin-status-pill.is-missing {
  border-color: rgba(255, 176, 58, 0.48);
  color: #ffd875;
}

.admin-section {
  display: grid;
  gap: 9px;
}

.admin-item {
  display: grid;
  gap: 8px;
}

.admin-edit-form {
  display: none;
  margin-top: 4px;
}

.admin-item.is-editing .admin-edit-form {
  display: grid;
}

.admin-actions .wallet-auth-button {
  min-height: 40px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 7px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(620px, calc(100% - 12px));
  transform: translateX(-50%);
  padding: 5px 5px max(6px, env(safe-area-inset-bottom));
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(65, 48, 26, 0.94), rgba(16, 16, 12, 0.98));
  box-shadow:
    0 -14px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 237, 166, 0.11);
  backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 76px;
  border: 0;
  border-radius: 8px;
  padding: 2px 2px 4px;
  background: transparent;
  color: rgba(232, 213, 165, 0.78);
  cursor: pointer;
  overflow: hidden;
  box-shadow: none;
}

.tab::before {
  content: "";
  position: absolute;
  inset: 2px 1px 0;
  border: 1px solid rgba(205, 255, 92, 0);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(204, 255, 81, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(106, 78, 28, 0.4), rgba(12, 16, 8, 0.1));
  opacity: 0;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.tab.is-active {
  color: #e6ff77;
}

.tab.is-active::before {
  border-color: rgba(205, 255, 92, 0.28);
  opacity: 1;
}

.tab-art {
  position: relative;
  display: block;
  width: 64px;
  max-width: 100%;
  height: 50px;
  flex: 0 0 50px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0.82) saturate(0.86);
  transform: translateY(1px);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.tab-art-rewards {
  background-image: url("./assets/swamp-lane/ui/nav-rewards-neural.webp?v=swamp-lane-nav-neural-1");
}

.tab-art-quests {
  background-image: url("./assets/swamp-lane/ui/nav-quests-neural.webp?v=swamp-lane-nav-neural-1");
}

.tab-art-wallet {
  background-image: url("./assets/swamp-lane/ui/nav-wallet-neural.webp?v=swamp-lane-nav-neural-1");
}

.tab-art-market {
  background-image: url("./assets/swamp-lane/ui/nav-market-neural.webp?v=swamp-lane-nav-neural-1");
}

.tab-art-more {
  background-image: url("./assets/swamp-lane/ui/nav-more-neural.webp?v=swamp-lane-nav-neural-1");
}

.tab.is-active .tab-art {
  filter:
    brightness(1.05)
    saturate(1.08)
    drop-shadow(0 0 7px rgba(191, 243, 64, 0.28));
  transform: translateY(0);
}

.tab-label {
  position: relative;
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(151, 197, 70, 0.38);
  border-radius: 8px;
  background: rgba(10, 15, 10, 0.95);
  color: #fff3cd;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
  pointer-events: none;
}

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

.empty-state {
  padding: 22px 14px;
  color: rgba(232, 213, 165, 0.68);
  text-align: center;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

@media (min-width: 900px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden;
    background: #020705;
  }

  body::before,
  body::after {
    display: none;
  }

  .desktop-video-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    background: #020705;
    pointer-events: none;
  }

  .desktop-video-backdrop video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78) saturate(1.18);
    transform: scale(1.03);
  }

  .desktop-video-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 42%, transparent 0, rgba(2, 7, 5, 0.06) 34%, rgba(2, 7, 5, 0.44) 100%),
      linear-gradient(90deg, rgba(2, 5, 4, 0.46), rgba(2, 5, 4, 0.04) 34%, rgba(2, 5, 4, 0.04) 66%, rgba(2, 5, 4, 0.46));
  }

  .desktop-phone-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
  }

  .desktop-phone-device {
    position: relative;
    width: min(420px, calc(100vw - 64px));
    height: min(860px, calc(100vh - 64px));
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(255, 236, 170, 0.24);
    border-radius: 48px;
    background:
      linear-gradient(145deg, rgba(38, 32, 24, 0.98), rgba(6, 9, 8, 0.98) 54%, rgba(65, 48, 26, 0.98)),
      #070a08;
    box-shadow:
      0 36px 90px rgba(0, 0, 0, 0.62),
      0 0 0 9px rgba(5, 7, 6, 0.72),
      inset 0 1px 0 rgba(255, 245, 199, 0.22),
      inset 0 -20px 34px rgba(0, 0, 0, 0.44);
    overflow: hidden;
  }

  .desktop-phone-device::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    z-index: 26;
    width: 112px;
    height: 24px;
    border-radius: 0 0 16px 16px;
    background: #050806;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transform: translateX(-50%);
  }

  .desktop-phone-device::after {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: 24;
    pointer-events: none;
    border: 1px solid rgba(255, 238, 176, 0.12);
    border-radius: 36px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.78);
  }

  .desktop-phone-device .app-shell {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 26px 12px 104px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border-radius: 34px;
    background:
      radial-gradient(circle at 50% 0%, rgba(62, 93, 34, 0.42), transparent 40%),
      radial-gradient(circle at 18% 26%, rgba(37, 76, 52, 0.35), transparent 30%),
      linear-gradient(180deg, #132a1c 0%, #06100c 54%, #020705 100%);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.66);
    scrollbar-width: none;
  }

  .desktop-phone-device .menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 18;
    border-radius: 34px;
  }

  .desktop-phone-device .app-menu {
    position: absolute;
    top: 74px;
    right: 12px;
    z-index: 19;
    width: min(250px, calc(100% - 24px));
  }

  .desktop-phone-device .app-shell::-webkit-scrollbar {
    display: none;
  }

  .desktop-phone-device .brand-logo {
    width: 74px;
    max-width: none;
  }

  .desktop-phone-device #view-wallet.is-wallet-connected.is-active {
    display: block;
    height: auto;
    overflow: visible;
  }

  .desktop-phone-device .tabbar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    transform: none;
    border-radius: 0 0 34px 34px;
  }
}

@media (min-width: 680px) {
  .app-shell {
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-inline: 10px;
  }

  .wallet-auth-dialog {
    padding: 58px 48px 64px;
  }

  .wallet-auth-dialog h2 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .xaman-qr {
    width: min(190px, 58vw);
    height: min(190px, 58vw);
  }

  .balance-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .primary-action {
    justify-self: center;
  }

  .metrics-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 340px) {
  .tab span {
    font-size: 9px;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-table strong {
    text-align: left;
  }
}
