/* Interaction and dialog layer on top of the captured Blast-it.fun styles. */

body { min-height: 100svh; }

button,
input,
a { -webkit-tap-highlight-color: transparent; }

button,
.launch-link,
.secondary-link,
.primary-action,
.rules-link,
.feature-card,
.token-tile,
.wallet-option { cursor: pointer; }

.wallet-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 1px;
  color: var(--foreground);
  background: var(--background);
}

.wallet-button { gap: 6px; }

button.wallet-option {
  font: inherit;
  color: var(--foreground);
  width: 100%;
  cursor: pointer;
}

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

.sidebar-ca:not([hidden]) + .sidebar-social { margin-top: 4px; }

#confirm-launch { width: 100%; height: 46px; justify-content: center; }
button.upload-image {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  border-radius: 10px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
button.upload-image:hover { background: var(--muted); }
button.upload-image:active { transform: translateY(1px); }
#review-description { color: var(--muted-foreground); margin: 16px 0 0; font-size: 14px; line-height: 1.7; }
.creator-social > summary svg { transition: transform .2s; }
.creator-social[open] > summary svg { transform: rotate(180deg); }
.sidebar-ca-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #151a0e;
  color: var(--positive);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
#sidebar-x .sidebar-social-copy > span {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 600;
}
.sidebar-ca .sidebar-social-copy > span {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-social.is-static { cursor: default; }
.sidebar-social.is-static:hover { background: transparent; }
.sidebar-ca-link-icon { margin-left: auto; }

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

.live-payments .payment-belt { animation: none; }

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

button:active,
a.launch-link:active,
a.secondary-link:active,
a.primary-action:active,
.rules-link:active,
.wallet-option:active,
.blast-sidebar nav a:active,
.sidebar-social:active,
.motion-toolbar button:active,
.wallet-rescan:active {
  transform: translateY(1px);
  filter: brightness(0.9);
}

a.feature-card:active {
  transform: translateY(1px) scale(0.992);
  filter: brightness(0.94);
}

a.token-tile:active {
  transform: translateY(1px);
  filter: brightness(0.92);
}

.explore-search .search-box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  color: var(--foreground);
}

.explore-search .search-box input::placeholder { color: var(--muted-foreground); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.rules-dialog,
.wallet-picker {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  transform: translate(-50%, -50%);
  color: var(--foreground);
}

.rules-dialog {
  background: var(--popover);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
}

.rules-dialog:active,
.wallet-picker:active {
  transform: translate(-50%, -50%);
  filter: none;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  display: grid;
  place-items: center;
  padding: 0;
}

.dialog-close:hover { background: var(--muted); }

.dialog-close:active { transform: translateY(1px); }

.token-empty { text-align: center; }
.token-empty[hidden] { display: none; }

.token-empty .empty-copy {
  color: var(--muted-foreground);
  margin: 8px auto 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
}

.token-empty strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
}

.reset-filters {
  margin-top: 18px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-size: 13px;
}

.live-payments { scrollbar-color: #3a3a3a transparent; }

@media (max-width: 760px) {
  .rules-dialog,
  .wallet-picker { max-height: calc(100svh - 32px); }
}
