@font-face {
  font-family: 'Dogica Pixel';
  src: url('/assets/fonts/dogicapixel.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Dogica Pixel Bold';
  src: url('/assets/fonts/dogicabold.ttf') format('truetype');
  font-display: swap;
}

:root {
  --accent: #14f195;
  --accent-soft: rgba(20, 241, 149, 0.12);
  --bg-base: #010207;
  --bg-panel: rgba(10, 16, 26, 0.84);
  --stroke: #324258;
  --stroke-strong: #4e6281;
  --text-primary: #f4f7fb;
  --text-secondary: #9fb2c8;
  --text-tertiary: #6f829a;
  --danger: #ff7a9a;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--bg-base);
  font-family: 'Dogica Pixel', monospace;
  text-transform: lowercase;
}

button,
a,
input,
select {
  font: inherit;
}

.screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
}

.base-layer {
  background: linear-gradient(160deg, #010207 0%, #040811 46%, #060a13 100%);
}

.accent-layer-a {
  background:
    linear-gradient(126deg, rgba(20, 241, 149, 0.1) 0 20%, transparent 20% 54%, rgba(38, 83, 171, 0.16) 54% 100%),
    linear-gradient(145deg, rgba(20, 241, 149, 0.08), transparent 48%, rgba(153, 69, 255, 0.06));
}

.accent-layer-b {
  background: radial-gradient(circle at 82% 24%, rgba(31, 80, 180, 0.22), transparent 34%);
}

.texture-layer {
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(220, 231, 243, 0.34) 0.55px, transparent 0.75px);
  background-size: 3px 3px;
}

.app-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(14px, 2vw, 26px);
  pointer-events: none;
}

.brand-link,
.wallet-actions,
.wallet-button {
  pointer-events: auto;
}

.wallet-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.brand-link img {
  width: min(180px, 36vw);
  height: auto;
  display: block;
}

.wallet-button,
.secondary-button {
  min-height: 44px;
  border: 1px solid rgba(20, 241, 149, 0.72);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.15), transparent 52%),
    rgba(10, 16, 26, 0.92);
  color: var(--accent);
  padding: 0 18px;
  text-transform: lowercase;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 3px 0 0 rgba(20, 241, 149, 0.72), 0 0 22px rgba(20, 241, 149, 0.08);
}

.wallet-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 8px;
  box-shadow: inset 2px 0 0 rgba(20, 241, 149, 0.72), 0 0 16px rgba(20, 241, 149, 0.06);
}

.profile-header-share-button {
  width: 30px;
  min-width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
}

.profile-header-share-button[hidden] {
  display: none;
}

.profile-header-share-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  shape-rendering: crispEdges;
}

.wallet-button:hover,
.wallet-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--accent);
  color: var(--text-primary);
  outline: none;
}

.wallet-button:disabled,
.secondary-button:disabled {
  cursor: default;
  color: var(--text-tertiary);
  border-color: rgba(78, 98, 129, 0.7);
  box-shadow: none;
}

.wallet-button.is-denied {
  color: var(--text-secondary);
  border-color: rgba(78, 98, 129, 0.8);
  background: rgba(10, 16, 26, 0.92);
}

.mock-wallet-button {
  border-color: rgba(78, 98, 129, 0.86);
  color: var(--text-secondary);
  box-shadow: inset 2px 0 0 rgba(78, 98, 129, 0.72);
}

.wallet-button.wallet-disconnect-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(78, 98, 129, 0.72);
  color: var(--text-secondary);
  box-shadow: none;
}

.wallet-disconnect-button[hidden] { display: none; }
.wallet-disconnect-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.wallet-disconnect-button:hover,
.wallet-disconnect-button:focus-visible {
  color: #ff9c9c;
  border-color: rgba(255, 132, 132, 0.8);
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(92px, 8vw, 126px) clamp(12px, 3vw, 38px) clamp(40px, 5vw, 72px);
}

.profile-first-shell {
  min-height: 100vh;
  width: 100%;
  padding-top: 0;
  padding-right: 0;
  padding-left: 0;
}

.profile-workspace {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  --theme-glow: rgba(20, 241, 149, 0.1);
}

.profile-workspace.theme-warm {
  --accent: #ff9b54;
  --accent-soft: rgba(255, 155, 84, 0.13);
  --theme-glow: rgba(255, 155, 84, 0.14);
}

.profile-workspace.theme-gold {
  --accent: #ffc74d;
  --accent-soft: rgba(255, 199, 77, 0.13);
  --theme-glow: rgba(255, 199, 77, 0.14);
}

.profile-workspace.theme-jungle {
  --accent: #60ff8a;
  --accent-soft: rgba(96, 255, 138, 0.13);
  --theme-glow: rgba(96, 255, 138, 0.14);
}

.profile-workspace.theme-violet {
  --accent: #be5cff;
  --accent-soft: rgba(190, 92, 255, 0.13);
  --theme-glow: rgba(190, 92, 255, 0.14);
}

.profile-workspace::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, var(--theme-glow), transparent 28%),
    radial-gradient(circle at 78% 54%, var(--accent-soft), transparent 34%);
  pointer-events: none;
}

.locked-profile-card,
.profile-card,
.profile-module {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 42%),
    var(--bg-panel);
}

.locked-profile-card {
  min-height: calc(100svh - 32px);
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.locked-gateway {
  width: min(720px, calc(100vw - 40px));
  display: grid;
  padding: clamp(78px, 11vw, 128px) 0 clamp(40px, 6vw, 68px);
  background:
    radial-gradient(circle at 50% 10%, rgba(20, 241, 149, 0.12), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(38, 83, 171, 0.10), transparent 32%);
}

.locked-gateway-copy {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(78, 98, 129, 0.82);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.08), transparent 46%),
    rgba(5, 10, 18, 0.78);
  box-shadow: 0 0 46px rgba(20, 241, 149, 0.07);
}

.locked-gateway-copy .status-label {
  width: fit-content;
  border: 1px solid rgba(20, 241, 149, 0.72);
  background: rgba(20, 241, 149, 0.06);
  padding: 10px 12px;
}

.locked-gateway-copy > strong {
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.locked-profile-mock {
  position: relative;
  min-height: clamp(178px, 28vw, 238px);
  overflow: hidden;
  border: 1px solid rgba(78, 98, 129, 0.78);
  background:
    linear-gradient(180deg, rgba(1, 2, 7, 0.08), rgba(1, 2, 7, 0.78)),
    rgba(8, 14, 23, 0.9);
}

.locked-profile-mock.is-message {
  min-height: auto;
  display: block;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.locked-mock-banner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(20, 241, 149, 0.16) 0 24%, transparent 24% 58%, rgba(38, 83, 171, 0.18) 58% 100%),
    rgba(10, 16, 26, 0.78);
}

.locked-mock-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 2, 7, 0.08), rgba(1, 2, 7, 0.86));
}

.locked-mock-banner img,
.locked-mock-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.locked-mock-banner img:not([src]),
.locked-mock-avatar img:not([src]) {
  display: none;
}

.locked-mock-identity {
  position: absolute;
  left: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 2.8vw, 22px);
  z-index: 1;
  display: flex;
  align-items: end;
  gap: clamp(12px, 2vw, 18px);
}

.locked-mock-avatar {
  width: clamp(82px, 13vw, 118px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(20, 241, 149, 0.82);
  background: rgba(5, 10, 18, 0.82);
  box-shadow: 0 0 24px rgba(20, 241, 149, 0.10);
}

.locked-mock-name {
  min-width: 0;
}

.locked-mock-name span {
  display: block;
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.locked-mock-name strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(20px, 3.75vw, 39px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.locked-gateway-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(9px, 1vw, 12px);
  line-height: 1.75;
}

.locked-access-list {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.locked-access-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(78, 98, 129, 0.46);
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.locked-access-list li:last-child {
  padding-bottom: 0;
}

.locked-access-list span {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 9px;
}

.locked-connect-button {
  justify-self: end;
  min-height: 38px;
  border: 1px solid rgba(20, 241, 149, 0.76);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.18), transparent 56%),
    rgba(5, 10, 18, 0.86);
  color: var(--accent);
  padding: 0 14px;
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 8px;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 2px 0 0 rgba(20, 241, 149, 0.72), 0 0 18px rgba(20, 241, 149, 0.08);
}

.locked-connect-button:hover,
.locked-connect-button:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent);
  outline: none;
}

.locked-connect-button:disabled {
  cursor: default;
  color: var(--text-tertiary);
  border-color: rgba(78, 98, 129, 0.72);
  box-shadow: none;
}

.locked-connect-button.is-denied {
  color: var(--text-secondary);
}

.locked-note {
  color: var(--text-tertiary) !important;
  font-size: 8px !important;
  letter-spacing: 0.05em;
}

.locked-connect-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(78, 98, 129, 0.28);
}

.locked-connect-alt-divider {
  color: var(--text-tertiary);
  font-size: 9px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.locked-connect-button-alt {
  border-color: rgba(78, 98, 129, 0.72);
  background: rgba(5, 10, 18, 0.86);
  color: var(--text-secondary);
  box-shadow: none;
}

.desktop-auth-trigger-button {
  display: inline-flex;
  min-height: 46px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  text-align: left;
}

.desktop-auth-trigger-button small {
  color: var(--text-tertiary);
  font-family: 'Dogica Pixel', monospace;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.locked-connect-button-alt:hover,
.locked-connect-button-alt:focus-visible {
  color: var(--text-primary);
  border-color: var(--accent);
  outline: none;
}

.desktop-auth-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 2, 7, 0.82);
  backdrop-filter: blur(8px);
}

.desktop-auth-panel {
  position: relative;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(20, 241, 149, 0.46);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.12), transparent 44%),
    rgba(5, 10, 18, 0.94);
  box-shadow: inset 2px 0 0 rgba(20, 241, 149, 0.62), 0 0 24px rgba(20, 241, 149, 0.08);
}

.desktop-auth-heading {
  max-width: 350px;
  text-align: center;
}

.desktop-auth-eyebrow {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-auth-heading h2 {
  margin: 8px 0 7px;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.35;
  text-transform: lowercase;
}

.desktop-auth-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.7;
}

.desktop-auth-qr {
  display: inline-block;
  min-height: 160px;
  min-width: 160px;
  padding: 10px;
  border: 3px solid var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 241, 149, 0.1);
}

.locked-connect-alt[hidden],
.desktop-auth-modal[hidden] {
  display: none;
}

.desktop-auth-qr canvas,
.desktop-auth-qr img {
  display: block;
}

.desktop-auth-status {
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.desktop-auth-steps {
  display: flex;
  width: min(100%, 340px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-auth-steps li {
  flex: 1;
  color: var(--text-tertiary);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.desktop-auth-steps li + li {
  border-left: 1px solid rgba(78, 98, 129, 0.46);
}

.desktop-auth-steps span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
}

.desktop-auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.desktop-auth-cancel-button,
.desktop-auth-retry-button,
.desktop-auth-close-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Dogica Pixel', monospace;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.desktop-auth-retry-button {
  border: 1px solid rgba(20, 241, 149, 0.72);
  background: rgba(20, 241, 149, 0.1);
  color: var(--accent);
  padding: 0 10px;
  text-decoration: none;
}

.desktop-auth-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 34px;
  min-width: 34px;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.desktop-auth-cancel-button:hover,
.desktop-auth-cancel-button:focus-visible,
.desktop-auth-retry-button:hover,
.desktop-auth-retry-button:focus-visible,
.desktop-auth-close-button:hover,
.desktop-auth-close-button:focus-visible {
  color: var(--accent);
  outline: none;
}

@media (max-width: 760px) {
  .locked-connect-alt {
    display: none !important;
  }
}

.locked-banner,
.profile-banner {
  min-height: clamp(180px, 24vh, 280px);
  background:
    linear-gradient(112deg, rgba(0, 92, 61, 0.42) 0 24%, transparent 24% 52%, rgba(31, 66, 132, 0.22) 52% 100%),
    radial-gradient(circle at 50% 38%, rgba(20, 241, 149, 0.12), transparent 42%),
    rgba(5, 10, 18, 0.92);
}

.locked-profile-body {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
  transform: translateY(-34px);
  margin-bottom: -34px;
}

.locked-avatar,
.profile-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(94px, 12vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(20, 241, 149, 0.78);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.14), transparent 56%),
    rgba(5, 10, 18, 0.94);
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(32px, 5vw, 58px);
  overflow: hidden;
  image-rendering: pixelated;
  box-shadow: 0 0 30px rgba(20, 241, 149, 0.1);
}

.status-label,
.profile-badge,
.asset-meta span,
.completion-breakdown span,
.profile-stat-strip span,
.module-title span {
  color: var(--accent);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.locked-profile-body strong,
.module-title strong,
.big-stat,
.profile-stat-strip strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  line-height: 1.2;
  text-transform: uppercase;
}

.locked-profile-body strong {
  margin-top: 12px;
  font-size: clamp(22px, 4vw, 56px);
}

.locked-profile-body p,
.profile-identity p,
.module-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.6;
}

.locked-profile-card.is-allowed,
.profile-card.is-allowed {
  border-color: rgba(20, 241, 149, 0.86);
  box-shadow: 0 0 42px rgba(20, 241, 149, 0.1);
}

.locked-profile-card.is-error #app-status-title {
  color: var(--danger);
}

.profile-card {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
  overflow: hidden;
}

.profile-banner {
  position: relative;
  height: clamp(510px, 54vh, 620px);
  min-height: 0;
  overflow: hidden;
}

.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 2, 7, 0.1) 0%, rgba(1, 2, 7, 0.2) 38%, rgba(1, 2, 7, 0.86) 100%),
    linear-gradient(90deg, rgba(1, 2, 7, 0.36), transparent 34%, rgba(1, 2, 7, 0.28)),
    linear-gradient(90deg, rgba(20, 241, 149, 0.08), transparent 34%, rgba(31, 66, 132, 0.12));
  pointer-events: none;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.profile-share-button {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 241, 149, 0.76);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.18), transparent 54%),
    rgba(5, 10, 18, 0.82);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.08);
}

.profile-share-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  shape-rendering: crispEdges;
}

.profile-share-button:hover,
.profile-share-button:focus-visible {
  outline: none;
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.16);
}

.profile-main-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(26px, 4vw, 46px) clamp(18px, 3vw, 34px) clamp(18px, 2.6vw, 30px);
  background: linear-gradient(180deg, transparent 0%, rgba(1, 2, 7, 0.6) 52%, rgba(1, 2, 7, 0.82) 100%);
}

.profile-main-row .profile-avatar {
  width: clamp(98px, 10vw, 150px);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-avatar span {
  transform: translateY(4px);
}

.profile-identity h2 {
  margin: 10px 0 0;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 0.94;
  text-transform: uppercase;
  max-width: min(820px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 5px 0 rgba(1, 2, 7, 0.22), 0 0 28px rgba(1, 2, 7, 0.8);
}

.profile-badge {
  align-self: center;
  border: 1px solid rgba(20, 241, 149, 0.72);
  background: rgba(20, 241, 149, 0.06);
  padding: 10px 12px;
  white-space: nowrap;
}

.profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(78, 98, 129, 0.54);
  position: relative;
  z-index: 3;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-stat-strip article {
  min-width: 0;
  border-right: 1px solid rgba(78, 98, 129, 0.54);
  background: rgba(5, 10, 18, 0.42);
  padding: clamp(14px, 1.8vw, 22px);
}

.profile-stat-strip article:last-child {
  border-right: 0;
}

.profile-stat-strip strong {
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(13px, 1.65vw, 24px);
  overflow-wrap: anywhere;
}

.profile-stat-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mini-profile-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1480px, calc(100vw - 32px));
  border: 1px solid rgba(78, 98, 129, 0.78);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 52%),
    rgba(5, 10, 18, 0.86);
  padding: 9px 12px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mini-profile-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mini-profile-id,
.mini-profile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-profile-avatar {
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 241, 149, 0.72);
  background: rgba(20, 28, 42, 0.72);
  overflow: hidden;
}

.mini-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mini-profile-id strong,
.mini-profile-stats span {
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.mini-profile-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-profile-stats span {
  color: var(--accent);
  white-space: nowrap;
}

.mini-share-button {
  width: 30px;
  flex: 0 0 auto;
}

.mini-share-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.profile-quick-grid,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

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

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.profile-actions-grid {
  grid-template-columns: 1fr;
}

.profile-side-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.profile-actions-grid .profile-side-stack {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-side-stack .profile-module {
  gap: 10px;
  padding: 14px;
}

.profile-side-stack .module-title {
  padding-bottom: 8px;
}

.profile-side-stack .module-title strong {
  font-size: 10px;
}

.companion-feature-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.owned-assets-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.missing-assets-layout {
  align-items: start;
  grid-template-columns: 1fr;
}

.missing-assets-layout .profile-module {
  align-content: start;
}

.asset-browser {
  display: grid;
  gap: 14px;
}

.collection-hub {
  position: relative;
  overflow: hidden;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(14px, 2.4vw, 26px);
}

.collection-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.11) 0 7px, transparent 7px),
    radial-gradient(circle at 18% 16%, var(--theme-glow), transparent 30%),
    linear-gradient(122deg, var(--accent-soft) 0 28%, transparent 28% 100%);
  pointer-events: none;
}

.collection-hub > * {
  position: relative;
  z-index: 1;
}

.collection-tracker {
  display: grid;
  gap: 16px;
}

.collection-tracker-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.34fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: 12px;
}

.collection-hub .completion-meter {
  width: auto;
  min-height: 112px;
  aspect-ratio: auto;
  align-content: center;
  justify-items: start;
  padding: 14px 16px;
  border-color: rgba(20, 241, 149, 0.62);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.16), transparent 56%),
    rgba(5, 10, 18, 0.64);
  box-shadow: inset 3px 0 0 rgba(20, 241, 149, 0.72);
}

.collection-hub .completion-meter::before {
  display: none;
}

.collection-hub .completion-meter strong {
  font-size: clamp(28px, 3.8vw, 52px);
}

.collection-hub .completion-meter span {
  margin-top: 8px;
}

.collection-hub .completion-copy h3 {
  font-size: clamp(22px, 3.1vw, 46px);
  letter-spacing: 0.08em;
}

.collection-hub .completion-copy {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 12px 0;
}

.collection-hub .completion-breakdown {
  align-content: stretch;
  justify-content: stretch;
}

.collection-hub .completion-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-hub .completion-badges span {
  min-width: 0;
}

.collection-hub .asset-module {
  border: 0;
  background: transparent;
  padding: 0;
}

.collection-hub .asset-module .module-title {
  padding-top: 8px;
}

.collection-hub .asset-browser {
  gap: 16px;
}

.asset-browser-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(78, 98, 129, 0.76);
  background: rgba(5, 10, 18, 0.56);
}

.asset-tab {
  appearance: none;
  min-width: 128px;
  min-height: 44px;
  border: 0;
  border-right: 1px solid rgba(78, 98, 129, 0.64);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.asset-tab:last-child {
  border-right: 0;
}

.asset-tab.is-active {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), rgba(5, 10, 18, 0.2));
  box-shadow: inset 0 -2px 0 var(--accent);
}

[data-assets-panel][hidden] {
  display: none;
}

.profile-module {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}

.module-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid rgba(78, 98, 129, 0.52);
  padding-bottom: 12px;
}

.module-title strong {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(12px, 1.4vw, 18px);
  text-align: right;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(78, 98, 129, 0.9);
  border-radius: 0;
  background: rgba(20, 28, 42, 0.84);
  color: var(--text-primary);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

select:disabled,
input:read-only {
  color: var(--text-tertiary);
}

.progress-track {
  height: 18px;
  border: 1px solid rgba(78, 98, 129, 0.82);
  background: rgba(5, 10, 18, 0.88);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.74), #14f195);
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.22);
}

.completion-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.completion-breakdown span {
  border: 1px solid rgba(78, 98, 129, 0.66);
  color: var(--text-secondary);
  padding: 8px 10px;
}

.completion-module {
  position: relative;
  overflow: hidden;
  gap: 16px;
  min-height: 100%;
}

.completion-module::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.13) 0 8px, transparent 8px),
    radial-gradient(circle at 16% 42%, var(--theme-glow), transparent 28%),
    linear-gradient(122deg, var(--accent-soft) 0 32%, transparent 32% 100%);
  pointer-events: none;
}

.completion-module > * {
  position: relative;
  z-index: 1;
}

.completion-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.completion-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(132px, 15vw, 190px);
  aspect-ratio: 1;
  border: 1px solid rgba(78, 98, 129, 0.78);
  background:
    linear-gradient(rgba(5, 10, 18, 0.92), rgba(5, 10, 18, 0.92)) padding-box,
    conic-gradient(var(--accent) var(--completion-percent), rgba(78, 98, 129, 0.42) 0) border-box;
  box-shadow: inset 0 0 0 10px rgba(5, 10, 18, 0.88), 0 0 28px var(--theme-glow);
}

.completion-meter::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(20, 241, 149, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.08), transparent 52%),
    rgba(5, 10, 18, 0.84);
}

.completion-meter strong,
.completion-meter span {
  position: relative;
  z-index: 1;
}

.completion-meter span,
.completion-copy span {
  display: block;
  color: var(--accent);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.completion-meter strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
}

.completion-copy {
  min-width: 0;
}

.completion-copy h3 {
  margin: 10px 0 12px;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(22px, 3.6vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
}

.completion-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.6;
}

.completion-badges span {
  position: relative;
  display: grid;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 140px;
  background: rgba(5, 10, 18, 0.52);
  overflow: hidden;
}

.completion-badges strong {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 14px;
}

.completion-badges small {
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.completion-badges i {
  display: block;
  height: 4px;
  margin-top: 2px;
  border: 1px solid rgba(78, 98, 129, 0.6);
  background: rgba(5, 10, 18, 0.82);
}

.completion-badges i::before {
  content: '';
  display: block;
  width: var(--meter-width, 0%);
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--theme-glow);
}

.big-stat {
  margin: 0;
  color: var(--accent);
  font-size: clamp(16px, 1.7vw, 24px);
}

.referral-strip {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  border-block: 1px solid rgba(78, 98, 129, 0.56);
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.1), transparent 48%),
    rgba(4, 10, 18, 0.42);
  padding: 10px 0;
}

.referral-strip-label,
.referral-strip-stat {
  display: grid;
  gap: 4px;
  min-width: 132px;
}

.referral-strip-label span,
.referral-strip-stat span {
  color: var(--text-secondary);
  font-size: 7px;
  line-height: 1.4;
  text-transform: uppercase;
}

.referral-strip-label strong,
.referral-strip-stat strong {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.referral-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.referral-code-row code {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(78, 98, 129, 0.72);
  background: rgba(5, 10, 18, 0.66);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-code-row .secondary-button {
  min-height: 34px;
  padding-inline: 12px;
}

.referral-code-row .secondary-button.is-copied {
  color: var(--bg-base);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.18);
}

.profile-side-stack .rank-module .module-note {
  font-size: 8px;
  line-height: 1.5;
}

.giveaway-module {
  position: relative;
  overflow: hidden;
  align-content: start;
  gap: 12px;
  background:
    linear-gradient(112deg, rgba(190, 92, 255, 0.14) 0 34%, transparent 34% 100%),
    linear-gradient(135deg, rgba(20, 241, 149, 0.09), transparent 45%),
    var(--bg-panel);
}

.giveaway-module::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 3px solid var(--accent);
  opacity: 0.82;
}

.giveaway-module.is-locked::before {
  border-left-color: #be5cff;
}

.giveaway-module.is-entered::before {
  border-left-color: #f8d44c;
}

.giveaway-module.is-winner::before {
  border-left-color: #14f195;
  box-shadow: 0 0 28px rgba(20, 241, 149, 0.22);
}

.giveaway-live-strip,
.giveaway-actions,
.giveaway-entry-row {
  position: relative;
  z-index: 1;
}

.giveaway-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 7px;
  line-height: 1.35;
  text-transform: uppercase;
}

.giveaway-live-strip strong {
  padding: 7px 9px;
  border: 1px solid currentColor;
  color: var(--accent);
  background: rgba(20, 241, 149, 0.08);
}

.giveaway-module.is-locked .giveaway-live-strip,
.giveaway-module.is-locked .giveaway-live-strip strong {
  color: #be5cff;
}

.giveaway-module.is-entered .giveaway-live-strip,
.giveaway-module.is-entered .giveaway-live-strip strong {
  color: #f8d44c;
}

.giveaway-module.is-winner .giveaway-live-strip,
.giveaway-module.is-winner .giveaway-live-strip strong {
  color: var(--accent);
}

.giveaway-headline,
.giveaway-state-panel {
  position: relative;
  z-index: 1;
}

.giveaway-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 7px;
  line-height: 1.35;
  text-transform: uppercase;
}

.giveaway-module h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(13px, 2vw, 18px);
  line-height: 1.18;
  text-transform: uppercase;
}

.giveaway-state-panel {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(20, 241, 149, 0.54);
  background: rgba(4, 10, 18, 0.68);
}

.giveaway-state-panel > strong {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.giveaway-module.is-locked .giveaway-state-panel {
  border-color: rgba(190, 92, 255, 0.62);
}

.giveaway-module.is-locked .giveaway-state-panel > strong {
  color: #be5cff;
}

.giveaway-module.is-entered .giveaway-state-panel {
  border-color: rgba(248, 212, 76, 0.6);
}

.giveaway-module.is-entered .giveaway-state-panel > strong {
  color: #f8d44c;
}

.giveaway-module.is-winner .giveaway-state-panel {
  border-color: rgba(20, 241, 149, 0.78);
  background:
    linear-gradient(90deg, rgba(20, 241, 149, 0.14), transparent 66%),
    rgba(4, 10, 18, 0.72);
}

.giveaway-module.is-winner .giveaway-state-panel > strong {
  color: var(--accent);
}

.giveaway-checklist {
  display: grid;
  gap: 5px;
}

.giveaway-checkline {
  margin: 0;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1.5;
}

.giveaway-checkline::before {
  content: '!';
  margin-right: 6px;
  color: #be5cff;
}

.giveaway-checkline.is-good {
  color: var(--text-secondary);
}

.giveaway-checkline.is-good::before {
  content: '✓';
  color: var(--accent);
}

.giveaway-requirements {
  margin-top: 3px;
  border-top: 1px solid rgba(78, 98, 129, 0.45);
  padding-top: 8px;
}

.giveaway-requirements summary {
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 7px;
  line-height: 1.45;
  text-transform: uppercase;
}

.giveaway-requirements summary:hover,
.giveaway-requirements summary:focus-visible {
  color: var(--accent);
  outline: none;
}

.giveaway-requirements ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.giveaway-requirements li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 7px;
  line-height: 1.35;
}

.giveaway-requirements li span {
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.giveaway-requirements li strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.giveaway-requirements li.is-met span,
.giveaway-requirements li.is-met strong {
  color: var(--accent);
}

.giveaway-requirements li.is-unmet span {
  color: #be5cff;
}

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

.giveaway-tweet-button {
  display: grid;
  min-height: 34px;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.giveaway-tweet-button.is-disabled {
  pointer-events: none;
  color: var(--text-tertiary);
  border-color: rgba(78, 98, 129, 0.7);
  box-shadow: none;
}

.giveaway-media-note {
  position: relative;
  z-index: 1;
  font-size: 7px;
  line-height: 1.55;
}

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

.giveaway-entry-row input,
.giveaway-entry-row .secondary-button {
  min-height: 36px;
  font-size: 8px;
}

.giveaway-entry-row .secondary-button {
  padding-inline: 12px;
}

.giveaway-claim-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20, 241, 149, 0.62);
  background: rgba(4, 10, 18, 0.58);
  padding: 10px;
}

.giveaway-claim-panel summary {
  color: var(--accent);
  cursor: pointer;
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.giveaway-claim-panel.is-submitted {
  display: grid;
  gap: 6px;
}

.giveaway-claim-panel.is-submitted strong {
  color: var(--accent);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.giveaway-claim-grid input,
.giveaway-claim-grid button {
  min-height: 36px;
  font-size: 8px;
}

.giveaway-claim-grid input:nth-child(3),
.giveaway-claim-grid input:nth-child(4),
.giveaway-claim-grid button {
  grid-column: 1 / -1;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 10px;
}

.milestone-card {
  position: relative;
  border: 1px solid rgba(78, 98, 129, 0.7);
  background: rgba(5, 10, 18, 0.54);
  min-height: 116px;
  padding: 12px 10px 10px;
  overflow: hidden;
}

.milestone-card i {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(78, 98, 129, 0.76);
  background: rgba(20, 28, 42, 0.7);
  box-shadow: inset 0 0 0 2px rgba(5, 10, 18, 0.7);
}

.milestone-card span {
  color: var(--accent);
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.milestone-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(14px, 1.7vw, 22px);
  line-height: 1.35;
  text-transform: uppercase;
}

.milestone-card em {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
  text-transform: uppercase;
}

.milestone-progress {
  height: 6px;
  margin-top: 12px;
  border: 1px solid rgba(78, 98, 129, 0.64);
  background: rgba(5, 10, 18, 0.82);
  overflow: hidden;
}

.milestone-progress b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(20, 241, 149, 0.72), var(--accent));
  box-shadow: 0 0 12px var(--theme-glow);
}

.milestone-card.is-complete {
  border-color: rgba(20, 241, 149, 0.84);
  box-shadow: inset 3px 0 0 rgba(20, 241, 149, 0.72);
}

.milestone-card.is-complete i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px var(--theme-glow);
}

.rarity-legend-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(78, 98, 129, 0.42);
  border-bottom: 1px solid rgba(78, 98, 129, 0.42);
  padding: 8px 2px;
}

.rarity-legend-strip > span {
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.legend-chip::before {
  content: '';
  display: block;
  width: 18px;
  height: 8px;
  border: 1px solid rgba(20, 241, 149, 0.82);
}

.legend-chip.rarity-common::before {
  border-color: rgba(20, 241, 149, 0.82);
}

.legend-chip.rarity-rare::before {
  border-color: rgba(190, 92, 255, 0.95);
  box-shadow: 0 0 12px rgba(190, 92, 255, 0.16);
}

.legend-chip.rarity-legendary::before {
  border-color: rgba(255, 199, 77, 0.96);
  box-shadow: 0 0 12px rgba(255, 199, 77, 0.16);
}

.legend-chip.rarity-mythic::before {
  border-color: rgba(255, 77, 154, 0.98);
  box-shadow: 0 0 12px rgba(255, 77, 154, 0.18);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.owned-assets-layout .asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.missing-assets-layout .asset-grid {
  grid-template-columns: repeat(auto-fill, 92px);
  align-content: start;
  align-items: start;
  justify-content: start;
}

.profile-download-note {
  margin: -4px 0 0;
  padding-inline: 2px;
}

.asset-card {
  appearance: none;
  position: relative;
  border: 1px solid rgba(20, 241, 149, 0.82);
  background: rgba(5, 10, 18, 0.74);
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  padding: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.asset-card:hover,
.asset-card:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(20, 241, 149, 0.14);
}

.asset-card.is-selected::after {
  content: 'active';
  position: absolute;
  left: 6px;
  bottom: 6px;
  border: 1px solid rgba(20, 241, 149, 0.8);
  background: rgba(5, 10, 18, 0.82);
  color: var(--accent);
  padding: 4px 5px;
  font-size: 7px;
  line-height: 1;
  text-transform: uppercase;
}

.locked-asset {
  cursor: default;
  opacity: 0.34;
  filter: grayscale(1);
}

.locked-asset::after {
  content: 'locked';
  position: absolute;
  left: 6px;
  bottom: 6px;
  border: 1px solid rgba(159, 178, 200, 0.48);
  background: rgba(5, 10, 18, 0.78);
  color: var(--text-secondary);
  padding: 4px 5px;
  font-size: 7px;
  line-height: 1;
  text-transform: uppercase;
}

.locked-asset:hover {
  transform: none;
  box-shadow: none;
}

.asset-card.rarity-common {
  border-color: rgba(20, 241, 149, 0.82);
}

.asset-card.rarity-rare {
  border-color: rgba(190, 92, 255, 0.95);
  box-shadow: 0 0 14px rgba(190, 92, 255, 0.18);
}

.asset-card.rarity-legendary {
  border-color: rgba(255, 199, 77, 0.96);
  box-shadow: 0 0 15px rgba(255, 199, 77, 0.18);
}

.asset-card.rarity-mythic {
  border-color: rgba(255, 77, 154, 0.98);
  box-shadow:
    0 0 14px rgba(255, 77, 154, 0.22),
    0 0 24px rgba(20, 241, 149, 0.08);
}

.asset-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.1), transparent 48%),
    rgba(20, 28, 42, 0.56);
  box-shadow: none;
  overflow: hidden;
}

.asset-card.rarity-rare .asset-art {
  box-shadow: inset 0 0 24px rgba(190, 92, 255, 0.06);
}

.asset-card.rarity-legendary .asset-art {
  box-shadow: inset 0 0 24px rgba(255, 199, 77, 0.07);
}

.asset-card.rarity-mythic .asset-art {
  box-shadow: inset 0 0 26px rgba(255, 77, 154, 0.08);
}

.asset-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.asset-card-empty {
  color: var(--text-tertiary);
  font-size: 10px;
}

.asset-action-sheet[hidden] {
  display: none;
}

.asset-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.asset-action-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 2, 7, 0.72);
}

.asset-action-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(78, 98, 129, 0.92);
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.08), transparent 48%),
    rgba(5, 10, 18, 0.96);
  padding: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.asset-action-preview {
  width: min(100%, 300px, 38svh);
  height: auto;
  min-height: 0;
  justify-self: center;
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 241, 149, 0.82);
  background: rgba(20, 28, 42, 0.62);
  overflow: hidden;
}

.asset-action-preview.rarity-rare {
  border-color: rgba(190, 92, 255, 0.95);
  box-shadow: 0 0 14px rgba(190, 92, 255, 0.16);
}

.asset-action-preview.rarity-legendary {
  border-color: rgba(255, 199, 77, 0.96);
  box-shadow: 0 0 14px rgba(255, 199, 77, 0.16);
}

.asset-action-preview.rarity-mythic {
  border-color: rgba(255, 77, 154, 0.98);
  box-shadow: 0 0 14px rgba(255, 77, 154, 0.18);
}

.asset-action-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.asset-action-copy {
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.asset-action-copy span {
  color: var(--accent);
  font-size: 9px;
  text-transform: uppercase;
}

.asset-action-copy h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: clamp(16px, 4vw, 28px);
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.asset-action-buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-action-buttons [hidden] {
  display: none !important;
}

.asset-action-buttons .secondary-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.ghost-button {
  border-color: rgba(78, 98, 129, 0.78);
  color: var(--text-secondary);
  box-shadow: none;
}

.rarity-rare .asset-meta span {
  color: var(--accent);
}

.rarity-legendary .asset-meta span {
  color: #ffc74d;
}

.rarity-mythic .asset-meta span {
  color: #ff4d9a;
}

.asset-meta {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.asset-meta strong {
  color: var(--text-primary);
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.asset-meta a,
.asset-meta span:last-child {
  color: var(--accent);
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .profile-stat-strip {
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 820px) {
  body {
    min-height: 100svh;
  }

  body:not(.is-allowed) #wallet-connect-button {
    display: none;
  }

  .app-topbar {
    align-items: flex-start;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) 10px 0;
  }

  .wallet-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 6px;
    max-width: 58vw;
  }

  .wallet-button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .profile-header-share-button {
    width: 34px;
    min-width: 34px;
  }

  .profile-header-share-button svg {
    width: 16px;
    height: 16px;
  }

  body.is-allowed .brand-link img {
    width: min(128px, 34vw);
  }

  .app-shell {
    width: min(100vw - 20px, 1480px);
    padding-top: 104px;
  }

  .profile-first-shell {
    width: 100%;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .locked-gateway {
    width: min(100vw - 20px, 560px);
    padding: clamp(58px, 8svh, 82px) 0 max(18px, env(safe-area-inset-bottom));
  }

  .locked-gateway-copy {
    min-height: min(760px, calc(100svh - 130px));
    align-content: stretch;
    gap: clamp(14px, 2.4svh, 22px);
    padding: clamp(14px, 3.4vw, 20px);
  }

  .locked-gateway-copy > strong {
    font-size: clamp(30px, 10vw, 46px);
  }

  .locked-profile-mock {
    min-height: clamp(260px, 42svh, 360px);
  }

  .locked-mock-identity {
    align-items: center;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .locked-mock-avatar {
    width: clamp(68px, 20vw, 82px);
  }

  .locked-mock-name strong {
    font-size: clamp(18px, 6.5vw, 28px);
  }

  .locked-gateway-copy p {
    font-size: 9px;
    line-height: 1.55;
  }

  .locked-access-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    font-size: 8px;
    line-height: 1.45;
  }

  .locked-access-list span {
    font-size: 8px;
  }

  .locked-connect-button {
    justify-self: stretch;
    min-height: 54px;
    font-size: 8px;
    margin-top: auto;
  }

  .profile-workspace {
    width: 100%;
  }

  .profile-banner {
    height: clamp(390px, 56svh, 500px);
  }

  .locked-profile-body,
  .module-title {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-main-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    padding: 48px 12px 14px;
  }

  .profile-main-row .profile-avatar {
    width: clamp(76px, 22vw, 92px);
  }

  .profile-identity h2 {
    max-width: calc(100vw - 112px);
    font-size: clamp(19px, 6.3vw, 32px);
    letter-spacing: 0.03em;
  }

  .profile-badge {
    grid-column: 1 / -1;
    margin-left: 96px;
  }

  .locked-profile-body {
    display: flex;
  }

  .profile-quick-grid,
  .profile-layout,
  .profile-dashboard-grid,
  .owned-assets-layout {
    grid-template-columns: 1fr;
  }

  .profile-side-stack {
    grid-template-columns: 1fr;
  }

  .profile-actions-grid .profile-side-stack {
    grid-template-columns: 1fr;
  }

  .companion-feature-grid {
    grid-template-columns: 1fr;
  }

  .completion-hero {
    grid-template-columns: 1fr;
  }

  .collection-tracker-grid {
    grid-template-columns: 1fr;
  }

  .collection-hub .completion-breakdown {
    justify-content: start;
  }

  .collection-hub .completion-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .completion-meter {
    width: 132px;
  }

  .profile-stat-strip {
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    padding-bottom: 1px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .profile-stat-strip article,
  .profile-stat-strip article:nth-child(3n) {
    min-width: 118px;
    border-right: 1px solid rgba(78, 98, 129, 0.54);
    border-bottom: 0;
    padding: 12px 10px;
    scroll-snap-align: start;
  }

  .profile-stat-strip span {
    font-size: 7px;
  }

  .profile-stat-strip strong {
    margin-top: 8px;
    font-size: clamp(12px, 4.6vw, 18px);
  }

  .profile-stat-strip article:last-child {
    border-right: 0;
  }

  .module-title strong {
    text-align: left;
  }

  .profile-badge {
    width: fit-content;
  }

  .profile-module {
    gap: 12px;
    padding: 14px 12px;
  }

  .collection-hub {
    padding: 14px 10px;
  }

  .asset-browser-tabs {
    width: 100%;
  }

  .asset-tab {
    min-width: 0;
    width: 50%;
    min-height: 40px;
    font-size: 8px;
  }

  .owned-assets-layout .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
  }

  .missing-assets-layout .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
  }

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

  .rarity-legend-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .rarity-legend {
    justify-content: flex-start;
  }

  .referral-strip {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.75fr) auto;
    gap: 8px;
    padding: 8px 0;
  }

  .referral-strip .referral-code-row {
    grid-column: auto;
  }

  .referral-code-row {
    grid-template-columns: auto;
  }

  .referral-code-row code {
    display: none;
  }

  .referral-code-row .secondary-button {
    min-width: 58px;
    min-height: 32px;
    padding-inline: 10px;
  }

  .giveaway-actions,
  .giveaway-entry-row {
    grid-template-columns: 1fr;
  }

  .asset-card:hover {
    transform: none;
  }

  .asset-action-sheet {
    place-items: end center;
    padding: 8px;
  }

  .asset-action-panel {
    width: min(100%, 520px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .asset-action-buttons {
    grid-template-columns: 1fr;
  }

  .asset-action-buttons .secondary-button {
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .brand-link img {
    width: min(124px, 36vw);
  }

  .wallet-actions {
    gap: 5px;
    max-width: 62vw;
  }

  .wallet-button {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 7px;
  }

  .profile-header-share-button {
    width: 32px;
    min-width: 32px;
  }

  .locked-gateway {
    width: calc(100vw - 16px);
    padding-top: clamp(48px, 7svh, 70px);
  }

  .locked-gateway-copy {
    min-height: min(730px, calc(100svh - 118px));
    padding: 12px;
  }

  .locked-profile-mock {
    min-height: clamp(248px, 40svh, 330px);
  }

  .locked-mock-name strong {
    font-size: clamp(17px, 6vw, 24px);
  }

  .locked-access-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-banner {
    height: clamp(372px, 55svh, 470px);
  }

  .profile-main-row {
    padding: 44px 8px 12px;
  }

  .profile-identity h2 {
    max-width: calc(100vw - 98px);
    font-size: clamp(18px, 6vw, 28px);
  }

  .profile-stat-strip {
    grid-template-columns: repeat(7, minmax(108px, 1fr));
  }

  .profile-stat-strip article,
  .profile-stat-strip article:nth-child(3n) {
    min-width: 108px;
  }

  .mini-profile-bar {
    top: 6px;
    width: calc(100vw - 12px);
    gap: 8px;
    padding: 7px 8px;
  }

  .mini-profile-id strong,
  .mini-profile-stats span {
    font-size: 7px;
  }

  .mini-profile-stats {
    gap: 6px;
  }

  .mini-profile-stats span:nth-child(2) {
    display: none;
  }

  .owned-assets-layout .asset-grid,
  .missing-assets-layout .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 6px;
  }

  .asset-card.is-selected::after,
  .locked-asset::after {
    left: 4px;
    bottom: 4px;
    padding: 3px 4px;
    font-size: 6px;
  }

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

  .referral-strip-label,
  .referral-strip-stat {
    min-width: 0;
  }

  .giveaway-state-panel {
    padding: 10px;
  }

  .giveaway-requirements li strong {
    white-space: normal;
  }
}

/* Solana Seeker renders a 1200px-wide display at roughly 400 CSS pixels in
   portrait. Keep the profile readable and thumb-friendly at that real-world
   viewport instead of carrying desktop's horizontal stat rail into mobile. */
@media (max-width: 480px) and (orientation: portrait) {
  html,
  body,
  .profile-first-shell,
  .locked-profile-card {
    min-height: 100dvh;
  }

  .app-topbar {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      0
      max(10px, env(safe-area-inset-left));
  }

  .wallet-actions {
    max-width: 64vw;
  }

  .wallet-button,
  .profile-header-share-button {
    min-height: 44px;
  }

  .profile-header-share-button {
    width: 44px;
    min-width: 44px;
  }

  .locked-gateway {
    padding-top: max(66px, calc(env(safe-area-inset-top) + 48px));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .locked-gateway-copy {
    min-height: min(760px, calc(100dvh - 118px));
  }

  .profile-banner {
    height: clamp(304px, 42dvh, 374px);
  }

  .profile-main-row {
    padding: 44px 12px 14px;
  }

  .profile-main-row .profile-avatar {
    width: clamp(76px, 22vw, 92px);
  }

  .profile-identity h2 {
    max-width: calc(100vw - 116px);
    font-size: clamp(18px, 6.2vw, 27px);
  }

  .profile-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior: auto;
    scroll-snap-type: none;
  }

  .profile-stat-strip article,
  .profile-stat-strip article:nth-child(3n) {
    min-width: 0;
    min-height: 74px;
    border-right: 1px solid rgba(78, 98, 129, 0.54);
    border-bottom: 1px solid rgba(78, 98, 129, 0.54);
    padding: 12px;
  }

  .profile-stat-strip article:nth-child(2n) {
    border-right: 0;
  }

  .profile-stat-strip article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .profile-stat-strip span {
    font-size: 8px;
  }

  .profile-stat-strip strong {
    margin-top: 9px;
    font-size: clamp(14px, 5vw, 18px);
  }

  .mini-profile-bar {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 8px 10px;
    backdrop-filter: none;
  }

  .referral-strip {
    gap: 10px;
    padding: 12px 10px;
  }

  .referral-code-row .secondary-button {
    min-width: 64px;
    min-height: 44px;
  }

  .asset-tab {
    min-height: 44px;
  }

  .owned-assets-layout .asset-grid,
  .missing-assets-layout .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
  }

  .asset-action-sheet {
    padding:
      8px
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .asset-action-buttons .secondary-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Companion utility text: keep the pixel identity on headings and artwork. */
:root { --app-ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-feedback[hidden], .desktop-auth-qr[hidden] { display: none; }
.app-feedback {
  position: fixed;
  z-index: 40;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--accent);
  background: #0a1520;
  box-shadow: 0 12px 40px #0009;
  font: 15px/1.5 var(--app-ui-font);
  text-transform: none;
}
.app-feedback > div { flex: 1; min-width: 0; }
.app-feedback strong { color: var(--text-primary); }
.app-feedback p { margin: 4px 0 0; color: #c1cddd; overflow-wrap: anywhere; }
.app-feedback button { min-width: 44px; min-height: 44px; color: var(--accent); background: transparent; border: 1px solid var(--stroke-strong); cursor: pointer; }
.app-feedback[data-kind="is-error"] { border-color: var(--danger); }
.app-feedback[data-kind="busy"] strong::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--stroke); border-top-color: var(--accent); border-radius: 50%; animation: app-spin 1s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
body.qr-modal-open { overflow: hidden; }
.desktop-auth-modal { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.desktop-auth-panel { margin: auto; max-width: 460px; padding-top: 52px; }
.desktop-auth-heading p, .desktop-auth-status, .desktop-auth-countdown,
.desktop-auth-steps li, .desktop-auth-actions button { font: 15px/1.5 var(--app-ui-font); letter-spacing: normal; text-transform: none; }
.desktop-auth-heading h2 { line-height: 1.6; }
.desktop-auth-countdown { margin: 0; min-height: 23px; color: #b9c8da; font-variant-numeric: tabular-nums; }
.desktop-auth-status { min-height: 46px; color: #d1dbea; }
.desktop-auth-steps { width: 100%; gap: 8px; }
.desktop-auth-steps li { color: #97a8be; }
.desktop-auth-steps li[aria-current="step"] { color: white; font-weight: 700; }
.desktop-auth-steps li.is-complete { color: var(--accent); }
.desktop-auth-steps li.is-complete span::after { content: ' ✓'; }
.desktop-auth-qr { min-width: 218px; min-height: 218px; }
.desktop-auth-qr[aria-busy="true"] { display: grid; place-items: center; background: #0a1520; }
.desktop-auth-qr[aria-busy="true"]::after { content: ''; width: 32px; height: 32px; border: 3px solid var(--stroke); border-top-color: var(--accent); border-radius: 50%; animation: app-spin 1s linear infinite; }
.desktop-auth-panel button { min-height: 44px; min-width: 44px; }
.desktop-auth-actions { flex-wrap: wrap; }
button:disabled { cursor: default; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.desktop-auth-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.desktop-auth-modal[data-stage="error"] .desktop-auth-status,
.desktop-auth-modal[data-stage="expired"] .desktop-auth-status { color: #ffb4c6; }
.desktop-auth-modal[data-stage="success"] .desktop-auth-status { color: var(--accent); }
@media (max-width: 820px) {
  .locked-gateway-copy > p, .locked-access-list li, .module-note, .completion-copy p,
  .giveaway-checkline, .giveaway-state-panel p, .giveaway-claim-panel p,
  .giveaway-requirements summary, .milestone-card em, .asset-card-empty,
  .profile-side-stack .rank-module .module-note {
    font: 15px/1.5 var(--app-ui-font); letter-spacing: normal; text-transform: none;
  }
  .wallet-button, .locked-connect-button, .secondary-button, .asset-tab,
  .asset-action-buttons .secondary-button, .giveaway-claim-grid button {
    font: 600 14px/1.4 var(--app-ui-font); min-height: 44px; letter-spacing: normal;
  }
  .profile-stat-strip span, .mini-profile-stats span, .referral-strip-label span, .referral-strip-stat span,
  .completion-badges small, .milestone-card span, .asset-action-copy span,
  .asset-meta span, .desktop-auth-trigger-button small {
    font: 13px/1.4 var(--app-ui-font); letter-spacing: normal;
  }
  .giveaway-claim-grid input, .giveaway-entry-row input, input {
    font: 16px/1.5 var(--app-ui-font); min-height: 44px;
  }
  .referral-code-row code { font: 14px/1.5 var(--app-ui-font); min-height: 44px; }
  .asset-action-panel { max-height: calc(100dvh - 36px); overflow-y: auto; }
  .app-feedback { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .app-feedback[data-kind="busy"] strong::before, .desktop-auth-qr[aria-busy="true"]::after { animation: none; }
}

.asset-action-feedback { grid-column: 1 / -1; margin: 0; font: 15px/1.5 var(--app-ui-font); color: #c1cddd; text-transform: none; }
.asset-action-feedback:empty { display: none; }
.asset-action-feedback[data-kind="is-error"] { color: #ffb4c6; }
.asset-card-empty { grid-column: 1 / -1; }

button[aria-busy="true"] { cursor: wait; }

/* Seeker-first companion: clear next action, compact progress, reachable navigation. */
.profile-more-stats, .milestone-details, .collection-legend { min-width: 0; }
.profile-more-stats summary, .milestone-details summary, .collection-legend summary {
  cursor: pointer; min-height: 48px; padding: 14px 16px; color: var(--text-primary);
  font: 600 15px/1.4 var(--app-ui-font); text-transform: none;
}
.profile-more-stats summary span, .milestone-details summary span { margin-left: 8px; color: #a6b8ce; font-weight: 400; font-size: 13px; }
.profile-extra-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--stroke); }
.profile-extra-stats article { padding: 16px; min-width: 0; }
.profile-extra-stats span { display: block; color: #b9c8da; font: 13px/1.5 var(--app-ui-font); }
.profile-extra-stats strong { display: block; margin-top: 6px; color: var(--accent); font: 16px/1.5 'Dogica Pixel Bold', monospace; overflow-wrap: anywhere; }
.profile-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.profile-tools { display: flex; padding: 0 16px 16px; gap: 10px; flex-wrap: wrap; }
.profile-tools a, .profile-tools button {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex: 1; min-height: 48px;
  border: 1px solid var(--stroke-strong); background: #0a1520; color: #d5e0ed;
  padding: 10px 12px; text-decoration: none; font: 600 14px/1.4 var(--app-ui-font); cursor: pointer;
}
.profile-tools a { color: var(--accent); border-color: #228763; background: #0c241e; }
.new-player-note { margin: 0; padding: 0 16px 16px; color: #c1cddd; font: 15px/1.5 var(--app-ui-font); }
.progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.progress-heading h2, .collection-tracker h2, .collection-intro h2 { margin: 0; font: 12px/1.6 'Dogica Pixel Bold', monospace; color: var(--text-primary); }
.achievement-count { padding: 6px 9px; border: 1px solid #5b502b; background: #231f13; color: #f8d783; font: 600 13px/1.4 var(--app-ui-font); }
.next-goal { border: 1px solid #247657; padding: 18px; background: linear-gradient(115deg, #0d2e26, #09131e 85%); box-shadow: inset 3px 0 var(--accent); }
.goal-eyebrow { font: 600 12px/1.5 var(--app-ui-font); color: #b6d9cc; text-transform: uppercase; letter-spacing: .08em; }
.next-goal h3 { margin: 12px 0; color: var(--accent); font: clamp(20px, 5vw, 30px)/1.5 'Dogica Pixel Bold', monospace; overflow-wrap: anywhere; }
.next-goal h3 span { display: inline-block; color: #ecf5f1; font: 12px/1.7 'Dogica Pixel Bold', monospace; }
.next-goal p, .progress-note, .collection-instruction, .collection-intro p { margin: 0; color: #b9c8da; font: 15px/1.5 var(--app-ui-font); text-transform: none; }
.goal-meter { height: 10px; background: #020b0d; border: 1px solid #315548; margin-top: 16px; overflow: hidden; }
.goal-meter span { display: block; height: 100%; background: var(--accent); }
.goal-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: #b6d9cc; font: 13px/1.4 var(--app-ui-font); }
.milestone-details { border: 1px solid var(--stroke); background: #080f19; }
.milestone-details summary { padding: 14px; }
.milestone-details .milestone-grid { padding: 0 12px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.milestone-details .milestone-card { min-height: 0; padding: 14px; }
.milestone-details .milestone-card strong { font: 600 17px/1.5 var(--app-ui-font); text-transform: none; }
.milestone-details .milestone-card > span { font: 600 13px/1.4 var(--app-ui-font); }
.earned-tier { color: #f8d783; font: 13px/1.5 var(--app-ui-font); margin: 10px 0 0; }
.tier-ladder { color: #a6b8ce; font: 12px/1.6 var(--app-ui-font); margin: 6px 0 0; }
.progress-note { padding: 0 14px 14px; font-size: 13px; }
.collection-tracker .module-title { flex-direction: row; align-items: center; flex-wrap: wrap; }
.collection-tracker .module-title strong { font: 600 14px/1.4 var(--app-ui-font); color: #b9c8da; text-transform: none; }
.collection-hub .collection-tracker-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.collection-hub .completion-copy h3 { font-size: clamp(14px, 3.6vw, 23px); line-height: 1.5; margin: 0 0 8px; }
.collection-hub .completion-meter { width: 94px; aspect-ratio: 1; min-height: 0; padding: 12px; gap: 0; box-shadow: none; }
.collection-hub .completion-meter strong { font-size: 23px; }
.collection-hub .completion-meter span { font: 12px/1.4 var(--app-ui-font); }
.collection-hub .completion-breakdown { grid-column: 1 / -1; }
.collection-hub .progress-track { height: 8px; }
.collection-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.collection-filters button { flex: 1; min-height: 44px; padding: 8px 10px; border: 1px solid var(--stroke); color: #b9c8da; background: #08111b; font: 600 14px/1.4 var(--app-ui-font); cursor: pointer; }
.collection-filters button[aria-pressed="true"] { color: var(--accent); border-color: #228763; background: #0d281f; }
.collection-search { color: #b9c8da; font: 13px/1.5 var(--app-ui-font); text-transform: none; }
.collection-search { font: 16px/1.5 var(--app-ui-font); }
.collection-results, .collection-no-results { margin: 0; font: 14px/1.5 var(--app-ui-font); color: #b9c8da; }
.collection-no-results { padding: 20px 0; }
.asset-module[hidden], .asset-card[hidden], .collection-no-results[hidden] { display: none; }
.asset-card { aspect-ratio: 1; grid-template-rows: minmax(0, 1fr); text-align: left; }
.asset-art { aspect-ratio: auto; height: 100%; min-height: 0; }
.asset-card.is-selected::after, .locked-asset::after { content: none; }
.locked-asset { opacity: 1; filter: none; border-color: #425166; }
.locked-asset .asset-art { opacity: .55; filter: grayscale(.65); }
.asset-grid > .module-note { grid-column: 1 / -1; }
.collection-hub .owned-assets-layout .asset-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.collection-legend summary { padding-inline: 0; }
.companion-nav { display: none; }
#companion-profile, #companion-progress, #companion-collection { scroll-margin-top: 80px; }
body.asset-sheet-open { overflow: hidden; }
@media (max-width: 820px) {
  body.is-allowed #wallet-connect-button, body.is-allowed #mock-wallet-button { display: none; }
  .profile-first-shell:has(.companion-nav) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .profile-banner { height: clamp(230px, 30svh, 280px); }
  .profile-main-row { gap: 12px; padding: 44px 16px 18px; }
  .profile-main-row .profile-avatar { width: 72px; }
  .profile-identity h2 { max-width: calc(100vw - 116px); font-size: clamp(16px, 4.7vw, 24px); line-height: 1.4; margin-top: 5px; letter-spacing: 0; }
  .profile-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-stat-strip article, .profile-stat-strip article:nth-child(3n), .profile-stat-strip article:last-child {
    grid-column: auto; min-width: 0; min-height: 86px; padding: 14px 12px; border-bottom: 1px solid var(--stroke); border-right: 1px solid var(--stroke);
  }
  .profile-stat-strip article:last-child { border-right: 0; }
  .profile-stat-strip strong { font-size: clamp(13px, 3.8vw, 18px); line-height: 1.5; margin-top: 6px; }
  .profile-extra-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-extra-stats article { padding: 12px 16px; }
  .profile-tools { gap: 8px; }
  .profile-tools a, .profile-tools button { font-size: 14px; padding-inline: 8px; gap: 8px; }
  .mini-profile-bar { display: none; }
  .milestone-module { padding: 18px 16px; }
  .milestone-details .milestone-grid { grid-template-columns: 1fr; }
  .profile-more-stats summary span, .milestone-details summary span { font-size: 12px; }
  .referral-strip { grid-template-columns: 1fr 1fr; padding: 16px; }
  .referral-strip .referral-code-row { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .referral-code-row code { display: flex; }
  .collection-hub { padding: 18px 16px; }
  .collection-hub .completion-badges { gap: 6px; }
  .completion-badges span { min-width: 0; padding: 8px; }
  .collection-hub .completion-badges strong { font-size: 13px; }
  .collection-hub .asset-module { padding: 12px 0; }
  .collection-hub .asset-module .module-title { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .collection-hub .asset-module .module-title span { font: 12px/1.5 var(--app-ui-font); }
  .collection-hub .asset-module .module-title strong { font-size: 11px; line-height: 1.5; }
  .collection-hub .owned-assets-layout .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .companion-nav {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; z-index: 20;
    bottom: 0; left: 0; right: 0; padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #38506a; background: #07101bf7; box-shadow: 0 -8px 24px #0005;
  }
  .companion-nav a { display: grid; place-items: center; gap: 4px; min-height: 54px; padding: 6px; color: #a6b8ce; font: 600 13px/1.3 var(--app-ui-font); text-decoration: none; border-top: 2px solid transparent; }
  .companion-nav a[aria-current] { color: var(--accent); border-color: var(--accent); background: #10261f; }
  .companion-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  body.is-allowed .app-feedback { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.asset-sheet-open .companion-nav { visibility: hidden; }
  #companion-profile, #companion-progress, #companion-collection { scroll-margin-top: 12px; }
  .locked-profile-mock { min-height: clamp(180px, 27svh, 250px); }
  .locked-gateway-copy { min-height: 0; }
}

.profile-stat-strip .rank-pending { font: 600 14px/1.5 var(--app-ui-font); text-transform: none; overflow-wrap: normal; }
.referral-strip[hidden] { display: none; }

/* Pixel headings carry the game identity; supporting text stays readable. */
.profile-stat-strip article > span, .profile-extra-stats article > span {
  font: 9px/1.7 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  letter-spacing: normal;
}
#profile-workspace h2, #profile-workspace h3, .desktop-auth-heading h2 {
  font-family: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
}
.profile-more-stats summary, .milestone-details summary, .collection-legend summary,
.collection-stats summary {
  font: 11px/1.7 'Dogica Pixel Bold', monospace;
  min-height: 48px;
}
.profile-more-stats summary span, .milestone-details summary span, .collection-stats summary span {
  font: 13px/1.5 var(--app-ui-font);
}
.milestone-details .milestone-card h3, .collection-hub .asset-module h3 {
  margin: 0; color: var(--text-primary); font-size: 11px; line-height: 1.7;
  letter-spacing: normal; overflow-wrap: anywhere;
}
.milestone-details .milestone-card h3 { margin-bottom: 10px; }
.asset-action-copy h3 { line-height: 1.6; font-size: clamp(14px, 3.5vw, 22px); }
.asset-action-copy p { margin: 0; color: #b9c8da; font: 14px/1.5 var(--app-ui-font); }
.asset-action-copy span { font: 13px/1.5 var(--app-ui-font); }
.asset-action-preview img { object-fit: contain; }
.locked-asset { cursor: pointer; }
.locked-asset:hover .asset-art, .locked-asset:focus-visible .asset-art { opacity: 1; filter: none; }
.collection-hub, .collection-tracker, .collection-hub .asset-browser { gap: 12px; }
.collection-stats { border-bottom: 1px solid var(--stroke); }
.collection-stats summary { cursor: pointer; padding: 12px 0; color: #d5e0ed; }
.collection-stats summary span { float: right; margin-left: 8px; color: var(--accent); }
.collection-stats .progress-track { margin: 12px 0; }
.collection-hub .asset-module .module-title { padding-top: 0; gap: 8px; }
.collection-hub .asset-module .module-title span { font: 13px/1.5 var(--app-ui-font); }
.collection-hub .asset-module { gap: 12px; }
.collection-hub .asset-module .module-title h3 { flex: 1; }
@media (max-width: 820px) {
  .collection-hub .asset-module { padding: 0; }
  .collection-hub .collection-tracker .module-title { gap: 6px; }
  .collection-tracker .module-title strong { font-size: 13px; }
  .collection-hub .completion-copy { min-height: 0; }
}
.asset-action-sheet.is-world .asset-action-panel { grid-template-columns: minmax(0, 1fr); }
.asset-action-sheet.is-world .asset-action-preview {
  width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9;
  grid-template-rows: minmax(0, 1fr);
}
.referral-strip-label > span { font: 11px/1.7 'Dogica Pixel Bold', monospace; }

/* Collection album: existing square art and rarity frames, fixed page positions. */
.collection-binder { display: grid; gap: 12px; }
.binder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; touch-action: pan-y; padding: 8px; border: 1px solid var(--stroke); background: #050d16; }
.binder-grid.is-complete { border-color: #cda956; box-shadow: inset 0 0 18px #d4ad4914; }
.binder-spacer, .binder-unavailable { aspect-ratio: 1; min-width: 0; }
.binder-spacer { visibility: hidden; }
.binder-unavailable { display: grid; place-items: center; color: #8190a1; border: 1px dashed #334155; }
.binder-grid .locked-asset .asset-art { opacity: .22; filter: grayscale(1) brightness(.65); }
.binder-grid .locked-asset:hover .asset-art, .binder-grid .locked-asset:focus-visible .asset-art { opacity: .42; }
.binder-grid .search-dimmed { opacity: .3; }
.binder-grid .asset-card { touch-action: pan-y; }
.binder-pagination { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; text-align: center; }
.binder-pagination button { min-height: 48px; background: #0c1c2c; color: var(--accent); border: 1px solid var(--stroke-strong); font: 22px var(--app-ui-font); cursor: pointer; }
.binder-pagination span { font: 14px/1.5 var(--app-ui-font); color: #d7e2ef; }
.binder-grid .rarity-mythic:not(.locked-asset)::before { content: ''; position: absolute; z-index: 1; pointer-events: none; inset: 0; background: linear-gradient(125deg, transparent 20%, #ed80fa22 40%, #7bf5ed22 50%, transparent 65%); }
.asset-reveal-heading, .asset-reveal-navigation, .asset-reveal-completion { grid-column: 1 / -1; }
.asset-reveal-heading[hidden], .asset-reveal-navigation[hidden] { display: none; }
.asset-reveal-heading h2 { font-size: 12px; line-height: 1.7; margin: 0 0 6px; color: #f6d48d; }
.asset-reveal-heading p { margin: 0; color: #b9c8da; font: 14px/1.5 var(--app-ui-font); }
.asset-reveal-navigation { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.asset-reveal-navigation button { min-height: 48px; }
#asset-reveal-view { grid-column: 1 / -1; }
.asset-reveal-completion { color: #f6d48d; font: 14px/1.5 var(--app-ui-font); margin: 0; }
.asset-reveal-completion:empty { display: none; }
.asset-action-sheet.is-reveal .asset-action-panel { grid-template-columns: minmax(0, 1fr); touch-action: pan-y; }
.asset-action-sheet.is-reveal.is-world .asset-action-preview { width: 100%; aspect-ratio: 16 / 9; }
.asset-action-copy { text-align: center; }
.asset-action-sheet.is-world .asset-action-copy { text-align: left; }
.asset-action-panel { max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; }
.asset-action-sheet.is-reveal .asset-action-copy h3 { font-size: clamp(14px, 3vw, 20px); }
.asset-action-sheet.is-reveal .asset-action-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-action-sheet.is-mythic .asset-action-preview { position: relative; }
.asset-action-sheet.is-mythic .asset-action-preview::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 25%, #fd84ef80 39%, #c8ffffb3 48%, #92b8ff80 56%, transparent 70%), linear-gradient(145deg, #e264ed26, transparent 45%, #55ede626);
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  mix-blend-mode: screen;
  animation: collectible-holo 5s ease-in-out infinite;
}
.reveal-enter .asset-action-preview { animation: collectible-reveal .5s ease-out; }
@keyframes collectible-reveal { from { opacity: .15; transform: scale(.92); filter: brightness(.4); } to { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes collectible-holo { 0%, 15% { background-position: 150% 0, 0 0; } 75%, 100% { background-position: -100% 0, 0 0; } }

@media (prefers-reduced-motion: reduce) { .reveal-enter .asset-action-preview, .asset-action-sheet.is-mythic .asset-action-preview::after { animation: none; } }
.binder-grid.is-newly-complete { animation: collection-complete 1.1s ease-out 2; }
@keyframes collection-complete { 50% { box-shadow: inset 0 0 24px #d4ad4933, 0 0 18px #d4ad4933; } }
@media (prefers-reduced-motion: reduce) { .binder-grid.is-newly-complete { animation: none; } }

@media (prefers-reduced-motion: reduce) { .asset-action-sheet.is-mythic .asset-action-preview::after { background-position: 50% 0, 0 0; } }

.binder-controls, .binder-page { display: contents; }
.binder-category-count { display: none; }
/* Desktop collection workspace: navigation beside a complete, comfortably sized page. */
@media (min-width: 821px) {
  .collection-hub {
    width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: 'title title' 'controls page' 'note page' 'stats page' 'legend page';
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 16px;
    align-items: start;
    padding: 28px;
  }
  .collection-hub .collection-tracker, .collection-binder { display: contents; }
  .collection-hub .collection-tracker > .module-title, .collection-hub .collection-intro { grid-area: title; }
  .collection-hub .collection-tracker > .module-title { margin-bottom: 4px; padding-bottom: 18px; }
  .collection-hub .collection-tracker h2, .collection-hub .collection-intro h2 { font-size: 16px; }
  .binder-controls { grid-area: controls; display: grid; gap: 16px; min-width: 0; }
  .binder-controls .collection-filters { display: grid; gap: 8px; }
  .binder-controls .collection-filters button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; min-height: 52px; text-align: left; }
  .binder-category-count { display: inline; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; color: #a6b8ce; }
  .binder-controls [aria-pressed='true'] .binder-category-count { color: var(--accent); }
  .binder-controls #collection-search { width: 100%; min-width: 0; font: 15px/1.5 var(--app-ui-font); min-height: 48px; }
  .binder-page { grid-area: page; display: grid; gap: 12px; width: min(100%, clamp(340px, 58vh, 540px)); justify-self: center; min-width: 0; }
  .binder-page #binder-status { padding-bottom: 4px; font-size: 15px; }
  .binder-page .binder-grid { gap: 10px; padding: 10px; }
  .binder-page .binder-pagination { grid-template-columns: 44px 1fr 44px; }
  .binder-page .binder-pagination button { min-height: 44px; }
  #binder-note { grid-area: note; font-size: 13px; line-height: 1.6; }
  .collection-hub .collection-stats { grid-area: stats; margin: 0; min-width: 0; }
  .collection-hub .collection-legend { grid-area: legend; margin: 0; min-width: 0; border-bottom: 1px solid var(--stroke); }
  .collection-hub .collection-stats summary, .collection-hub .collection-legend summary { font-size: 10px; }
  .collection-hub .collection-stats summary span { font-size: 12px; }
  .collection-hub .collection-tracker-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .collection-hub .completion-copy { min-height: 0; padding: 8px 0; }
  .collection-hub .completion-copy h3 { font-size: 14px; letter-spacing: normal; }
  .collection-hub .completion-copy p { font: 14px/1.5 var(--app-ui-font); }
  .collection-hub .completion-meter { width: 100%; aspect-ratio: auto; min-height: 0; display: flex; align-items: baseline; gap: 12px; }
  .collection-hub .completion-meter span { margin: 0; }
  .collection-hub .completion-badges { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .collection-hub .completion-badges > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px; }
  .collection-hub .completion-badges i { grid-column: 1 / -1; }
  .collection-hub .completion-badges small { font: 13px/1.5 var(--app-ui-font); }
  .collection-hub .completion-badges strong { font-size: 12px; }
  .collection-hub .rarity-legend-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .collection-hub .rarity-legend { justify-content: flex-start; }
}

/* Keep sign-in hidden from the first paint until the saved session is checked. */
body.is-starting .wallet-actions, #profile-workspace[hidden], #app-startup[hidden] { display: none; }
.app-startup {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
  text-align: center;
}
.app-startup h1 { margin: 0; font: 12px/1.8 'Dogica Pixel Bold', 'Dogica Pixel', monospace; color: var(--accent); text-transform: uppercase; }
.app-startup p { margin: 12px 0 0; font: 15px/1.6 var(--app-ui-font); color: #b9c8da; }
.app-startup-indicator { display: block; width: 166px; height: 122px; }
.app-startup-indicator img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.app-startup[data-state='error'] .app-startup-indicator, .app-startup[data-state='closed'] .app-startup-indicator { display: none; }
#app-startup-retry[hidden] { display: none; }
body.is-starting .profile-first-shell { min-height: 100dvh; padding: 0; }
.asset-action-copy .asset-first-available { margin-top: 8px; color: #d5e0ed; }
.asset-first-available[hidden] { display: none; }
