/* ==========================================================================
   Schrödinger's Wallet ($WALLET) — Ultra-Clean Single-Page Wallet
   ========================================================================== */

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

html,
body {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #1a1216;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4.5vh, 48px) 24px;
  user-select: none;
}

/* Minimal Header & Footer */
.minimal-header {
  text-align: center;
}

.title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2b141c;
}

.ticker {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff3e6;
  border: 2px solid #68182a;
  color: #d96b18;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68em;
  font-weight: 600;
  vertical-align: middle;
  transform: translateY(-2px);
}

.minimal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 100%;
}

.tagline {
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  color: #8b7b82;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 520px);
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  background: #fff9f2;
  border: 2px solid #68182a;
  color: #2b141c;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ca-pill:hover {
  background: #fff1e2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(104, 24, 42, 0.1);
}

.ca-pill:active {
  transform: translateY(0);
}

.ca-label {
  color: #8b7b82;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ca-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}

.ca-status {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ec8424;
  color: #ffffff;
  font-size: 0.84em;
  letter-spacing: 0.04em;
  transition: background 0.16s ease;
}

.ca-pill.copied .ca-status {
  background: #18b463;
}

/* ==========================================================================
   Fixed Hover Hitbox — Hovering COMPLETELY removes the wallet!
   ========================================================================== */
.wallet-hitbox {
  position: relative;
  width: min(82vw, 440px);
  height: min(62dvh, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.wallet-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.14s ease;
  will-change: opacity;
}

/* Pure, complete disappearance on hover (or touch toggle class) */
.wallet-hitbox:hover .wallet-wrapper,
.wallet-hitbox.is-hidden .wallet-wrapper {
  opacity: 0;
}

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

/* ==========================================================================
   Smooth Playful Idle Animations (Wallet, Bills, BTC & SOL Coins, Shadow)
   ========================================================================== */
.wallet-bob {
  transform-origin: 300px 300px;
  animation: walletFloat 3.4s ease-in-out infinite;
}

.ground-shadow {
  transform-origin: 309px 498px;
  animation: shadowBreath 3.4s ease-in-out infinite;
}

.bill-left {
  transform-origin: 240px 230px;
  animation: billSwayLeft 3.0s ease-in-out infinite;
}

.bill-right {
  transform-origin: 350px 230px;
  animation: billSwayRight 2.8s ease-in-out 0.25s infinite;
}

.coin-btc {
  transform-origin: 154px 274px;
  animation: coinFloatLeft 2.7s ease-in-out infinite;
}

.coin-sol {
  transform-origin: 492px 168px;
  animation: coinFloatRight 2.9s ease-in-out 0.45s infinite;
}

@keyframes walletFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-13px);
  }
}

@keyframes shadowBreath {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.65;
  }
}

@keyframes billSwayLeft {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

@keyframes billSwayRight {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.6deg);
  }
}

@keyframes coinFloatLeft {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-5deg);
  }
}

@keyframes coinFloatRight {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-bob,
  .ground-shadow,
  .bill-left,
  .bill-right,
  .coin-btc,
  .coin-sol {
    animation: none;
  }
}
