/* Survivor Pass, Supply cards and Growth Fund (client/panels-passes.js) */
.sp-root .pn-title { margin-bottom: 8px; }
.sp-help { width: 36px; height: 36px; padding: 0 !important; border-radius: 50%; border: 2px solid var(--pn-gold2); background: rgba(0,0,0,.35); color: var(--pn-gold); font: 900 17px/1 system-ui !important; }
.sp-wallet { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; background: #0b110d; border: 1px solid var(--line); }
.sp-wallet span { flex: none; font-size: 14px; color: #ffd76a; white-space: nowrap; }
.sp-wallet small { min-width: 0; font-size: 11px; line-height: 1.25; color: var(--muted); }
.sp-tabs button { flex: 1 1 0; min-height: 44px; padding: 6px 4px; font-size: 13px; font-weight: 700; }
.sp-tabs .pn-bdg { top: -5px; right: -2px; }
.sp-body { display: grid; gap: 10px; min-width: 0; }
.sp-gold { color: #ffd76a; }
.sp-short { color: var(--bad); }

/* reward chips */
.sp-chips { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.sp-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.12); }
.sp-chip b { font-weight: 800; }

/* banner: pass number, time left, level, XP bar, which tracks are open */
.sp-banner { padding: 12px; border-radius: 14px; border: 1px solid #a8742a;
  background: radial-gradient(120% 140% at 100% 0%, rgba(208,137,47,.32), transparent 55%), linear-gradient(135deg, #3a2414, #17201a 80%);
  box-shadow: inset 0 1px 0 rgba(255,220,160,.15), 0 4px 12px rgba(0,0,0,.35); }
.sp-banner.elite { border-color: #ffd76a; background: radial-gradient(120% 140% at 100% 0%, rgba(255,215,106,.3), transparent 55%), linear-gradient(135deg, #3d2a52, #17201a 80%); }
.sp-banner .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.sp-banner small { display: block; font-size: 11px; color: #e6cfa8; text-transform: uppercase; letter-spacing: .04em; }
.sp-banner .cd b { display: block; font: 900 22px/1.15 ui-monospace, Menlo, Consolas, monospace; color: #fff; }
.sp-banner .cd i { font-style: normal; font-size: 11px; color: #e6cfa8; }
.sp-banner .lv { text-align: right; flex: none; }
.sp-banner .lv b { font: 900 32px/1 system-ui; color: #ffd76a; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.sp-banner .lv b span { font-size: 15px; color: #d9c48c; }
.sp-xp { margin-top: 8px; }
.sp-xp .pn-bar { height: 12px; border-radius: 6px; }
.sp-xp small { margin-top: 3px; text-transform: none; letter-spacing: 0; font-size: 12px; color: #e9f0e6; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-tag { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.sp-tag.on { color: #9fe0a8; border-color: #3f7a3a; }
.sp-tag.gold { color: #2a1a03; background: linear-gradient(#ffd97a, #e3a12f); border-color: #ffe7a6; }
.sp-tag.off { color: var(--muted); }
.sp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-acts .ec-btn { flex: 1 1 150px; min-height: 46px; padding: 8px 10px; font-size: 14px; }
.sp-elite-btn { background: linear-gradient(#6a4a9a, #3a2470) !important; border-color: #c9a8ff !important; color: #fff; }
.sp-elite-btn b { color: #ffd76a; }
.sp-tease { padding: 6px 10px; border-radius: 10px; font-size: 12px; color: #e6d6ff; background: rgba(106,74,154,.25); border: 1px dashed #8a6fd0; }

/* the two tracks: free | level | Elite */
.sp-track-head, .sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.sp-track-head { position: sticky; top: 46px; z-index: 3; padding: 6px 0 4px; background: var(--bg); font: 800 12px/1 system-ui; text-transform: uppercase; letter-spacing: .06em; text-align: center; color: var(--muted); }
.sp-track-head .gold { color: #ffd76a; }
.sp-track { display: grid; gap: 5px; }
.sp-lv { align-self: center; justify-self: center; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 800 13px/1 system-ui; color: var(--muted); background: #0b110d; border: 2px solid var(--line); }
.sp-row.reached .sp-lv { color: #241a05; background: linear-gradient(#ffd97a, #e3a12f); border-color: #fff3c8; }
.sp-row.big .sp-lv { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2px rgba(240,180,60,.25); }
.sp-cell { position: relative; min-height: 44px; width: 100%; padding: 6px 26px 6px 7px; display: flex; flex-direction: column; justify-content: center; gap: 5px; text-align: left; color: var(--text); font: inherit;
  border-radius: 10px; border: 1px solid var(--line); background: #17201a; }
.sp-cell.elite { border-color: #5a4a7a; background: linear-gradient(135deg, #251d36, #17201a); }
.sp-cell .sp-chip { font-size: 11.5px; padding: 1px 5px; }
.sp-cell .sp-st { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 800; line-height: 1; color: var(--muted); }
.sp-cell.lock { opacity: .62; }
.sp-cell.need .sp-st { color: #c9a8ff; }
.sp-cell.done { opacity: .55; }
.sp-cell.done .sp-st { color: var(--good); font-size: 14px; }
.sp-cell.ready { border-color: #ffd76a; background: linear-gradient(135deg, #4a3810, #2a2410); box-shadow: 0 0 10px rgba(255,215,106,.35); cursor: pointer; }
.sp-cell.ready { padding: 6px 7px; }
.sp-cell.ready .sp-st { position: static; transform: none; align-self: stretch; padding: 4px 0; border-radius: 7px; text-align: center; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #2a1a03; background: linear-gradient(#ffd97a, #e3a12f); }
button.sp-cell:active { transform: scale(.98); }

/* missions */
.sp-play { width: 100%; padding: 10px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--pn-gold2); background: linear-gradient(#1f2a22, #16201a); color: var(--text); }
.sp-play .hd { display: flex; align-items: center; gap: 8px; }
.sp-play .hd b { flex: 1; color: var(--pn-gold); }
.sp-play .hd span { font-weight: 800; }
.sp-play .hd i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--pn-gold2); font: 800 12px/1 system-ui; color: var(--pn-gold); }
.sp-play .pn-bar { height: 10px; margin: 6px 0 4px; }
.sp-play small { font-size: 12px; color: var(--muted); }
.sp-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.sp-sec small { font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.sp-sec small b { color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; }
.sp-mis { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #17201a; }
.sp-mis .ic { width: 34px; height: 34px; display: grid; place-items: center; font-size: 19px; border-radius: 10px; background: #0b110d; }
.sp-mis .ds { font-size: 13px; line-height: 1.25; }
.sp-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.sp-prog small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sp-mis .rt { display: grid; justify-items: end; gap: 4px; }
.sp-mis .rt b { font-size: 12px; color: #ffd76a; white-space: nowrap; }
.sp-mis.done { border-color: #3f7a3a; background: #16261a; }
.sp-mis.done .ds { color: var(--muted); }
.sp-go { min-width: 56px; min-height: 36px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.sp-go.claim { background: linear-gradient(#ffd97a, #e3a12f); border-color: #ffe7a6; color: #2a1a03; }
.sp-tick { font-size: 12px; font-weight: 800; color: var(--good); white-space: nowrap; }
.sp-tick.lock { color: var(--muted); }
.sp-foot { text-align: center; }

/* supply cards and the fund */
.sp-intro { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #0b110d; border: 1px solid var(--line); }
.sp-intro b { color: var(--pn-gold); }
.sp-intro span { font-size: 12px; color: var(--muted); }
.sp-card, .sp-fund { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--c, #3f7a3a);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c, #3f7a3a) 35%, transparent), transparent 60%), #17201a; }
.sp-fund { --c: #3f8f5f; }
.sp-card .hd, .sp-fund .hd { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sp-card .hd .ic, .sp-fund .hd .ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--c); }
.sp-card .tx, .sp-fund .tx, .sp-step .tx { min-width: 0; display: grid; gap: 1px; }
.sp-card .tx b, .sp-fund .tx b { font-size: 16px; }
.sp-card .tx small, .sp-fund .tx small, .sp-step .tx small { font-size: 12px; color: var(--muted); }
.sp-back, .sp-on { display: grid; justify-items: center; padding: 4px 8px; border-radius: 10px; font: 900 16px/1.1 system-ui; color: #2a1a03; background: linear-gradient(#ffd97a, #e3a12f); }
.sp-back small, .sp-on small { font: 700 9px/1.2 system-ui; text-transform: uppercase; letter-spacing: .03em; }
.sp-on { font-size: 12px; color: #d6ffd9; background: #1f3a1c; border: 1px solid #3f7a3a; }
.sp-on small { text-transform: none; font-size: 10px; color: #9fe0a8; }
.sp-sub { font-size: 12px; color: var(--muted); }
.sp-days { display: flex; flex-wrap: wrap; gap: 3px; }
.sp-days i { width: 14px; height: 8px; border-radius: 3px; background: #0b110d; border: 1px solid var(--line); }
.sp-days i.done { background: #3f7a3a; border-color: #5ec46b; }
.sp-days i.ready { background: #ffd76a; border-color: #fff3c8; }
.sp-today { display: grid; gap: 4px; }
.sp-today small { font-size: 12px; color: var(--text); font-weight: 700; }
.sp-card .ec-btn, .sp-fund .ec-btn { width: 100%; min-height: 46px; font-size: 15px; }
.sp-card .ec-btn.gold b, .sp-fund .ec-btn.gold b { font-weight: 900; }
.sp-link { width: 100%; min-height: 44px; background: none; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.sp-owned { padding: 8px 10px; border-radius: 10px; font-size: 13px; color: #9fe0a8; background: rgba(0,0,0,.3); border: 1px solid #3f7a3a; }
.sp-steps { display: grid; gap: 6px; }
.sp-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 62px; gap: 8px; align-items: center; min-height: 52px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: #17201a; }
.sp-step .ic { font-size: 20px; text-align: center; }
.sp-step .tx b { font-size: 14px; }
.sp-step > .sp-tick, .sp-step > .sp-go { justify-self: end; }
.sp-step.reached { border-color: #5a6a4a; }
.sp-step.ready { border-color: #ffd76a; background: linear-gradient(135deg, #4a3810, #2a2410); }
.sp-step.done { opacity: .6; }

/* popups */
.sp-confirm { display: grid; gap: 2px; }
.sp-line { padding: 5px 0 5px 16px; position: relative; font-size: 13px; line-height: 1.35; }
.sp-line::before { content: '•'; position: absolute; left: 3px; color: var(--pn-gold); }
.sp-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px 56px; gap: 6px; align-items: center; margin-bottom: 6px; }
.sp-stepper button { min-height: 44px; font-size: 18px; font-weight: 800; padding: 0; }
.sp-stepper b { text-align: center; font-size: 15px; }
.sp-rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.4; }
