:root {
  color-scheme: light;
  --bg-top: #f7f2e8;
  --bg-bottom: #efe7d7;
  --surface: rgba(255, 252, 245, 0.9);
  --surface-strong: #fffdf8;
  --surface-muted: rgba(252, 245, 230, 0.95);
  --line: rgba(125, 96, 46, 0.14);
  --line-strong: rgba(125, 96, 46, 0.24);
  --text: #1f2d25;
  --muted: #675f54;
  --accent: #00826f;
  --accent-strong: #006f5f;
  --accent-soft: rgba(0, 130, 111, 0.12);
  --gold: #c99722;
  --sand: #f3c978;
  --coral: #e96e44;
  --navy: #27596d;
  --shadow: 0 20px 40px rgba(65, 46, 18, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --view-gap: 14px;
  --card-gap: 12px;
  --item-gap: 10px;
  --tight-gap: 8px;
  --body-copy-size: clamp(0.88rem, 1.6vw, 1rem);
  --title-copy-size: clamp(1.06rem, 2.4vw, 1.3rem);
  --subtitle-copy-size: clamp(0.92rem, 2vw, 1rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 130, 111, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 110, 68, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--body-copy-size);
  line-height: 1.5;
  padding: 18px 14px 96px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  border: 0;
  outline: none;
}

button {
  appearance: none;
  cursor: pointer;
}

button,
img,
svg,
canvas {
  -webkit-user-drag: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.superapp-shell {
  display: grid;
  gap: var(--view-gap);
  width: min(100%, 860px);
  margin: 0 auto;
}

.hero-shell,
.card,
.bottom-nav {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-shell::after,
.card::after,
.bottom-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.35), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(243, 201, 120, 0.18), transparent 20%);
  pointer-events: none;
}

.hero-shell,
.card > *,
.hero-shell > * {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy tags"
    "vault vault";
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  z-index: 40;
  align-self: start;
  align-items: start;
  gap: var(--card-gap) var(--view-gap);
  padding: clamp(16px, 2.8vw, 20px);
  transition:
    padding 180ms ease,
    gap 180ms ease,
    border-radius 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(249, 242, 229, 0.94)),
    var(--surface);
}

.hero-copy {
  display: grid;
  gap: 6px;
  grid-area: copy;
  align-self: center;
  max-height: 160px;
  min-width: 0;
  overflow: hidden;
  transform-origin: top left;
  transition:
    opacity 160ms ease,
    max-height 180ms ease,
    transform 180ms ease,
    margin 180ms ease;
}

.hero-side {
  display: contents;
}

.hero-title {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.16em;
  align-items: baseline;
  font-size: clamp(1.82rem, 7.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.hero-title span:nth-child(1) {
  color: #ff6f61;
}

.hero-title span:nth-child(2) {
  color: #1bb6ff;
}

.hero-title span:nth-child(3) {
  color: #17b06b;
}

.hero-tag-grid {
  display: grid;
  grid-area: tags;
  grid-template-columns: repeat(2, max-content);
  grid-template-areas:
    "security speed"
    "tech .";
  gap: var(--tight-gap);
  justify-self: end;
  align-self: start;
  justify-items: stretch;
  max-height: 80px;
  min-width: 0;
  overflow: hidden;
  transform-origin: top right;
  transition:
    opacity 160ms ease,
    max-height 180ms ease,
    transform 180ms ease,
    margin 180ms ease;
}

#heroTagSecurity {
  grid-area: security;
}

#heroTagSpeed {
  grid-area: speed;
}

#heroTagTech {
  grid-area: tech;
}

.hero-tag {
  display: grid;
  place-items: center;
  min-height: 24px;
  min-width: 58px;
  padding: 3px 5px;
  border: 2px solid rgba(92, 63, 23, 0.14);
  border-radius: 8px;
  color: #233127;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 3px 0 rgba(255, 173, 72, 0.42);
}

.hero-tag-security {
  background: #ff6f61;
  color: #fff8f4;
}

.hero-tag-speed {
  background: #ffd84d;
  color: #4d3600;
}

.hero-tag-tech {
  background: #1bb6ff;
  color: #f6fdff;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

h2 {
  font-size: var(--title-copy-size);
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

h3 {
  font-size: var(--subtitle-copy-size);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.hero-text,
.support-text {
  color: var(--muted);
  line-height: 1.55;
}

.vault-chip,
.bottom-nav button,
.cta-row button,
.catalog-button,
.toggle,
input,
select {
  border-radius: var(--radius-md);
  min-width: 0;
}

.vault-chip,
.cta-row button,
.catalog-button,
.bottom-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.vault-chip {
  grid-area: vault;
  justify-self: stretch;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px;
  min-height: 0;
  padding: 6px 12px;
  background:
    linear-gradient(135deg, rgba(255, 229, 94, 0.22), rgba(99, 217, 255, 0.18)),
    var(--surface-strong);
  text-align: left;
  overflow: hidden;
  position: relative;
  transition:
    min-height 180ms ease,
    padding 180ms ease,
    gap 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.vault-stack {
  display: grid;
  gap: 6px;
  align-self: center;
}

.coin-pop {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  align-self: center;
  border: 2px solid rgba(112, 60, 0, 0.5);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 34% 28%, #fff9b8 0 18%, #ffe36d 19% 44%, #eaa52e 45% 100%);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.56),
    inset -3px -3px 0 rgba(113, 58, 0, 0.28);
  transform-style: preserve-3d;
  transition:
    width 180ms ease,
    height 180ms ease,
    box-shadow 180ms ease;
}

.coin-pop::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(129, 82, 0, 0.28);
  border-radius: 50%;
}

.coin-pop::after {
  content: "V";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5a3100;
  font-size: 0.95rem;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255, 246, 166, 0.82);
}

.vault-chip.wallet-linked .coin-pop,
.vault-chip:focus-visible .coin-pop,
.vault-chip:hover .coin-pop {
  animation: syncCoinSpin 900ms ease-in-out infinite;
}

.vault-chip-label {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 180ms ease;
}

.vault-chip strong {
  font-size: 0.96rem;
  letter-spacing: -0.03em;
  transition: font-size 180ms ease, transform 180ms ease;
}

.vault-chip small {
  color: var(--muted);
  font-size: 0.74rem;
  max-height: 24px;
  transition: opacity 160ms ease, max-height 180ms ease, transform 180ms ease;
}

body[data-hero-compact="true"] .hero-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "vault";
  gap: 0;
  padding: 8px 10px;
  border-radius: 20px;
}

body[data-hero-compact="true"] .hero-copy,
body[data-hero-compact="true"] .hero-tag-grid {
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
}

body[data-hero-compact="true"] .vault-chip {
  min-height: 48px;
  padding: 4px 10px;
  gap: 3px;
}

body[data-hero-compact="true"] .coin-pop {
  width: 24px;
  height: 24px;
}

body[data-hero-compact="true"] .vault-chip small {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
}

#vaultChipMeta:empty,
#walletBalanceMeta:empty,
#walletInlineStatus:empty,
#huntBalanceMeta:empty {
  display: none;
}

@keyframes syncCoinSpin {
  0% {
    transform: rotateY(0deg) translateY(0);
  }
  45% {
    transform: rotateY(165deg) translateY(-1px);
  }
  100% {
    transform: rotateY(360deg) translateY(0);
  }
}

@keyframes settlementSurfacePulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 201, 84, 0);
  }
  50% {
    transform: translateY(-1px) scale(1.012);
    box-shadow: 0 14px 28px rgba(255, 201, 84, 0.22);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 201, 84, 0);
  }
}

@keyframes settlementNumberPulse {
  0% {
    transform: scale(1);
    color: inherit;
  }
  45% {
    transform: scale(1.045);
    color: #0f9f76;
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

@keyframes settlementCoinPulse {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.08);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

.vault-chip.settlement-pulse,
.wallet-balance-block.settlement-pulse {
  animation: settlementSurfacePulse 900ms ease;
}

.vault-chip.settlement-pulse .coin-pop {
  animation: settlementCoinPulse 900ms ease;
}

#vaultChipValue.settlement-pulse,
.wallet-balance-block strong.settlement-pulse,
.active-session-bar strong.settlement-pulse {
  animation: settlementNumberPulse 900ms ease;
  transform-origin: center;
}

.view {
  display: none;
  margin-top: 0;
}

.view.active {
  display: grid;
  gap: var(--view-gap);
}

.superapp-shell > .hero-shell + .view {
  margin-top: 4px;
}

.card {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 18px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 45, 37, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge.warning {
  background: rgba(233, 110, 68, 0.14);
  color: #a7441d;
}

.cta-row {
  display: grid;
  gap: var(--card-gap);
  margin-top: var(--view-gap);
}

.primary-action {
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: #f8fffb;
}

.metric-grid,
.detail-grid,
.scope-grid,
.policy-grid,
.catalog-grid,
.split-grid,
.recovery-grid {
  display: grid;
  gap: var(--card-gap);
}

.metric-grid,
.detail-grid,
.scope-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card strong {
  display: block;
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.05em;
}

.policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: var(--card-gap);
}

.policy-item {
  display: grid;
  gap: var(--item-gap);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  min-width: 0;
}

.policy-label-row,
.detail-row,
.scope-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--item-gap);
}

.policy-label-row span {
  color: var(--accent-strong);
  font-weight: 900;
}

.policy-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 45, 37, 0.08);
}

.policy-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.policy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tight-gap);
}

.policy-steps span {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.route-line {
  display: grid;
  gap: var(--card-gap);
}

.route-line span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-balance-block {
  display: grid;
  gap: 6px;
  margin-top: var(--tight-gap);
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(243, 201, 120, 0.26), rgba(0, 130, 111, 0.12)),
    var(--surface-strong);
}

.wallet-balance-block small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
}

.wallet-balance-block strong {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.wallet-balance-block span {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: var(--card-gap);
  margin-top: var(--view-gap);
}

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

.detail-row {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  min-width: 0;
}

.wallet-detail-list .detail-row {
  display: grid;
  align-items: start;
  gap: 4px;
  min-width: 0;
}

.detail-row span {
  color: var(--muted);
  font-size: 0.92rem;
  min-width: 0;
}

.detail-row strong {
  font-size: 0.95rem;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-detail-list .detail-row strong {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-field {
  display: grid;
  gap: var(--tight-gap);
  min-width: 0;
}

.stack-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.auth-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-progress {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(34px, auto));
  gap: 5px;
  padding: 4px;
  border: 2px solid rgba(95, 75, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.login-progress span {
  display: grid;
  min-height: 26px;
  place-items: center;
  padding: 0 8px;
  border: 2px solid rgba(126, 36, 24, 0.22);
  border-radius: 999px;
  background: #ffd8d0;
  color: #842417;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.login-progress span[data-status="active"] {
  animation: login-progress-pulse 720ms ease-in-out infinite;
  border-color: #e0a600;
  background: #ffe67d;
  color: #6c5200;
}

.login-progress span[data-status="done"] {
  border-color: #1fbf67;
  background: #b9f7d0;
  color: #0f753e;
  transform: translateY(-1px);
}

.login-progress span[data-status="error"] {
  animation: login-progress-error 520ms ease-in-out infinite;
  border-color: #ff6b4a;
  background: #ffc5b8;
  color: #922514;
}

.auth-card.auth-busy {
  cursor: wait;
}

.auth-card.auth-busy input,
.auth-card.auth-busy select,
.auth-card.auth-busy button {
  cursor: wait;
  opacity: 0.72;
}

@keyframes login-progress-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 216, 77, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 216, 77, 0.32);
    filter: brightness(1.08);
  }
}

@keyframes login-progress-error {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}

.auth-fold-button {
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid rgba(95, 75, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 900;
}

.mode-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.mode-button.active {
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: #f7fffb;
}

.active-session-bar {
  display: none;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: var(--item-gap);
  padding: 0 16px;
  border: 3px solid #70e57b;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85), transparent 24%),
    linear-gradient(135deg, #d8ffd8, #b9f7d0);
  color: #0f753e;
  font-weight: 1000;
}

.active-session-bar span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #138246;
  font-size: 0.78rem;
  font-weight: 900;
}

.active-session-bar strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #138246;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.wallet-head-actions {
  display: flex;
  align-items: center;
  gap: var(--tight-gap);
}

.tap-collapse-head,
.wallet-card-head {
  cursor: pointer;
  user-select: none;
}

.tap-collapse-head:focus-visible,
.wallet-card-head:focus-visible {
  outline: 3px solid rgba(27, 182, 255, 0.35);
  outline-offset: 4px;
}

.wallet-summary-bar {
  display: none;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: var(--card-gap);
  padding: 10px 16px;
  border: 3px solid #63d9ff;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(135deg, #e7fbff, #c7f6ff);
  color: #0a6d8c;
  font-weight: 900;
}

.wallet-summary-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.wallet-summary-copy small {
  color: #0a93ba;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wallet-summary-copy b,
.wallet-summary-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-summary-copy b {
  color: #123448;
  font-size: 1rem;
  font-weight: 1000;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wallet-summary-copy em {
  color: #0d7191;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.wallet-summary-bar strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a6d8c;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.auth-form {
  display: none;
  gap: var(--card-gap);
}

.auth-form.active {
  display: grid;
}

.auth-card {
  transition: max-height 220ms ease, transform 220ms ease, padding 220ms ease;
}

.auth-card.collapsed {
  transform: translateY(-6px);
}

.auth-card.collapsed .mode-switch,
.auth-card.collapsed .auth-form,
.auth-card.collapsed #walletAuthStatus {
  display: none !important;
}

.auth-card.collapsed .active-session-bar {
  display: flex;
}

.tap-collapse-card {
  transition: max-height 220ms ease, transform 220ms ease, padding 220ms ease;
}

.tap-collapse-card.collapsed {
  transform: translateY(-6px);
}

.tap-collapse-card.collapsed > :not(.card-head):not(.scope-head) {
  display: none !important;
}

.secondary-panel-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 800;
}

.optional-security-panel {
  display: grid;
  gap: var(--card-gap);
  padding: 14px;
  border: 2px dashed rgba(95, 75, 40, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.optional-security-panel[hidden] {
  display: none !important;
}

.reset-panel {
  display: grid;
  gap: var(--card-gap);
  padding: 14px;
  border: 2px dashed rgba(39, 89, 109, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.reset-panel[hidden],
.reset-target-fields[hidden] {
  display: none !important;
}

.security-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--item-gap);
  align-items: start;
  padding: 12px 14px;
  border: 2px solid rgba(95, 75, 40, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 700;
}

.security-choice input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.security-fields[hidden] {
  display: none !important;
}

.compact-support {
  font-size: 0.88rem;
  line-height: 1.5;
}

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

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

.recovery-grid input {
  text-align: center;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.toggle input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: var(--card-gap);
  align-items: stretch;
}

.catalog-button {
  display: grid;
  align-items: center;
  align-content: center;
  justify-items: center;
  gap: 0;
  min-height: 76px;
  padding: 10px 10px;
  min-width: 0;
  text-align: center;
}

.catalog-button.active {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(0, 130, 111, 0.12), rgba(243, 201, 120, 0.22)),
    var(--surface-strong);
}

.catalog-button strong {
  font-size: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-button span,
.catalog-button small {
  color: var(--muted);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-badges em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 45, 37, 0.07);
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.hunt-hero-card {
  background: #ffe0f1;
  border-color: #ff9bcf;
}

.hunt-top-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hunt-map-card {
  display: grid;
  background: #fff9cf;
  border-color: #ffd84d;
}

.hunt-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-top: var(--card-gap);
}

.hunt-summary-pill {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 2px solid rgba(95, 75, 40, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  min-width: 0;
}

.hunt-summary-pill:nth-child(1) {
  background: #d8f8ff;
  border-color: #63d9ff;
}

.hunt-summary-pill:nth-child(2) {
  background: #d8ffcf;
  border-color: #70e57b;
}

.hunt-summary-pill:nth-child(3) {
  background: #fff0aa;
  border-color: #ffd84d;
}

.hunt-summary-pill:nth-child(4) {
  background: #e1dbff;
  border-color: #9383ff;
}

.hunt-summary-pill:nth-child(5) {
  background: #fff7f7;
  border-color: #ff9f1c;
}

.hunt-summary-pill small,
.hunt-drop-row span,
.hunt-drop-row small {
  color: var(--muted);
}

.hunt-summary-pill strong {
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hunt-lite-map {
  order: 1;
  position: relative;
  height: min(62vh, 560px);
  margin-top: 0;
  overflow: hidden;
  border: 3px solid #63d9ff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(82, 214, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #dffbff 0%, #fff6cc 100%);
}

.hunt-map-card > .card-head {
  order: 2;
  margin-top: var(--card-gap);
  margin-bottom: 0;
}

.hunt-summary-grid {
  order: 3;
}

.hunt-quick-claim-card {
  order: 4;
}

.hunt-map-status {
  order: 5;
}

.hunt-roll-card {
  order: 6;
}

.hunt-map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(39, 49, 39, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 49, 39, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hunt-drop-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hunt-self-dot {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #70e57b;
  box-shadow: 0 0 0 8px rgba(112, 229, 123, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hunt-zoom-rail,
.hunt-compass-pad {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.hunt-zoom-rail {
  top: 16px;
  right: 16px;
}

.hunt-zoom-rail button,
.hunt-compass-pad button,
.hunt-roll-toggle,
.hunt-drop-row {
  border: 3px solid rgba(95, 75, 40, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 900;
}

.hunt-zoom-rail button,
.hunt-compass-pad button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
}

.hunt-compass-pad {
  right: 16px;
  bottom: 16px;
  justify-items: center;
}

.hunt-compass-row {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 8px;
}

.hunt-compass-pad .compass-center {
  background: #ffd84d;
  border-color: #f1bb39;
}

.hunt-map-status {
  margin-top: var(--card-gap);
  padding: 12px 14px;
  border: 2px solid rgba(95, 75, 40, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hunt-quick-claim-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(92px, 0.55fr) auto;
  align-items: center;
  gap: var(--card-gap);
  margin-top: var(--card-gap);
  padding: 10px;
  border: 3px solid rgba(95, 75, 40, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 0 rgba(31, 45, 37, 0.06);
}

.hunt-quick-claim-card.ready {
  border-color: #70e57b;
  background: #ebffe8;
}

.hunt-quick-claim-card.blocked {
  border-color: #ff9f1c;
  background: #fff5db;
}

.hunt-quick-claim-card.claimed {
  border-color: #c8ced6;
  background: #f3f4f6;
}

.hunt-quick-copy,
.hunt-quick-value,
.hunt-quick-actions {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hunt-quick-copy small,
.hunt-quick-copy span,
.hunt-quick-value span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.hunt-quick-copy strong,
.hunt-quick-value strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.08;
}

.hunt-quick-actions {
  grid-template-columns: repeat(2, minmax(58px, auto));
}

.hunt-quick-actions button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  font-weight: 950;
}

.hunt-roll-card {
  margin-top: var(--view-gap);
  padding: 16px;
  border: 3px solid #ff9bcf;
  border-radius: 24px;
  background: #fff3fb;
}

.hunt-roll-head,
.hunt-nearby-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--card-gap);
}

.hunt-roll-toggle {
  min-height: 44px;
  padding: 0 14px;
}

.hunt-roll-card.collapsed {
  padding-bottom: 14px;
}

.hunt-roll-body {
  display: grid;
  gap: var(--view-gap);
  margin-top: var(--view-gap);
}

.hunt-roll-body[hidden] {
  display: none !important;
}

.hunt-target-list {
  margin-top: 0;
}

.hunt-roll-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.hunt-nearby-panel {
  display: grid;
  gap: var(--card-gap);
  padding: 14px;
  border: 2px solid rgba(95, 75, 40, 0.12);
  border-radius: 20px;
  background: #ffffff;
}

.hunt-drop-list {
  display: grid;
  gap: var(--item-gap);
}

.hunt-drop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--card-gap);
  min-height: 74px;
  padding: 12px 14px;
  text-align: left;
}

.hunt-drop-row.active {
  background: #d8f8ff;
  border-color: #63d9ff;
}

.hunt-drop-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hunt-drop-copy strong,
.hunt-drop-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: max(14px, calc((100vw - 860px) / 2 + 14px));
  bottom: 14px;
  left: max(14px, calc((100vw - 860px) / 2 + 14px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.bottom-nav button {
  pointer-events: auto;
  min-height: 52px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.bottom-nav button.active {
  background: linear-gradient(135deg, var(--accent), var(--navy));
  color: #f7fffb;
}

@media (min-width: 760px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy tags"
      "vault vault";
    align-items: center;
  }

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

  .spotlight-card .cta-row,
  .hunt-link-card .cta-row,
  .app-detail-card .cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body {
    padding: 12px 12px 92px;
  }

  .view.active {
    gap: 12px;
  }

  .hero-shell,
  .card {
    border-radius: 24px;
  }

  .card {
    padding: 16px;
  }

  .card-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .policy-steps {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .metric-grid,
  .detail-grid,
  .scope-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    gap: 0.12em;
    font-size: clamp(1.64rem, 7vw, 2.2rem);
  }

  .hero-tag {
    min-height: 22px;
    min-width: 52px;
    padding: 2px 4px;
    font-size: 0.56rem;
    border-radius: 8px;
  }

  .vault-chip,
  .wallet-summary-bar,
  .active-session-bar,
  .hunt-quick-claim-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hunt-summary-grid,
  .hunt-top-actions,
  .hunt-roll-actions,
  .hunt-quick-claim-card {
    grid-template-columns: 1fr;
  }

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

  .detail-row {
    display: grid;
    gap: 6px;
  }

  .detail-row strong {
    text-align: left;
  }

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

/* =============================================================
   Rainbow Theme Override
   ============================================================= */
:root {
  --bg-top: #fff7fb;
  --bg-bottom: #fff3c9;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --surface-muted: #fffdf4;
  --line: rgba(86, 63, 34, 0.18);
  --line-strong: rgba(86, 63, 34, 0.28);
  --text: #273127;
  --muted: #645f57;
  --accent: #1ccad8;
  --accent-strong: #008d9d;
  --accent-soft: rgba(28, 202, 216, 0.18);
  --gold: #ffd84d;
  --sand: #ffec85;
  --coral: #ff8e6e;
  --navy: #7c7dff;
  --shadow: 0 10px 0 rgba(255, 133, 190, 0.95), 0 18px 28px rgba(108, 75, 32, 0.12);
}

html,
body {
  background: #fff7ef;
  color: var(--text);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Comic Sans MS", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
}

body::before {
  top: 70px;
  left: 18px;
  background: #ff6fae;
  box-shadow:
    58px 16px 0 #ffd84d,
    18px 78px 0 #70e57b,
    108px 92px 0 #52d6ff,
    calc(100vw - 88px) 24px 0 #ff9b57,
    calc(100vw - 132px) 108px 0 #8e7dff;
}

body::after {
  bottom: 136px;
  right: 20px;
  background: #6fd9ff;
  box-shadow:
    -70px -18px 0 #ff7d7d,
    -126px 46px 0 #ffe36a,
    -38px 118px 0 #7fe38e,
    calc(-100vw + 120px) -12px 0 #ff95cf;
}

.superapp-shell {
  position: relative;
  z-index: 1;
}

.hero-shell,
.card,
.bottom-nav {
  border: 3px solid #f1bb39;
  background: #fffdf7;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero-shell::after,
.card::after,
.bottom-nav::after {
  display: none;
}

.hero-shell {
  background: #fff7b8;
  border-color: #ffd84d;
  box-shadow: 0 10px 0 #ff9bcf, 0 18px 30px rgba(125, 92, 46, 0.16);
}

.hero-copy h1 {
  color: #2f3a1f;
}

.eyebrow {
  color: #009f86;
  letter-spacing: 0.2em;
}

.hero-text,
.support-text,
.metric-card span,
.wallet-balance-block span,
.vault-chip small,
.stack-field span,
.catalog-button span,
.catalog-button small,
.detail-row span {
  color: #665f57;
}

.vault-chip,
.cta-row button,
.catalog-button,
.bottom-nav button,
.mode-button,
.toggle,
input,
select {
  border: 3px solid rgba(95, 75, 40, 0.18);
  box-shadow: none;
}

.vault-chip {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.84), transparent 22%),
    linear-gradient(135deg, #fff3a8 0%, #d4fbff 46%, #b9f7d0 100%);
  border-color: #63d9ff;
}

.vault-chip-label {
  color: #008ca1;
}

.badge {
  background: #fff0a8;
  color: #6b5a13;
  border: 2px solid rgba(107, 90, 19, 0.14);
}

.badge.accent {
  background: #b9f7d0;
  color: #127e48;
}

.badge.warning {
  background: #ffd5cb;
  color: #b6522b;
}

.spotlight-card {
  background: #fff8d1;
  border-color: #ffd84d;
}

.metric-grid .metric-card:nth-child(1) {
  background: #fff0a8;
  border-color: #ffd84d;
  box-shadow: 0 9px 0 #ffb85c;
}

.metric-grid .metric-card:nth-child(2) {
  background: #ffd8ef;
  border-color: #ff9bcf;
  box-shadow: 0 9px 0 #ffb6d8;
}

.metric-grid .metric-card:nth-child(3) {
  background: #d9f8ff;
  border-color: #63d9ff;
  box-shadow: 0 9px 0 #91e7ff;
}

.metric-grid .metric-card:nth-child(4) {
  background: #e4ddff;
  border-color: #8e7dff;
  box-shadow: 0 9px 0 #b6a9ff;
}

.policy-card {
  background: #fffbe8;
  border-color: #ffbf4f;
}

.policy-item {
  border: 3px solid transparent;
}

.policy-item:nth-child(1) {
  background: #fff0a8;
  border-color: #ffd84d;
}

.policy-item:nth-child(2) {
  background: #ffd7c3;
  border-color: #ff9b57;
}

.policy-item:nth-child(3) {
  background: #d4f8ff;
  border-color: #45d1f8;
}

.policy-item:nth-child(4) {
  background: #e0dbff;
  border-color: #9383ff;
}

.policy-label-row span {
  color: #155f8d;
}

.policy-bar {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(78, 63, 26, 0.12);
}

.policy-item:nth-child(1) .policy-bar span {
  background: #ff7a7a;
}

.policy-item:nth-child(2) .policy-bar span {
  background: #ffb84d;
}

.policy-item:nth-child(3) .policy-bar span {
  background: #4fd6ff;
}

.policy-item:nth-child(4) .policy-bar span {
  background: #8e7dff;
}

.policy-steps span {
  background: #ffffff;
  border: 2px solid rgba(97, 74, 39, 0.12);
  color: #5f605f;
}

.policy-steps span:nth-child(1) {
  background: #fff6a8;
}

.policy-steps span:nth-child(2) {
  background: #ffd6ef;
}

.policy-steps span:nth-child(3) {
  background: #d4f8ff;
}

.route-line span:nth-child(1) {
  background: #ffd7ef;
  border-color: #ff9bcf;
}

.route-line span:nth-child(2) {
  background: #fff0aa;
  border-color: #ffd84d;
}

.route-line span:nth-child(3) {
  background: #c9f8ff;
  border-color: #63d9ff;
}

.route-line span:nth-child(4) {
  background: #d8ffcf;
  border-color: #70e57b;
}

.route-line span:nth-child(5) {
  background: #e1dbff;
  border-color: #8e7dff;
}

.wallet-card {
  order: 2;
  transition: max-height 220ms ease, transform 220ms ease, padding 220ms ease;
  background: #d9f8ff;
  border-color: #63d9ff;
}

.wallet-card.collapsed {
  transform: translateY(-6px);
}

.wallet-card.collapsed .card-head,
.wallet-card.collapsed .wallet-balance-block,
.wallet-card.collapsed .wallet-detail-list,
.wallet-card.collapsed .cta-row,
.wallet-card.collapsed #walletInlineStatus {
  display: none !important;
}

.wallet-card.collapsed .wallet-summary-bar {
  display: flex;
}

.auth-card {
  order: 1;
  background: #fff8cf;
  border-color: #ffd84d;
}

.wallet-balance-block {
  background: #ffffff;
  border: 3px solid #7cdfff;
}

.detail-row {
  background: #ffffff;
  border-width: 2px;
}

.detail-list .detail-row:nth-child(1) {
  border-color: #ff9bcf;
}

.detail-list .detail-row:nth-child(2) {
  border-color: #ffd84d;
}

.detail-list .detail-row:nth-child(3) {
  border-color: #63d9ff;
}

.detail-list .detail-row:nth-child(4) {
  border-color: #70e57b;
}

.mode-button {
  background: #ffffff;
  color: #5d5c5a;
}

.mode-button.active {
  background: #ff9bcf;
  border-color: #ff7fb9;
  color: #432232;
}

.secondary-panel-button {
  background: #fff0aa;
  border-color: #ffd84d;
}

.optional-security-panel {
  background: #fffdf7;
  border-color: #63d9ff;
}

.security-choice:nth-child(2) {
  background: #d8ffcf;
  border-color: #70e57b;
}

.security-choice:nth-child(3) {
  background: #ffd8ef;
  border-color: #ff9bcf;
}

.security-choice:nth-child(4) {
  background: #d8f8ff;
  border-color: #63d9ff;
}

input,
select {
  background: #ffffff;
  border-width: 2px;
}

.primary-action {
  background: #52d6ff;
  border-color: #24bfe8;
  color: #18343b;
}

.cta-row button:not(.primary-action) {
  background: #ffffff;
}

.cta-row button:nth-child(2),
#walletRefreshButton,
#walletCreateModeButton,
#catalogLaunchButton {
  background: #ffd8ef;
  border-color: #ff9bcf;
}

#heroOpenHuntButton,
#walletMetamaskButton {
  background: #d8ffcf;
  border-color: #70e57b;
}

#walletSignInButton,
#walletCreateButton {
  background: #52d6ff;
  border-color: #24bfe8;
}

.info-card:nth-child(1),
.scope-card:nth-child(1) {
  background: #ffd8ef;
  border-color: #ff9bcf;
}

.info-card:nth-child(2),
.scope-card:nth-child(2) {
  background: #fff0aa;
  border-color: #ffd84d;
}

.info-card:nth-child(3),
.scope-card:nth-child(3) {
  background: #d8ffcf;
  border-color: #70e57b;
}

.scope-card:nth-child(4) {
  background: #d8f8ff;
  border-color: #63d9ff;
}

.catalog-button {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  transition: none;
}

.catalog-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 14px;
  border-bottom: 2px solid rgba(75, 59, 29, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.catalog-button:hover,
.catalog-button:focus-visible {
  transform: none;
  box-shadow: none;
}

.catalog-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 246, 226, 0.98));
  border-color: #ffbb42;
}

.app-detail-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(255, 246, 226, 0.98));
  border-color: #ffbb42;
}

#catalogCountBadge {
  background: #fff0a8;
  border: 2px solid rgba(122, 95, 22, 0.16);
  color: #725c15;
}

.catalog-button:nth-child(1) {
  background: linear-gradient(180deg, #ffd9d6 0%, #ffb8b1 100%);
  border-color: #ff7d73;
}

.catalog-button:nth-child(1)::before {
  background: linear-gradient(90deg, #ff6f61, #ff9d5c);
}

.catalog-button:nth-child(2) {
  background: linear-gradient(180deg, #ffe8c7 0%, #ffd39a 100%);
  border-color: #ffac47;
}

.catalog-button:nth-child(2)::before {
  background: linear-gradient(90deg, #ff9740, #ffbf45);
}

.catalog-button:nth-child(3) {
  background: linear-gradient(180deg, #fff4bf 0%, #ffe891 100%);
  border-color: #ffd24f;
}

.catalog-button:nth-child(3)::before {
  background: linear-gradient(90deg, #ffd24f, #ffe978);
}

.catalog-button:nth-child(4) {
  background: linear-gradient(180deg, #e5ffd7 0%, #c8f7af 100%);
  border-color: #6fdc72;
}

.catalog-button:nth-child(4)::before {
  background: linear-gradient(90deg, #67d96f, #a2eb6c);
}

.catalog-button:nth-child(5) {
  background: linear-gradient(180deg, #d9fbff 0%, #bdefff 100%);
  border-color: #53cfff;
}

.catalog-button:nth-child(5)::before {
  background: linear-gradient(90deg, #38d6d0, #53b8ff);
}

.catalog-button:nth-child(6) {
  background: linear-gradient(180deg, #dde8ff 0%, #c7d8ff 100%);
  border-color: #6fa0ff;
}

.catalog-button:nth-child(6)::before {
  background: linear-gradient(90deg, #56a7ff, #8f87ff);
}

.catalog-button:nth-child(7) {
  background: linear-gradient(180deg, #e7ddff 0%, #d4c5ff 100%);
  border-color: #9275ff;
}

.catalog-button:nth-child(7)::before {
  background: linear-gradient(90deg, #7f79ff, #b06dff);
}

.catalog-button:nth-child(8) {
  background: linear-gradient(180deg, #ffdbe6 0%, #ffc8d7 100%);
  border-color: #ff8db1;
}

.catalog-button:nth-child(8)::before {
  background: linear-gradient(90deg, #ff7f94, #ffb767);
}

.catalog-button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #c5b6ff 0%, #a18eff 48%, #8a74ff 100%);
  border-color: #7f68ff;
  box-shadow: none;
  transform: none;
}

.catalog-button.active::before {
  background: linear-gradient(90deg, #fff0ff, #ffd9f3);
}

.catalog-button.active strong,
.catalog-button.active span,
.catalog-button.active small {
  color: #31255a;
}

.catalog-button strong {
  font-size: 1.4rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.catalog-button span,
.catalog-button small {
  line-height: 1.45;
  font-size: 1.02rem;
  font-weight: 800;
}

.catalog-button span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.catalog-badges {
  display: none;
}

@media (max-width: 520px) {
  .catalog-button {
    min-height: 70px;
    padding: 8px 8px;
  }

  .catalog-button strong {
    font-size: 1.24rem;
  }
}

.bottom-nav {
  background: #fffbe8;
  border-color: #ffd84d;
}

.bottom-nav button {
  background: #ffffff;
  color: #695f58;
}

.bottom-nav button:nth-child(1) {
  border-color: #ff9bcf;
}

.bottom-nav button:nth-child(2) {
  border-color: #ffd84d;
}

.bottom-nav button:nth-child(3) {
  border-color: #63d9ff;
}

.bottom-nav button:nth-child(4) {
  border-color: #70e57b;
}

.bottom-nav button:nth-child(5) {
  border-color: #8e7dff;
}

.bottom-nav button.active {
  color: #233127;
}

.bottom-nav button[data-view-target="home"].active {
  background: #52d6ff;
}

.bottom-nav button[data-view-target="wallet"].active {
  background: #ff9bcf;
}

.bottom-nav button[data-view-target="network"].active {
  background: #ffd84d;
}

.bottom-nav button[data-view-target="hunt"].active {
  background: #70e57b;
}

.bottom-nav button[data-view-target="apps"].active {
  background: #8e7dff;
}
