/* =============================================================
 * 小鸡农场 · 链游 UI 样式（像素农场风）
 * ============================================================= */
.pw3-hidden { display: none !important; }

.pw3-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 27, 20, 0.82);
  backdrop-filter: blur(2px);
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
}

.pw3-card {
  width: min(92vw, 380px);
  background: #fff7e6;
  color: #4a3526;
  border: 4px solid #4a3526;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #f3c969, 0 10px 0 0 rgba(0,0,0,0.25);
  padding: 22px 20px 16px;
  text-align: center;
  image-rendering: pixelated;
  position: relative;
}

.pw3-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: #c0392b;
  border: 3px solid #4a3526;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 0 0 #4a3526;
  padding: 0;
}
.pw3-close:hover { filter: brightness(1.1); }
.pw3-close:active { transform: translateY(3px); box-shadow: 0 0 0 0 #4a3526; }

.pw3-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c9622b;
  text-shadow: 1px 1px 0 #f3c969;
}
.pw3-sub { font-size: 12px; margin-top: 4px; color: #7a5c41; }

.pw3-req {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 700;
  background: #ffe9b8;
  border: 2px dashed #d9a441;
  border-radius: 6px;
  padding: 8px;
}

.pw3-status { min-height: 18px; margin: 10px 0; font-size: 12.5px; line-height: 1.5; word-break: break-word; }
.pw3-status.pw3-ok   { color: #2e8b3d; font-weight: 700; }
.pw3-status.pw3-warn { color: #c98a00; }
.pw3-status.pw3-err  { color: #c0392b; }

.pw3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.pw3-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #c9622b;
  border: 3px solid #4a3526;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 0 #4a3526;
  transition: transform .05s, box-shadow .05s;
}
.pw3-btn:hover { filter: brightness(1.06); }
.pw3-btn:active { transform: translateY(3px); box-shadow: 0 0 0 0 #4a3526; }
.pw3-btn:disabled { opacity: .55; cursor: not-allowed; }
.pw3-btn-go { background: #3a9d4a; }
.pw3-btn-ghost { background: #efe2c6; color: #4a3526; }
.pw3-btn-sm { padding: 4px 9px; font-size: 11px; box-shadow: 0 2px 0 0 #4a3526; }

.pw3-foot { margin-top: 14px; font-size: 10px; color: #998166; }

/* 兑换面板 */
.pw3-redeem-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 8px 0;
  text-align: left;
}
.pw3-input {
  font-family: inherit;
  font-size: 14px;
  width: 120px;
  padding: 6px 8px;
  border: 2px solid #4a3526;
  border-radius: 5px;
  background: #fffdf6;
  text-align: right;
}

/* 钱包选择列表 */
.pw3-wallet-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.pw3-wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #4a3526;
  background: #efe2c6;
  border: 3px solid #4a3526;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 0 #4a3526;
  text-align: left;
}
.pw3-wallet-item:hover { filter: brightness(1.05); }
.pw3-wallet-item:active { transform: translateY(3px); box-shadow: 0 0 0 0 #4a3526; }
.pw3-wallet-item img,
.pw3-wallet-ph {
  width: 28px; height: 28px;
  border-radius: 6px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  image-rendering: auto;
}
.pw3-wallet-name { flex: 1; }

/* 常驻钱包徽章 */
.pw3-badge {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  color: #4a3526;
  border: 3px solid #4a3526;
  border-radius: 8px;
  padding: 5px 9px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 0 0 rgba(0,0,0,0.25);
}
.pw3-badge-net.pw3-ok   { color: #2e8b3d; }
.pw3-badge-net.pw3-warn { color: #c98a00; }
.pw3-badge-addr { opacity: .8; }
.pw3-badge-bal::before { content: "💰 "; }

@media (max-width: 480px) {
  .pw3-badge { font-size: 10px; padding: 4px 6px; gap: 5px; }
}
