/* PACKWOOD 链上层样式
 * 配色对齐 bonkuji-shim.css: 近黑底 + 橙色主色 #ff6a1f
 *
 * 三块:
 *   .pw-strip    机台上方的链上状态条 (倍数 k / 抽卡价 / 库存 / 大奖是否开放)
 *   .pw-steps    两段式开卡的进度 (提交 → 等链上 → 揭示)
 *   .pw-noship   「不寄实物」的提示 —— 点寄送/提货按钮时弹
 */

/* ---------------- 链上状态条 ---------------- */

.pw-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin: 0 auto 18px; padding: 12px 20px; width: min(1080px, 100%);
  background: linear-gradient(180deg, rgba(255, 106, 31, .10), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 106, 31, .28); border-radius: 14px;
  font-size: 12px; color: rgba(237, 237, 237, .8);
}
.pw-strip-item { display: flex; align-items: baseline; gap: 7px; }
.pw-strip-label { color: rgba(237, 237, 237, .45); letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.pw-strip-value { font-weight: 800; font-size: 14px; color: #ededed; }
.pw-strip-value.accent { color: #ff6a1f; }
.pw-strip-value.good { color: #2dd48f; }
.pw-strip-value.warn { color: #ff5c8a; }
.pw-strip-dot { width: 7px; height: 7px; border-radius: 50%; background: #2dd48f; box-shadow: 0 0 8px #2dd48f; }
.pw-strip-dot.off { background: #ff5c8a; box-shadow: 0 0 8px #ff5c8a; }
.pw-strip-spacer { flex: 1 1 auto; }
.pw-strip-hint { font-size: 11px; color: rgba(237, 237, 237, .4); }

/* ---------------- 两段式开卡进度 ---------------- */

.pw-steps {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(900px 500px at 50% 35%, rgba(255, 106, 31, .16), transparent 62%), rgba(8, 6, 12, .9);
  backdrop-filter: blur(8px); color: #ededed;
}
.pw-steps-inner { width: min(460px, 88vw); text-align: center; }
.pw-steps-title { font-size: 19px; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; }
.pw-steps-msg { font-size: 13px; color: rgba(237, 237, 237, .6); min-height: 20px; }

.pw-steps-bar { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.pw-step {
  flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative;
}
.pw-step.on::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ff6a1f, #ffb020);
  animation: pw-step-fill 1.6s ease-in-out infinite;
}
@keyframes pw-step-fill { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pw-step.done { background: #2dd48f; }
.pw-step-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(237, 237, 237, .42); }

.pw-steps-spinner {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  border: 3px solid rgba(255, 106, 31, .22); border-top-color: #ff6a1f;
  animation: pw-spin .9s linear infinite;
}

.pw-steps-tx {
  margin-top: 18px; font-size: 11px; color: rgba(237, 237, 237, .35);
  word-break: break-all; text-decoration: none; display: inline-block;
}
.pw-steps-tx:hover { color: #ff6a1f; }

.pw-steps-wait { font-size: 11px; color: rgba(237, 237, 237, .4); margin-top: 12px; line-height: 1.7; }

/* ---------------- 不寄实物的提示 ---------------- */

.pw-noship { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 12, .76); }
.pw-noship-box {
  background: #16121c; border: 1px solid rgba(255, 106, 31, .35); border-radius: 16px;
  padding: 26px 28px; max-width: 440px; color: #ededed;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.pw-noship-box h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: .02em; }
.pw-noship-box p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: rgba(237, 237, 237, .75); }
.pw-noship-box p:last-of-type { margin-bottom: 20px; }
.pw-noship-box .hl { color: #ff6a1f; font-weight: 700; }

/* ---------------- 我的卡库 ---------------- */

.pw-strip-btn {
  background: rgba(255, 106, 31, .16); color: #ff6a1f; border: 1px solid rgba(255, 106, 31, .45);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pw-strip-btn:hover { background: rgba(255, 106, 31, .28); }

.pw-vault-overlay {
  position: fixed; inset: 0; z-index: 100000; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px 40px;
  background: rgba(8, 6, 12, .82); backdrop-filter: blur(8px);
}
.pw-vault-panel {
  width: min(920px, 100%); background: #16121c; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; padding: 24px 26px; color: #ededed;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.pw-vault-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pw-vault-head h3 { margin: 0; font-size: 19px; letter-spacing: .02em; }
.pw-vault-empty { font-size: 13px; color: rgba(237, 237, 237, .55); padding: 30px 0; text-align: center; }

/* 保底进度 */
.pw-pity { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.pw-pity-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(237, 237, 237, .6); margin-bottom: 8px; }
.pw-pity-val { color: #ff6a1f; font-weight: 800; }
.pw-pity-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pw-pity-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff6a1f, #ffb020); transition: width .3s; }
.pw-pity-hint { font-size: 11px; color: rgba(237, 237, 237, .45); margin-top: 8px; }

.pw-vault-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 12px; color: rgba(237, 237, 237, .6); margin-bottom: 16px; }
.pw-vault-stats b { color: #ededed; font-weight: 800; }

.pw-vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pw-vault-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.pw-vault-tier { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.pw-vault-id { font-size: 11px; color: rgba(237, 237, 237, .6); }
.pw-vault-amt { font-size: 17px; font-weight: 800; }
.pw-vault-btn {
  margin-top: 2px; background: rgba(255, 106, 31, .14); color: #ff6a1f;
  border: 1px solid rgba(255, 106, 31, .4); border-radius: 999px;
  padding: 6px 12px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.pw-vault-btn:hover:not(:disabled) { background: rgba(255, 106, 31, .26); }
.pw-vault-btn:disabled { opacity: .5; cursor: default; }
