/* Paper Trench: prizes styles (loaded after styles.css; this file belongs to one builder) */

/* ---- "How winners get paid": three steps with small icons ---- */
.pz-pay { margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); text-align: left; }
.pz-pay .pz-pay-h { margin: 0 0 10px; font: 700 15px/1.2 var(--font-head); color: var(--text); letter-spacing: 0; }
.pz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pz-step { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; background: none; border: 0; }
.pz-step::before { content: none; }
.pz-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); border: 1px solid rgba(77, 124, 255, 0.5); color: var(--blue-hi); }
.pz-ico .ico { width: 16px; height: 16px; }
.pz-step-b { display: block; min-width: 0; }
.pz-step-t { display: block; margin: 0; color: var(--text); font-size: 14px; line-height: 1.3; }
.pz-step-d { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pz-note { margin: 10px 0 0; color: var(--muted); }
.pz-note b { color: var(--warn); font-weight: 600; }
.modal .pz-pay { background: var(--bg-3); }
.prize-card .pz-pay-card { margin: 10px 0; padding: 12px; background: var(--bg); }

/* Rules: the block sits at the top as its own anchor, three across on a wide screen */
.pz-pay-rules { margin: 18px 0 8px; padding: 18px; scroll-margin-top: 110px; }
.pz-pay-rules .pz-pay-h { font-size: 22px; margin-bottom: 14px; }
.pz-pay-rules .pz-step-t { font-size: 16px; }
.pz-pay-rules .pz-step-d { font-size: 14px; }
.pz-who { margin: 0 0 18px; padding: 4px 18px 10px; border-left: 2px solid var(--blue); }
.pz-who h3 { margin: 8px 0 4px; }
@media (min-width: 900px) {
  .pz-pay-rules .pz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ---- Save my score dialog ---- */
.pz-why { margin: 0 0 8px; font-size: 16px; line-height: 1.4; color: var(--text); }
.pz-safe { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--up-soft); border: 1px solid rgba(47, 208, 138, 0.35); color: var(--text); font-size: 14px; line-height: 1.4; }
.pz-safe .ico { flex: 0 0 18px; width: 18px; height: 18px; color: var(--up); margin-top: 1px; }
.pz-nowallet { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.pz-nowallet b { display: block; color: var(--text); margin-bottom: 2px; }
.pz-nowallet span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---- guest card with a remembered dismiss ---- */
.pz-guest { position: relative; padding-right: 48px; }
.pz-guest .pz-x { position: absolute; top: 10px; right: 10px; }

/* ---- the floating nudge: one line, one button, one dismiss ---- */
.pz-nudge { position: fixed; z-index: 55; left: 50%; bottom: calc(var(--tab-h, 0px) + 16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid rgba(77, 124, 255, 0.6); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(77, 124, 255, 0.12); color: var(--text); font-size: 14px; line-height: 1.35; }
.pz-nudge > .ico { flex: 0 0 18px; width: 18px; height: 18px; color: var(--blue-hi); }
.pz-nudge-final { border-color: var(--warn); }
.pz-nudge-final > .ico { color: var(--warn); }
.pz-nudge-t { flex: 1 1 auto; min-width: 0; }
.pz-nudge .btn { flex: 0 0 auto; white-space: nowrap; }
.pz-nudge .pz-nudge-x { flex: 0 0 auto; }
@media (max-width: 759px) {
  .pz-nudge { flex-wrap: wrap; font-size: 13px; }
  .pz-nudge-t { flex-basis: calc(100% - 70px); }
  .pz-nudge .btn { margin-left: 28px; }
}

/* ---- "You're in the running" / not yet ---- */
.pz-run { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--muted); }
.pz-run b { color: var(--text); }
.pz-run-ico { flex: 0 0 18px; display: flex; }
.pz-run-ico .ico { width: 16px; height: 16px; margin-top: 1px; }
.pz-run-ok { border-color: rgba(47, 208, 138, 0.4); background: var(--up-soft); }
.pz-run-ok .pz-run-ico { color: var(--up); }
.pz-run-wait .pz-run-ico { color: var(--warn); }

/* ---- after a final: the winner's own card ---- */
.pz-won { border-color: rgba(77, 124, 255, 0.5); margin-bottom: 12px; }
.pz-won h2 { margin-top: 0; }
.pz-won-sent { border-color: rgba(47, 208, 138, 0.5); background: linear-gradient(90deg, var(--up-soft), transparent 80%), var(--bg-2); }

/* The season page and the guest's own page already carry the same words in a card: no second nudge on top of it. */
body[data-view="season"] .pz-nudge-top10, body[data-view="me"] .pz-nudge-top10 { display: none; }

/* The prize card is taller now: the season title starts at the top instead of hanging at the bottom of the row. */
.season-head { align-items: start; }
/* Season: "How winners get paid" runs the full width under the clock and the prize card, three across on a wide screen. */
.season-head > .pz-pay-season { grid-column: 1 / -1; margin: 0 0 22px; }
@media (min-width: 900px) {
  .season-head > .pz-pay-season .pz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* The guided first trade owns that corner while it runs: the nudge waits. */
body:has(.coach) .pz-nudge { display: none; }
