/* Shared live wallet popup. Loaded by index.html and arcade.html. */

.vv-wallet {
  width: min(720px, 94vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #14141a;
  color: var(--ink);
  box-shadow: 0 30px 120px #000a;
  overflow: hidden;
}

.vv-wallet::backdrop { background: #07070bcc; backdrop-filter: blur(10px); }

.vv-wallet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
}

.vv-wallet-head .eyebrow { margin: 0 0 8px }
.vv-wallet-head h2 { font-size: clamp(38px, 6vw, 56px); letter-spacing: -2px; margin: 0; line-height: 1; font-weight: 700; text-shadow: 0 0 24px #e6ff6355, 0 2px 4px #000; }
.vv-wallet-head h2 i { font-style: normal; color: var(--lime); font-size: .42em; letter-spacing: 2px; font-weight: 500; margin-left: 4px; text-shadow: 0 0 12px #e6ff6388; }
.vv-wallet-sub { color: var(--muted); font: 10px 'DM Mono', monospace; margin: 9px 0 0; line-height: 1.5 }
.vv-wallet-aud { color: #cbb889; font: 600 14px 'DM Mono', monospace; margin: 7px 0 0; letter-spacing: .3px; }
.vv-aud-hint { display: block; color: var(--muted); font: 10px 'DM Mono', monospace; margin-top: 5px; min-height: 13px }

.vv-wallet-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.vv-wallet-close:hover { color: var(--ink); border-color: var(--ink) }

.vv-wallet .account-tabs { margin: 0; padding: 14px 28px 0; gap: 20px; overflow-x: auto }
.vv-wallet .account-tab { white-space: nowrap }

.vv-panels { padding: 22px 28px 28px; overflow-y: auto; max-height: calc(88vh - 154px) }
.vv-panel h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.3px }
.vv-panel .account-intro { font-size: 13px; margin: 0 0 16px }
.vv-panel .account-form { margin-bottom: 4px }

.vv-panel .account-form > button { justify-self: start }
.vv-inline-form { display: flex; gap: 10px; align-items: end }
.vv-inline-form label { flex: 1 }
.vv-inline-form .primary, .vv-inline-form .ghost { padding: 13px 16px }

.vv-panel + .vv-panel h3:not(:first-child) { margin-top: 26px }

.ledger { display: grid; gap: 6px; margin: 0 0 22px; max-height: 280px; overflow-y: auto }
.ledger-row {
  padding: 10px 12px;
  background: #111116;
  border: 1px solid var(--line);
  font: 11px 'DM Mono', monospace;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.5;
}

.vv-empty { color: var(--muted); font: 11px 'DM Mono', monospace; margin: 0 }

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--lime);
  background: #15151b;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.small { color: var(--muted); font: 10px 'DM Mono', monospace }

.vv-steps { margin: 0 0 18px; padding: 14px 14px 14px 34px; border: 1px solid var(--line); border-left: 2px solid var(--lime); background: #15151b; color: var(--muted); font: 11px/1.7 'DM Mono', monospace; }
.vv-steps li { margin: 2px 0; }
.vv-steps b { color: var(--lime); }
.vv-secondary { margin-top: 8px; }

.vv-ref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  margin: 4px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--lime);
  background: #15151b;
}
.vv-ref[hidden] { display: none }
.vv-ref-label { grid-column: 1 / -1; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .6px; text-transform: uppercase }
.vv-ref code {
  color: var(--lime);
  font: 700 clamp(20px, 5vw, 28px) 'DM Mono', monospace;
  letter-spacing: 2px;
  text-shadow: 0 0 18px #e6ff6355;
  word-break: break-all;
}
.vv-ref button { padding: 9px 14px; font-size: 12px }
.vv-ref-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap }
.vv-ref-expiry { grid-column: 1 / -1; color: var(--muted); font: 10px 'DM Mono', monospace }

.vv-transfer {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e6ff6370;
  border-left: 3px solid var(--lime);
  background: linear-gradient(135deg, #e6ff630c, #15151b 36%);
}
.vv-transfer[hidden] { display: none }
.vv-transfer-title { margin: 0 0 12px; color: var(--lime); font: 700 12px 'DM Mono', monospace; letter-spacing: .6px; text-transform: uppercase }
.vv-transfer-grid { display: grid; gap: 9px; }
.vv-transfer-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); background: #0e0f14; }
.vv-transfer-item > span { grid-column: 1 / -1; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .45px; text-transform: uppercase }
.vv-transfer-item code, .vv-transfer-item strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font: 700 14px 'DM Mono', monospace; }
.vv-transfer-item strong { color: var(--lime); }
.vv-transfer-item small { grid-column: 1 / -1; color: var(--muted); font: 10px/1.45 'DM Mono', monospace; }
.vv-transfer-item button { padding: 7px 10px; font-size: 11px; }
.vv-transfer-help { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.vv-transfer-help b { color: var(--ink); }
.vv-usdc { border-color: #5aa9ff70; border-left-color: #5aa9ff; background: linear-gradient(135deg, #5aa9ff10, #15151b 36%); }
.vv-usdc .vv-transfer-title { color: #8cc4ff; }
.vv-usdc-warning { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #ff9f8f66; background: #2a1512; color: #ffc4b8; font-size: 12px; line-height: 1.45; }
.vv-usdc-claim { margin-top: 12px; }

.vv-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 24px }
.vv-hero-actions a { text-decoration: none }

body.wallet-open { overflow: hidden }

@media (max-width: 600px) {
  .vv-wallet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0 }
  .vv-panels { max-height: calc(100dvh - 152px) }
  .vv-wallet-head, .vv-wallet .account-tabs, .vv-panels { padding-left: 18px; padding-right: 18px }
  .vv-transfer-item { grid-template-columns: 1fr; }
  .vv-transfer-item button { justify-self: start; }
}
