/* ============================================================
   BLACKLENS — THE QUARTER PASS (round 480, js/qpass.js) and the ladder's prize items
   Gold for what is won, red for the one action; an item shines (sweep + glow + twinkles) until it is claimed, calm once it is.
   ============================================================ */

/* ---- an item emblem (assets/items/*.svg, 200 × 160) ---- */
.qp-it { position: relative; display: inline-block; flex: 0 0 auto; width: var(--iw, 64px); aspect-ratio: 200 / 160; isolation: isolate; line-height: 0; }
.qp-it > img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.qp-it.shine > img { animation: qp-glow 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,217,138,.35)); }
.qp-it.hot > img { animation-duration: 1.8s; }
.qp-it > .isw { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(110deg, rgba(255,248,220,0) 38%, rgba(255,248,220,.85) 50%, rgba(255,248,220,0) 62%) no-repeat; background-size: 260% 100%; background-position: 100% 0;
  animation: qp-sweep 3.2s ease-in-out infinite; mix-blend-mode: screen; }
.qp-it > .tw { position: absolute; width: calc(var(--iw, 64px) * .09); aspect-ratio: 1; translate: -50% -50%; background: #fff; pointer-events: none; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.qp-it.hot > .tw { animation: qp-tw 1.8s ease-in-out infinite; }
.qp-it > .tw.a { left: 16%; top: 22%; } .qp-it > .tw.b { left: 84%; top: 18%; animation-delay: .7s; } .qp-it > .tw.c { left: 78%; top: 78%; animation-delay: 1.2s; }
.qp-it.calm > img { filter: saturate(.7) brightness(.82); }
.qp-it.dim > img { filter: grayscale(.8) brightness(.55); }
@keyframes qp-sweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes qp-glow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255,217,138,.3)); } 50% { filter: drop-shadow(0 0 13px rgba(255,217,138,.9)); } }
@keyframes qp-tw { 0%, 100% { opacity: .1; transform: scale(.45); } 50% { opacity: 1; transform: scale(1); } }

/* ---- the ladder's rows: the prize as its item, filling the row (round 480) ---- */
.mzl-row .p > .qp-it { --iw: 76px; margin: -4px 0; }
.mzl-row.ready .p > .qp-it { --iw: 86px; }
.mzl-row .p .w b { font-size: 14px; }

/* ---- a coupon ticket and the stack's slots ---- */
.qp-slots { display: flex; gap: 5px; flex-wrap: nowrap; }
.qp-tk { flex: 1 1 0; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; color: #1a1608;
  clip-path: polygon(0 0, 100% 0, 100% 34%, 93% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 7% 50%, 0 34%); background: linear-gradient(135deg, #fff3c9, #d8c89a 40%, #ab9b6f 75%, #7a6a3c); }
.qp-tk b { font-size: 13px; font-weight: 700; white-space: nowrap; }
.qp-tk.big { height: 38px; } .qp-tk.big b { font-size: 15px; }
.qp-tk.empty { background: #232323; color: #5a5a5a; }
.qp-tk.huge { width: 220px; height: 96px; flex: 0 0 auto; } .qp-tk.huge b { font-size: 40px; }

/* ---- the strip (the Profile) ---- */
.qp-strip { position: relative; display: flex; flex-direction: column; gap: 7px; width: 100%; box-sizing: border-box; padding: 12px 34px 12px 14px; border: 1px solid #5a4a20; border-radius: 14px;
  background: linear-gradient(160deg, #221d10, #151209 70%); color: #f2f2f2; font: inherit; text-align: left; cursor: pointer; }
.qp-strip:hover { border-color: #ab9b6f; }
.qp-strip .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qp-strip .h b { font-size: 13px; letter-spacing: 1.6px; color: #d8c89a; }
.qp-strip .h em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #DC4F4C; white-space: nowrap; }
.qp-strip .c { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #a6a6a6; }
.qp-strip .c b { color: #f2f2f2; }
.qp-strip .s { font-size: 12px; color: #a6a6a6; } .qp-strip .s b { color: #d8c89a; } .qp-strip .s b.rd { color: #DC4F4C; }
.qp-strip .go { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: 22px; color: #d8c89a; }
.qp-strip.next .s { color: #d9d9d9; }
.prf-wal .qp-strip { margin: 4px 0 0; }

/* ---- the page ---- */
.qp-hero { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #ab9b6f; border-radius: 16px; background: linear-gradient(160deg, #2a2414, #15120a 75%); box-shadow: 0 0 24px rgba(216,200,154,.14); }
.qp-hero .a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qp-hero .a i { font-style: normal; font-size: 12px; letter-spacing: 2px; color: #d8c89a; }
.qp-hero .a b { font-size: 15px; letter-spacing: 1.4px; color: #DC4F4C; white-space: nowrap; }
.qp-hero .d { font-size: 12px; color: #a6a6a6; }
.qp-cpn { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #a6a6a6; letter-spacing: .5px; }
.qp-cpn b { color: #f2f2f2; }
.qp-draw { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #3d3420; border-radius: 12px; background: #14120c; }
.qp-draw.ready { border-color: #ab9b6f; background: #2a2414; }
.qp-draw .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qp-draw .t > i { font-style: normal; font-size: 11px; letter-spacing: 1.8px; color: #a6a6a6; }
.qp-draw .v { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #a6a6a6; }
.qp-draw .v b { font-size: 18px; font-weight: 700; color: #d8c89a; }
.qp-draw .t > .qp-btn { align-self: flex-start; margin-top: 4px; }
.qp-btn { min-height: 38px; padding: 0 16px; border: 1px solid #4a4a4a; border-radius: 10px; background: #1c1c1c; color: #f2f2f2; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; cursor: pointer; white-space: nowrap; }
.qp-btn.gold { border-color: #ab9b6f; background: #2a2414; color: #d8c89a; }
.qp-btn.seal { border: 0; background: #ab9b6f; color: #121212; animation: qp-seal 2.4s ease-in-out infinite; }
.qp-btn.red { border: 0; background: #DC4F4C; color: #fff; }
.qp-btn:disabled { opacity: .6; cursor: default; animation: none; }
@keyframes qp-seal { 0%, 100% { box-shadow: 0 0 0 rgba(216,200,154,0); } 50% { box-shadow: 0 0 18px rgba(216,200,154,.65); } }
.qp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 4px; }
.qp-tabs button { height: 40px; border: 1px solid #333; border-radius: 10px; background: #181818; color: #a6a6a6; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; }
.qp-tabs button.on { border-color: #ab9b6f; background: #2a2414; color: #d8c89a; }
.qp-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 2px 8px; font-size: 12px; letter-spacing: 1.6px; color: #a6a6a6; }
.qp-cap b { color: #d8c89a; white-space: nowrap; }
.qp-box .qp-cap { margin: 0 0 8px; }
.qp-qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.qp-q { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; border: 1px solid #2a2a2a; border-radius: 14px; background: #161616; }
.qp-q.got { border-color: #5a4a20; background: #1b1810; }
.qp-q.ready { border-color: #ab9b6f; background: #221d10; box-shadow: 0 0 18px rgba(216,200,154,.25); }
.qp-q .k { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1.6px; color: #7f7f7f; }
.qp-q .k .st { margin-left: auto; padding: 2px 6px; border: 1px solid #4a4a4a; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #a6a6a6; white-space: nowrap; }
.qp-q .k .st.got { border-color: #ab9b6f; color: #d8c89a; } .qp-q .k .st.rd { border-color: #DC4F4C; color: #fff; background: #DC4F4C; } .qp-q .k .st.prog { border-color: #d9d9d9; color: #f2f2f2; }
.qp-q .ti { font-size: 17px; font-weight: 700; color: #f2f2f2; }
.qp-q .tag { align-self: flex-start; padding: 2px 6px; border-radius: 4px; background: #262626; font-style: normal; font-size: 11px; letter-spacing: 1px; color: #d9d9d9; }
.qp-q .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d9d9d9; }
.qp-q .bar > span:first-child { flex: 1 1 auto; display: block; height: 7px; border-radius: 4px; background: #2e2e2e; overflow: hidden; }
.qp-q .bar i { display: block; height: 100%; background: #ab9b6f; }
.qp-q .bar > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.qp-q .r { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #262626; border-radius: 10px; background: #111; }
.qp-q.got .r { border-color: #3d3420; background: #14120c; }
.qp-q .r .w { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #a6a6a6; }
.qp-q .r .w i { font-style: normal; font-size: 10px; letter-spacing: 1.6px; color: #7f7f7f; }
.qp-q .r .w b { font-size: 15px; color: #d8c89a; }
.qp-q.secret { align-items: flex-start; border-style: dashed; border-color: #4a4a4a; }
.qp-q.secret .qm { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #222; color: #d8c89a; font-size: 28px; }
.qp-q.secret .s { font-size: 12px; color: #a6a6a6; }
.qp-box { padding: 14px 16px; margin: 10px 0 0; border: 1px solid #2e2e2e; border-radius: 14px; background: #181818; }
.qp-pr { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; min-height: 34px; border-bottom: 1px solid #242424; font-size: 12px; color: #d9d9d9; }
.qp-pr > span:nth-child(2) { color: #a6a6a6; } .qp-pr.g > span:nth-child(2) { color: #d8c89a; }
.qp-pr b { min-width: 72px; text-align: right; font-size: 14px; color: #f2f2f2; }
.qp-prt { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid #5a4a20; border-radius: 10px; background: #1b1810; }
.qp-prt > span { display: flex; flex-direction: column; font-size: 11px; color: #a6a6a6; } .qp-prt > span b { font-size: 13px; letter-spacing: 1.2px; color: #f2f2f2; }
.qp-prt > b { font-size: 24px; color: #d8c89a; }
.qp-fine { margin: 10px 0 0; font-size: 11px; line-height: 1.45; color: #7f7f7f; }
.qp-rules h4 { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: #d8c89a; }
.qp-rules p { margin: 0; font-size: 12px; line-height: 1.45; color: #d9d9d9; }
.qp-odds { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; }
.qp-odds > span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 4px 6px; border: 1px solid #2e2e2e; border-radius: 6px; background: #121212; }
.qp-odds > span b { font-size: 12px; color: #f2f2f2; } .qp-odds > span i { font-style: normal; font-size: 10px; color: #a6a6a6; }
.qp-odds > span.g { border-color: #ab9b6f; } .qp-odds > span.g b { color: #d8c89a; }
.qp-ended .big { display: block; margin: 2px 0 6px; font-size: 20px; letter-spacing: 1px; }
.qp-ended p, .qp-next p, .qp-keep p { margin: 4px 0; font-size: 12px; color: #d9d9d9; }
.qp-next { border-color: #ab9b6f; background: #1b1810; }
.qp-nq { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #2a2414; font-size: 13px; }
.qp-nq em { padding: 1px 5px; border-radius: 4px; background: #DC4F4C; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #fff; }
/* the computer: the quests on the left, the price and rules on the right */
.qp-pc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.qp-pc .qp-qs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.qp-pc .qp-r > .qp-box:first-child { margin-top: 0; }
.mzb.qpw { max-width: 1240px; margin: 0 auto; }
body.mv .mzb.qpw { max-width: none; }

/* ---- the claim pop-up ---- */
.qp-pop { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.82); }
.qp-pop[hidden] { display: none; }
.qp-pbox { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(380px, 100%); padding: 22px 18px 18px; box-sizing: border-box;
  border: 1px solid #ab9b6f; border-radius: 18px; background: radial-gradient(circle at 50% 30%, #2a2414, #121212 70%); color: #f2f2f2; text-align: center; }
.qp-pbox > * { position: relative; z-index: 1; }
.qp-pbox > .qp-burst { position: absolute; z-index: 0; left: 50%; top: 40%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(216,200,154,.22) 0 8deg, rgba(216,200,154,0) 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%); animation: qp-spinbg 14s linear infinite; }
@keyframes qp-spinbg { to { transform: rotate(360deg); } }
.qp-ph { font-style: normal; font-size: 11px; letter-spacing: 2px; color: #a6a6a6; }
.qp-pt { font-size: 15px; letter-spacing: 2px; color: #d8c89a; }
.qp-pv { font-size: 22px; font-weight: 700; } .qp-pv.big { font-size: 30px; color: #d8c89a; animation: qp-pop .5s ease-out both; }
.qp-ps { font-size: 12px; line-height: 1.45; color: #d9d9d9; } .qp-ps.dim { color: #7f7f7f; } .qp-ps.g { color: #d8c89a; }
.qp-pbox .qp-slots { width: 100%; }
.qp-pbox .qp-btn { width: 100%; min-height: 46px; }
.qp-flip { animation: qp-flip 1.1s cubic-bezier(.2,.8,.2,1) both; transform-style: preserve-3d; }
@keyframes qp-flip { 0% { transform: perspective(600px) rotateY(90deg) scale(.8); opacity: 0; } 60% { transform: perspective(600px) rotateY(-12deg) scale(1.06); opacity: 1; } 100% { transform: perspective(600px) rotateY(0) scale(1); } }
@keyframes qp-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
/* the draw's reel: a window one number tall; spinning = a fast loop, stop = slowing onto the last number */
.qp-spin { width: 150px; }
.qp-win { height: 96px; overflow: hidden; border: 2px solid #ab9b6f; border-radius: 14px; background: #0e0e0e; box-shadow: inset 0 10px 14px rgba(0,0,0,.7), inset 0 -10px 14px rgba(0,0,0,.7), 0 0 22px rgba(216,200,154,.35); }
.qp-reel { display: flex; flex-direction: column; }
.qp-reel b { flex: 0 0 96px; height: 96px; display: grid; place-items: center; font-size: 52px; font-weight: 700; color: #d8c89a; }
.qp-spin:not(.stop) .qp-reel { animation: qp-loop .9s linear infinite; }
.qp-spin.stop .qp-reel { animation: qp-land 2.6s cubic-bezier(.12,.82,.2,1) forwards; }
@keyframes qp-loop { from { transform: translateY(0); } to { transform: translateY(calc(-96px * var(--n) / 2)); } }
@keyframes qp-land { from { transform: translateY(0); } to { transform: translateY(calc(-96px * (var(--n) - 1))); } }

/* ---- an order (js/request.js REVIEW) ---- */
.qp-order { border-color: #5a4a20 !important; background: #1b1810 !important; }
.qp-use { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid #2a2414; cursor: pointer; }
.qp-use input { margin-top: 2px; width: 18px; height: 18px; accent-color: #ab9b6f; }
.qp-use span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.qp-use i { font-style: normal; font-size: 11px; color: #a6a6a6; }

/* ---- ADMIN → QUARTER PASS ---- */
.qpa { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.qpa-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qpa button, .qpa select, .qpa input { font: inherit; font-size: 12px; }
.qpa button { min-height: 30px; padding: 0 10px; border: 1px solid #4a4a4a; border-radius: 7px; background: #1c1c1c; color: #f2f2f2; cursor: pointer; }
.qpa button.on { border-color: #ab9b6f; color: #d8c89a; } .qpa button.red { border: 0; background: #DC4F4C; color: #fff; }
.qpa .say { color: #a6a6a6; }
.qpa-s, .qpa-odds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qpa-s label, .qpa-odds label { display: flex; align-items: center; gap: 5px; color: #a6a6a6; }
.qpa-s input:not([type="checkbox"]) { width: 120px; } .qpa-odds input { width: 54px; }
.qpa input, .qpa select { min-height: 28px; box-sizing: border-box; border: 1px solid #3a3a3a; border-radius: 6px; background: #111; color: #f2f2f2; padding: 0 6px; }
.qpa-qs { display: flex; flex-direction: column; gap: 6px; }
.qpa-q { position: relative; display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 8px 34px 8px 30px; border: 1px solid #2a2a2a; border-radius: 8px; background: #141414; }
.qpa-q .no { position: absolute; left: 9px; top: 9px; color: #d8c89a; }
.qpa-qc { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 4px 2px 8px; border: 1px solid #262626; border-radius: 7px; background: #141414; }
.qpa-qc .no { flex: 0 0 18px; color: #d8c89a; } .qpa-qc .k { flex: 0 0 auto; font-size: 10px; letter-spacing: 1px; color: #7f7f7f; }
.qpa-qc .t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f2f2f2; }
.qpa-qc .m { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #7f7f7f; }
.qpa-qc .r { flex: 0 0 auto; font-size: 10px; letter-spacing: 1px; color: #d8c89a; } .qpa-qc button { min-height: 26px; padding: 0 8px; }
.qpa-q .del { position: absolute; right: 6px; top: 6px; min-height: 24px; padding: 0 6px; }
.qpa-q .f { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.qpa-q .f > i { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #7f7f7f; }
.qpa-q .f.title { flex: 1 1 200px; } .qpa-q .f.tag, .qpa-q .f.tcg, .qpa-q .f.words { flex: 1 1 110px; }
.qpa-q .f.need input { width: 60px; } .qpa-q .f.kind select, .qpa-q .f.verdict select, .qpa-q .f.metric select, .qpa-q .f.reward select { width: 108px; }
.qpa-q .f input:not([type="checkbox"]) { width: 100%; }
.qpa-q .sc { display: flex; gap: 4px; align-items: center; min-height: 28px; } .qpa-q .sc input[type="number"] { width: 48px !important; }
.qpa-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.qpa-help { margin: 0; color: #7f7f7f; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .qp-it > img, .qp-it > .isw, .qp-it > .tw, .qp-btn.seal, .qp-pbox > .qp-burst, .qp-flip, .qp-pv.big, .qp-spin:not(.stop) .qp-reel { animation: none !important; }
  .qp-it > .isw { background-position: 62% 0; }
  .qp-spin.stop .qp-reel { animation: none; transform: translateY(calc(-96px * (var(--n) - 1))); }
}

/* the admin tiers keep their own cards: the Quarter Pass is the admin's (GOD) alone */
body:is([data-tier="accounting"], [data-tier="technical"]) #view-admin #set-qpass-card { display: none !important; }

/* ===== ROUND 488: the member's own price while booking (BLACK PRIVILEGE + the season coupons + the draw), the pass applied automatically ===== */
.rq-tierp.yours b { color: #d8c89a; }
.rq-tierp.yours small { color: #d8c89a; }
.rq-prr.yours b { color: #d8c89a; }
.rq-prr.yours b s { margin-right: 4px; color: #7f7f7f; font-weight: 400; }
.rq-yours { margin: 8px 2px 2px; font-size: 12px; line-height: 1.45; color: #a6a6a6; }
.rq-yours b { color: #d8c89a; letter-spacing: 1px; }
.qp-auto { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #2a2414; font-size: 13px; }
.qp-auto i { font-style: normal; font-size: 11px; color: #a6a6a6; }
.mzb-qpnote { margin: 6px 2px 0; font-size: 11px; color: #d8c89a; text-align: center; }
