/* ── Shared header wallet actions + wallet modal ─────────────────────
   Injected on every page by wallet.js. Strictly presentational: the
   live balance element keeps its original ID so each game's JS keeps
   updating it exactly as before. */

.wl-actions{
  display:flex;align-items:stretch;gap:0;flex:0 0 auto;
}

/* Left: Deposit button */
.wl-deposit-btn{
  display:flex;align-items:center;justify-content:center;
  padding:0 18px;min-height:40px;
  background:#10b981;color:#fff;
  font-weight:800;font-size:14px;letter-spacing:.2px;
  border:none;border-radius:8px 0 0 8px;cursor:pointer;
  font-family:inherit;
  transition:background .15s ease;
}
.wl-deposit-btn:hover{background:#0ea371;}

/* Middle: dark balance pill w/ dropdown chevron */
.wl-balance-pill{
  display:flex;align-items:center;gap:8px;
  padding:0 16px;min-height:40px;
  background:#131722;border:1px solid rgba(255,255,255,.08);
  border-left:none;border-right:none;
  cursor:pointer;user-select:none;
}
.wl-balance-pill:hover{background:#181d2b;}
.wl-balance-pill .wl-bal-slot{
  color:#fff;font-weight:700;font-size:14px;white-space:nowrap;
}
/* normalize whatever element got moved into the pill */
.wl-balance-pill .wl-bal-slot > *{
  font-size:14px !important;color:#fff !important;margin:0 !important;
}
.wl-chevron{
  width:0;height:0;flex:0 0 auto;
  border-left:5px solid transparent;border-right:5px solid transparent;
  border-top:6px solid #10b981;
  transition:transform .15s ease;
}
.wl-balance-pill:hover .wl-chevron{transform:translateY(1px);}

/* Right: dark bordered Wallet button */
.wl-wallet-btn{
  display:flex;align-items:center;gap:7px;
  padding:0 16px;min-height:40px;
  background:#0d1017;color:#e7ecf5;
  border:1px solid rgba(255,255,255,.14);
  border-radius:0 8px 8px 0;cursor:pointer;
  font-weight:700;font-size:14px;font-family:inherit;
  transition:background .15s ease,border-color .15s ease;
}
.wl-wallet-btn:hover{background:#161b27;border-color:rgba(255,255,255,.25);}
.wl-wallet-btn svg{flex:0 0 auto;}

/* ── Modal ── */
.wl-overlay{
  position:fixed;inset:0;z-index:9000;
  background:rgba(4,6,10,.72);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:18px;
  opacity:0;pointer-events:none;transition:opacity .18s ease;
}
.wl-overlay.open{opacity:1;pointer-events:auto;}
.wl-modal{
  width:min(480px,100%);max-height:min(640px,92vh);
  display:flex;flex-direction:column;
  background:#12161f;border:1px solid rgba(255,255,255,.09);
  border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.6);
  transform:translateY(10px) scale(.985);transition:transform .18s ease;
  overflow:hidden;
}
.wl-overlay.open .wl-modal{transform:none;}

.wl-modal-head{
  display:flex;align-items:center;gap:10px;
  padding:14px 16px 0 16px;
}
.wl-tabs{
  display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;
  scrollbar-width:none;
}
.wl-tabs::-webkit-scrollbar{display:none;}
.wl-tab{
  flex:0 0 auto;padding:8px 13px;
  background:transparent;border:none;border-radius:8px;
  color:rgba(255,255,255,.55);font-weight:700;font-size:13px;
  font-family:inherit;cursor:pointer;white-space:nowrap;
  transition:background .12s ease,color .12s ease;
}
.wl-tab:hover{color:#fff;}
.wl-tab.active{background:rgba(255,255,255,.08);color:#fff;}
.wl-close{
  flex:0 0 auto;width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:none;border-radius:8px;
  color:rgba(255,255,255,.5);font-size:20px;line-height:1;
  cursor:pointer;font-family:inherit;
}
.wl-close:hover{background:rgba(255,255,255,.07);color:#fff;}

.wl-body{padding:14px 16px 16px 16px;overflow-y:auto;}

/* Overview ledger */
.wl-total{
  display:flex;align-items:baseline;gap:8px;margin:2px 2px 14px 2px;
}
.wl-total-label{font-size:12px;color:rgba(255,255,255,.45);font-weight:600;letter-spacing:.4px;text-transform:uppercase;}
.wl-total-val{font-size:22px;font-weight:800;color:#fff;}
.wl-coin-list{display:flex;flex-direction:column;gap:6px;}
.wl-coin-row{
  display:flex;align-items:center;gap:12px;
  padding:11px 12px;border-radius:10px;
  background:#181d29;border:1px solid rgba(255,255,255,.05);
}
.wl-coin-row:hover{background:#1c2231;}
.wl-coin-logo{flex:0 0 36px;width:36px;height:36px;}
.wl-coin-names{flex:1;min-width:0;}
.wl-coin-sym{font-weight:800;font-size:14px;color:#fff;}
.wl-coin-name{font-size:12px;color:rgba(255,255,255,.45);}
.wl-coin-amts{text-align:right;}
.wl-coin-tokens{font-weight:700;font-size:14px;color:#fff;font-variant-numeric:tabular-nums;}
.wl-coin-fiat{font-size:12px;color:rgba(255,255,255,.45);font-variant-numeric:tabular-nums;}

/* Simple placeholder panels for the non-ledger tabs */
.wl-panel-note{
  padding:26px 14px;text-align:center;
  color:rgba(255,255,255,.55);font-size:14px;line-height:1.6;
}
.wl-panel-note strong{color:#fff;}

/* ── Buy Chips (MoonPay) panel ── */
.wl-buychips-panel{
  position:relative;display:flex;flex-direction:column;gap:0;
}
.wl-bc-header{
  margin-bottom:18px;
}
.wl-bc-title{
  font-size:17px;font-weight:800;color:#fff;margin-bottom:6px;
}
.wl-bc-subtitle{
  font-size:13px;color:rgba(255,255,255,.5);line-height:1.55;
}
.wl-bc-form{
  display:flex;flex-direction:column;gap:10px;
}
.wl-bc-label{
  font-size:12px;font-weight:700;color:rgba(255,255,255,.65);
  letter-spacing:.3px;text-transform:uppercase;
}
.wl-bc-input-row{
  display:flex;align-items:stretch;gap:0;
  background:#0d1017;border:1px solid rgba(255,255,255,.12);
  border-radius:10px;overflow:hidden;
}
.wl-bc-prefix{
  display:flex;align-items:center;padding:0 12px;
  font-size:15px;font-weight:700;color:rgba(255,255,255,.45);
  border-right:1px solid rgba(255,255,255,.08);flex:0 0 auto;
}
.wl-bc-input{
  flex:1;min-width:0;
  background:transparent;border:none;outline:none;
  color:#fff;font-size:15px;font-weight:600;font-family:inherit;
  padding:11px 10px;
}
.wl-bc-input::placeholder{color:rgba(255,255,255,.25);}
.wl-bc-input::-webkit-outer-spin-button,
.wl-bc-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.wl-bc-input[type=number]{-moz-appearance:textfield;}
.wl-bc-select{
  flex:0 0 auto;padding:0 12px;
  background:rgba(255,255,255,.05);border:none;border-left:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.7);font-size:13px;font-weight:700;font-family:inherit;
  outline:none;cursor:pointer;
}
.wl-bc-btn{
  width:100%;padding:13px;margin-top:4px;
  background:#10b981;color:#fff;
  border:none;border-radius:10px;
  font-size:15px;font-weight:800;font-family:inherit;
  cursor:pointer;letter-spacing:.2px;
  transition:background .15s ease,opacity .15s ease;
}
.wl-bc-btn:hover:not(:disabled){background:#0ea371;}
.wl-bc-btn:disabled{opacity:.55;cursor:default;}
.wl-bc-note{
  font-size:11px;color:rgba(255,255,255,.3);
  text-align:center;line-height:1.5;
  padding-top:2px;
}

/* MoonPay iframe overlay — fills the modal body */
.wl-mp-frame-wrap{
  position:absolute;inset:0;z-index:10;
  display:flex;flex-direction:column;
  background:#12161f;border-radius:0 0 14px 14px;
}
.wl-mp-frame-close{
  display:flex;align-items:center;gap:6px;
  padding:8px 14px;
  background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,.07);
  color:rgba(255,255,255,.6);font-size:13px;font-weight:700;font-family:inherit;
  cursor:pointer;text-align:left;
  transition:color .12s ease;
}
.wl-mp-frame-close:hover{color:#fff;}
.wl-mp-frame{
  flex:1;border:none;width:100%;min-height:0;
  border-radius:0 0 14px 14px;
}

@media (max-width:560px){
  .wl-deposit-btn,.wl-wallet-btn{padding:0 12px;font-size:13px;}
  .wl-wallet-btn span{display:none;}
  .wl-balance-pill{padding:0 10px;}
}
