/* WL Connect Kit — minimalist */

:root {
  --wl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wl-bg-primary: #ffffff;
  --wl-bg-secondary: #fafafa;
  --wl-bg-tertiary: #f5f5f5;
  --wl-text-primary: #0a0a0a;
  --wl-text-secondary: #737373;
  --wl-border-color: #ebebeb;
  --wl-border-hover: #d4d4d4;
  --wl-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  --wl-wallet-bg: #ffffff;
  --wl-wallet-hover: #fafafa;
  --wl-icon-bg: #f5f5f5;
  --wl-spinner-border: #e5e5e5;
  --wl-spinner-top: #0a0a0a;
  --wl-overlay-bg: rgba(0, 0, 0, 0.32);
  --wl-accent: #0a0a0a;
  --wl-accent-muted: rgba(10, 10, 10, 0.06);
  --wl-phantom: #ab9ff2;
  --wl-solflare: #fc7227;
  --wl-error: #dc2626;
  --wl-error-bg: rgba(220, 38, 38, 0.06);
  --wl-success: #15803d;
  --wl-success-bg: rgba(21, 128, 61, 0.06);
  --wl-radius: 16px;
  --wl-radius-sm: 10px;
  --wl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wl-duration: 0.22s;
}

[data-wl-theme="light"] {
  --wl-bg-primary: #ffffff;
  --wl-bg-secondary: #fafafa;
  --wl-bg-tertiary: #f5f5f5;
  --wl-text-primary: #0a0a0a;
  --wl-text-secondary: #737373;
  --wl-border-color: #ebebeb;
  --wl-border-hover: #d4d4d4;
  --wl-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  --wl-wallet-bg: #ffffff;
  --wl-wallet-hover: #fafafa;
  --wl-icon-bg: #f5f5f5;
  --wl-spinner-border: #e5e5e5;
  --wl-spinner-top: #0a0a0a;
  --wl-overlay-bg: rgba(0, 0, 0, 0.32);
  --wl-accent: #0a0a0a;
  --wl-accent-muted: rgba(10, 10, 10, 0.06);
  --wl-phantom: #ab9ff2;
  --wl-solflare: #fc7227;
  --wl-error: #dc2626;
  --wl-error-bg: rgba(220, 38, 38, 0.06);
  --wl-success: #15803d;
  --wl-success-bg: rgba(21, 128, 61, 0.06);
  --wl-radius: 16px;
  --wl-radius-sm: 10px;
  --wl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wl-duration: 0.22s;
  --wl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-wl-theme="dark"] {
  --wl-bg-primary: #111111;
  --wl-bg-secondary: #0a0a0a;
  --wl-bg-tertiary: #1a1a1a;
  --wl-text-primary: #fafafa;
  --wl-text-secondary: #a3a3a3;
  --wl-border-color: #262626;
  --wl-border-hover: #404040;
  --wl-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
  --wl-wallet-bg: #141414;
  --wl-wallet-hover: #1a1a1a;
  --wl-icon-bg: #1a1a1a;
  --wl-spinner-border: #333333;
  --wl-spinner-top: #fafafa;
  --wl-overlay-bg: rgba(0, 0, 0, 0.64);
  --wl-accent: #fafafa;
  --wl-accent-muted: rgba(250, 250, 250, 0.06);
  --wl-error-bg: rgba(248, 113, 113, 0.1);
  --wl-success-bg: rgba(74, 222, 128, 0.08);
  --wl-phantom: #ab9ff2;
  --wl-solflare: #fc7227;
  --wl-error: #dc2626;
  --wl-success: #15803d;
  --wl-radius: 16px;
  --wl-radius-sm: 10px;
  --wl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wl-duration: 0.22s;
  --wl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 400px;
  height: 420px;
  background: transparent;
  color: var(--wl-text-primary);
  font-family: var(--wl-font);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body {
  display: block;
}

#wl-standalone-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wl-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 400px;
  height: 420px;
  padding: 0;
  background: var(--wl-bg-primary);
  border: 1px solid var(--wl-border-color);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
  overflow: hidden;
  animation: enter var(--wl-duration) var(--wl-ease) both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-handle {
  display: none;
}

/* Header */

.card-header {
  padding: 28px 24px 0;
  text-align: center;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--wl-border-color);
  background: var(--wl-bg-secondary);
  color: var(--wl-text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wl-success);
  box-shadow: 0 0 0 2px var(--wl-success-bg);
}

.title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--wl-text-primary);
}

.subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--wl-text-secondary);
  max-width: 28ch;
  margin-inline: auto;
}

.title.hidden,
.subtitle.hidden {
  display: none;
}

/* Body */

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 12px;
  min-height: 0;
}

/* Back */

.back-button {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--wl-radius-sm);
  background: transparent;
  color: var(--wl-text-secondary);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--wl-duration) ease,
    background var(--wl-duration) ease,
    color var(--wl-duration) ease;
}

.back-button.visible {
  opacity: 1;
  pointer-events: all;
}

.back-button:hover {
  background: var(--wl-bg-tertiary);
  color: var(--wl-text-primary);
}

.back-button:focus-visible {
  outline: 2px solid var(--wl-accent);
  outline-offset: 2px;
}

.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wallet list */

.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-buttons.hidden {
  display: none;
}

.wallet-button {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wl-border-color);
  border-radius: var(--wl-radius-sm);
  background: var(--wl-wallet-bg);
  color: var(--wl-text-primary);
  cursor: pointer;
  text-align: left;
  transition:
    border-color var(--wl-duration) ease,
    background var(--wl-duration) ease;
}

.wallet-button:hover:not(:disabled) {
  background: var(--wl-wallet-hover);
  border-color: var(--wl-border-hover);
}

.wallet-button:active:not(:disabled) {
  transform: scale(0.995);
}

.wallet-button:focus-visible {
  outline: 2px solid var(--wl-accent);
  outline-offset: 2px;
}

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

.wallet-button-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.wallet-button-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wallet-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wl-icon-bg);
  overflow: hidden;
}

.wallet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.wallet-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wallet-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wallet-tag {
  font-size: 12px;
  color: var(--wl-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-arrow {
  flex-shrink: 0;
  display: flex;
  color: var(--wl-text-secondary);
  opacity: 0.5;
  transition: opacity var(--wl-duration) ease, transform var(--wl-duration) ease;
}

.wallet-button:hover:not(:disabled) .wallet-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.wallet-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Connecting view */

.single-wallet-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  min-height: 220px;
}

.single-wallet-view.active {
  display: flex;
  animation: fadeIn var(--wl-duration) ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wallet-loading-container {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-loading-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--wl-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wallet-loading-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.loading-ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.loading-ring svg {
  width: 100%;
  height: 100%;
}

.loading-ring path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 48 252;
  stroke-dashoffset: 0;
  animation: ringSpin 1.4s linear infinite;
}

.loading-ring.phantom path {
  stroke: var(--wl-phantom);
}

.loading-ring.solflare path {
  stroke: var(--wl-solflare);
}

.loading-ring.rejected path {
  stroke: var(--wl-error);
  stroke-dasharray: 300;
  animation: ringComplete 0.6s var(--wl-ease) forwards;
}

@keyframes ringSpin {
  to { stroke-dashoffset: -300; }
}

@keyframes ringComplete {
  to { stroke-dashoffset: 0; }
}

.wallet-loading-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wallet-loading-status {
  font-size: 13px;
  color: var(--wl-text-secondary);
  text-align: center;
  max-width: 26ch;
  line-height: 1.45;
}

.connection-steps {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.connection-steps .step {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wl-border-color);
  transition: background var(--wl-duration) ease, transform var(--wl-duration) ease;
}

.connection-steps .step.active {
  background: var(--wl-text-secondary);
  transform: scale(1.25);
}

.rejection-message {
  display: none;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: var(--wl-radius-sm);
  background: var(--wl-error-bg);
  color: var(--wl-error);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  max-width: 100%;
}

.rejection-message.show {
  display: block;
  animation: fadeIn var(--wl-duration) ease both;
}

.wallet-loading-container.shake {
  animation: shake 0.4s ease;
}

.wallet-loading-container.rejected .wallet-loading-icon {
  opacity: 0.7;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Status & info */

.info {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--wl-radius-sm);
  border: 1px solid var(--wl-border-color);
  background: var(--wl-bg-secondary);
  font-size: 12px;
  line-height: 1.5;
  color: var(--wl-text-secondary);
  text-align: center;
}

.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--wl-radius-sm);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  color: var(--wl-text-primary);
  background: var(--wl-accent-muted);
  border: 1px solid var(--wl-border-color);
}

.status.error {
  color: var(--wl-error);
  background: var(--wl-error-bg);
  border-color: transparent;
}

.status.success {
  color: var(--wl-success);
  background: var(--wl-success-bg);
  border-color: transparent;
}

.hidden {
  display: none !important;
}

.loading {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1.5px solid var(--wl-spinner-border);
  border-top-color: var(--wl-spinner-top);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

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

/* Footer */

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--wl-border-color);
  color: var(--wl-text-secondary);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.card-footer svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

/* Demo controls (index.html preview only) */

.demo-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-bar button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--wl-font);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-bar button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.demo-bar button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.demo-bar .theme-toggle {
  margin-left: 4px;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Mobile bottom sheet */

@media (max-width: 768px) and (pointer: coarse) {
  html,
  body {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: var(--wl-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
  }

  #wl-standalone-container {
    align-items: flex-end;
  }

  .mobile-handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--wl-border-hover);
  }

  .card {
    width: 100vw !important;
    height: auto !important;
    min-height: 52vh !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none;
    animation: sheetUp 0.32s var(--wl-ease) both;
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .card-header {
    padding-top: 4px;
  }

  .card-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0));
  }

  .demo-bar {
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }
}

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

/* Privy-inspired wallet selector */

:root {
  --privy-ink: #111126;
  --privy-muted: #9b9bad;
  --privy-line: #e5e5ec;
  --privy-wash: #f5f5fb;
  --privy-brand: #9696b3;
}

html,
body {
  width: 360px;
  height: 620px;
  background: transparent;
}

#wl-standalone-container {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card {
  width: 360px;
  height: 620px;
  border: 1px solid #e8e8ef;
  border-radius: 20px;
  background: #fff;
  color: var(--privy-ink);
  box-shadow: 0 8px 24px rgba(31, 31, 56, 0.10), 0 2px 4px rgba(31, 31, 56, 0.06);
}

.card-header {
  flex: 0 0 auto;
  padding: 54px 24px 0;
}

.privy-wallet-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--privy-wash);
  color: #747491;
}

.privy-wallet-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  margin-bottom: 0;
  color: var(--privy-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.subtitle {
  display: none;
}

.back-button {
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--privy-wash);
  color: #747486;
  opacity: 1;
  pointer-events: all;
}

.back-button:hover {
  background: #ececf5;
  color: var(--privy-ink);
}

.card-body {
  display: block;
  flex: 1;
  padding: 36px 16px 16px;
  overflow: hidden;
}

.wallet-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin-bottom: 5px;
  padding: 0 14px;
  border: 1px solid var(--privy-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25, 25, 50, 0.05);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wallet-search:focus-within {
  border-color: #b7b7ca;
  box-shadow: 0 0 0 3px rgba(116, 116, 145, 0.1);
}

.wallet-search svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #71718e;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wallet-search input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--privy-ink);
  font: 400 15px/1 var(--wl-font);
}

.wallet-search input::placeholder {
  color: #aaaab8;
  opacity: 1;
}

.wallet-search input::-webkit-search-cancel-button {
  opacity: 0.5;
}

.wallet-buttons {
  gap: 5px;
}

.wallet-button {
  height: 56px;
  border: 1px solid var(--privy-line);
  border-radius: 12px;
  background: #fff;
  color: var(--privy-ink);
  box-shadow: 0 1px 2px rgba(25, 25, 50, 0.04);
}

.wallet-button:hover:not(:disabled) {
  border-color: #cfcfdb;
  background: #fafafe;
}

.wallet-button-inner {
  height: 100%;
  padding: 8px 12px;
}

.wallet-button-content {
  gap: 10px;
}

.wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: transparent;
}

.wallet-icon img {
  padding: 0;
}

.wallet-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -28px 0 0 28px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: #36b694;
}

.wallet-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wallet-network {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10111a;
  overflow: hidden;
}

.wallet-network svg {
  width: 100%;
  height: 100%;
}

.wallet-arrow {
  display: none;
}

.card-footer {
  flex: 0 0 70px;
  padding: 0 20px 4px;
  border: 0;
  background: transparent;
  color: var(--privy-brand);
}

.card-footer #protected-by-privy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 20px;
  color: var(--privy-brand);
  text-decoration: none;
}

.privy-logo {
  display: block;
  width: 150px;
  height: 13px;
  border: 0;
  pointer-events: none;
}

.single-wallet-view {
  min-height: 250px;
}

.card:has(.single-wallet-view.active) .wallet-search {
  display: none;
}

.card:has(.single-wallet-view.active) .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-loading-name,
.wallet-loading-status {
  color: var(--privy-ink);
}

.wallet-loading-status {
  color: var(--privy-muted);
}

[data-wl-theme="dark"] #wl-standalone-container {
  background: transparent;
}

[data-wl-theme="dark"] .card {
  border-color: #30303a;
  background: #17171d;
  color: #f7f7fa;
}

[data-wl-theme="dark"] .title,
[data-wl-theme="dark"] .wallet-button,
[data-wl-theme="dark"] .wallet-search input,
[data-wl-theme="dark"] .wallet-loading-name {
  color: #f7f7fa;
}

[data-wl-theme="dark"] .wallet-search,
[data-wl-theme="dark"] .wallet-button {
  border-color: #363640;
  background: #202027;
}

[data-wl-theme="dark"] .wallet-button:hover:not(:disabled) {
  border-color: #4b4b59;
  background: #25252d;
}

[data-wl-theme="dark"] .privy-wallet-mark,
[data-wl-theme="dark"] .back-button {
  background: #24242d;
}

[data-wl-theme="dark"] .card-footer {
  background: transparent;
}

@media (max-width: 768px) and (pointer: coarse) {
  html,
  body,
  #wl-standalone-container {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .card {
    width: min(100vw, 360px) !important;
    min-height: 620px !important;
    max-height: 92vh !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .card-header {
    padding-top: 42px;
  }

  .privy-wallet-mark {
    margin-bottom: 24px;
  }
}
