/* =============================================================================
   PREMIUM-NAG modal design candidates (review only, /design/premium-nag).
   Uses the live theme palette vars so the winner is implementation-faithful:
   --bg --panel --panel-2 --line --txt --dim --accent --accent-2 (all themes).
   Layout: a review bar, a faux "paused game" backdrop, and the modal on top.
   Each candidate is scoped under .nagN and is >=75% structurally distinct.
   ========================================================================== */

/* ---- review chrome ------------------------------------------------------- */
.nag-rev { position: sticky; top: 0; z-index: 40; background: #0b0b12; border-bottom: 1px solid #232333;
  padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.nag-rev-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nag-rev-label { color: #8b8ba3; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; min-width: 118px; }
.nag-rev-tab, .nag-rev-state, .nag-rev-step, .nag-rev-index {
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 11px;
  border: 1px solid #2c2c3e; border-radius: 7px; background: #16161f; color: #cfd0e6;
  font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nag-rev-tab { min-width: 30px; }
.nag-rev-tab.on, .nag-rev-state.on { background: var(--accent, #ff2d95); border-color: var(--accent, #ff2d95); color: #0a0118; }
.nag-rev-index { margin-left: auto; background: transparent; color: #8b8ba3; }
.nag-rev-hint { color: #6f6f88; font-size: 11.5px; }

/* ---- stage: the paused game the modal covers ----------------------------- */
.nag-stage { position: relative; min-height: 82vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.nag-stage::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255,255,255,.06), transparent 60%),
    repeating-linear-gradient(0deg, #0d0d14 0 2px, #0a0a10 2px 4px),
    linear-gradient(135deg, #141425, #0a0a12); }
.nag-stage::after { content: "PAUSED — your game is behind the pop-open"; position: absolute; z-index: 0;
  top: 14px; left: 50%; transform: translateX(-50%); color: #4a4a63; font-size: 12px; letter-spacing: .1em; }
.nag-stage[data-step] { }
.nag-clouds { position: absolute; inset: 0; z-index: 1; backdrop-filter: blur(3px);
  background: rgba(6,6,12,.55); }

/* steps: one at a time */
[data-nag-step] { display: none; position: relative; z-index: 2; width: 100%; }
[data-nag-step].is-active { display: block; }

/* ===== LIVE production overlay (this sheet is loaded on non-premium game
   pages; the .nag-rev/.nag-stage review chrome above is unused there). ===== */
.pnag-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center;
  justify-content: center; padding: 24px 14px; overflow-y: auto; }
.pnag-overlay[hidden] { display: none; }
.pnag-clouds { position: absolute; inset: 0; z-index: 0; background: rgba(6,6,12,.74); backdrop-filter: blur(5px); }
.pnag-scroll { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: auto; }

/* shared modal shell + verbatim copy furniture ----------------------------- */
.nag-card { width: min(560px, 100%); margin: 0 auto; background: var(--panel, #15151f);
  border: 1px solid var(--line, #2a2a3c); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  color: var(--txt, #edeef5); overflow: hidden; }
.nag-pad { padding: 26px 26px 24px; }
.nag-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #ff2d95); font-weight: 800; }
.nag-h { font-size: 27px; line-height: 1.1; margin: 8px 0 4px; font-weight: 900; }
.nag-sub { color: var(--dim, #a7a7bd); font-size: 14.5px; margin: 0 0 14px; }
.nag-price { font-size: 15px; font-weight: 800; }
.nag-price b { font-size: 20px; }
.nag-price span { color: var(--dim, #a7a7bd); font-weight: 600; }
.nag-perks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 9px; }
.nag-perks li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.35;
  padding: 10px 12px; background: var(--panel-2, #1d1d2b); border: 1px solid var(--line, #2a2a3c); border-radius: 10px; }
.nag-law { color: var(--dim, #a7a7bd); font-size: 13px; font-style: italic; margin: 12px 0 0; }
.nag-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 52px; border: 0; border-radius: 12px; background: var(--accent, #ff2d95); color: var(--bg, #0a0118);
  font-size: 16px; font-weight: 900; cursor: pointer; text-decoration: none; }
.nag-cta.alt { background: var(--accent-2, #33e1ed); }
.nag-decline { display: inline-block; width: 100%; margin-top: 10px; background: transparent; border: 0;
  color: var(--dim, #a7a7bd); font-size: 13.5px; text-decoration: underline; cursor: pointer; text-align: center; }
.nag-fold { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line, #2a2a3c); font-size: 12.5px; color: var(--dim,#a7a7bd); }

/* the ad-or-pay choice (verbatim law copy) + two buttons ------------------- */
.nag-choice-body { font-size: 15.5px; line-height: 1.5; margin: 6px 0 18px; }
.nag-choice-btns { display: grid; gap: 10px; }
.nag-choice-btns .nag-cta.small { height: 46px; font-size: 15px; }

/* ad interstitial — NO skip; "Keep Playing" greyed until it ends ----------- */
.nag-ad { width: min(640px, 100%); margin: 0 auto; background: #05050a; border: 1px solid #23233a;
  border-radius: 14px; overflow: hidden; color: #e7e7f2; }
.nag-ad-screen { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative;
  background: repeating-linear-gradient(45deg, #101024 0 14px, #14142c 14px 28px); }
.nag-ad-screen-text { color: #cfcfe6; font-size: 15px; letter-spacing: .04em; padding: 0 16px; text-align: center; }
/* Hilltop video-player embed fills the 16/9 screen (badge stays on top). */
.nag-ad-screen .ad-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.nag-ad-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: .08em; }
.nag-ad-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #0b0b16; }
.nag-ad-status { color: #e7e7f2; font-size: 15px; font-weight: 600; }
.nag-ad-status b { color: #ffd23f; font-variant-numeric: tabular-nums; font-weight: 900; }
.nag-ad-btn { min-width: 150px; }
.nag-ad-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.7); box-shadow: none; }

/* success note ------------------------------------------------------------- */
.nag-note { width: min(460px, 100%); margin: 0 auto; text-align: center; background: var(--panel, #15151f);
  border: 1px solid var(--line, #2a2a3c); border-radius: 14px; padding: 26px; color: var(--txt, #edeef5); }
.nag-note h3 { margin: 6px 0; font-size: 21px; }
.nag-note p { color: var(--txt, #edeef5); margin: 6px 0; font-size: 15px; }
.nag-note p.small { color: var(--dim,#a7a7bd); font-size: 13px; }
.nag-note .nag-cta { width: auto; padding: 0 20px; height: 44px; margin-top: 14px; }

/* STEP 4 — back-to-game FOMO push (readable; no muted/small print) ---------- */
.nag-back { text-align: center; }
.nag-back-h { font-size: 26px; font-weight: 900; margin: 2px 0 12px; color: var(--txt,#edeef5); }
.nag-back-p { font-size: 16px; line-height: 1.5; margin: 6px 0; color: var(--txt,#edeef5); }
.nag-back-but { font-size: 30px; font-weight: 900; letter-spacing: .14em; margin: 18px 0 4px; color: var(--accent,#ff2d95); }
.nag-back-fomo { font-size: 18px; line-height: 1.45; font-weight: 800; margin: 8px 0; color: var(--txt,#edeef5); }
.nag-back-btns { display: grid; gap: 12px; margin-top: 20px; }

/* FOMO buttons (shared): gold "UNLOCK ALL of PREMIUM" + grey decline -------- */
.nag-cta-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 58px; padding: 6px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffd23f, #f5a800); color: #1a1200;
  font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 26px rgba(245,168,0,.4); animation: nagGoldPulse 1.8s ease-in-out infinite; }
@keyframes nagGoldPulse { 0%,100% { box-shadow: 0 8px 24px rgba(245,168,0,.3); } 50% { box-shadow: 0 10px 36px rgba(255,210,63,.7); } }
.nag-cta-gold:hover { filter: brightness(1.06); }
.nag-cta-grey { display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; padding: 0 16px; border: 1px solid #4a4a58; border-radius: 12px;
  background: #2b2b35; color: #d6d6e2; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.nag-cta-grey:hover { background: #33333f; }

/* big candidate icon (new hybrids) ----------------------------------------- */
.nag-bigicon { width: 76px; height: 76px; display: block; margin: 4px auto 6px; }
.nag-icons { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 4px 0 8px; }

/* "Return to Limited Experience" dismiss toast ----------------------------- */
.nag-dismiss-toast { position: relative; z-index: 2; width: min(520px, 100%); margin: 0 auto; text-align: center;
  background: var(--panel,#15151f); border: 1px solid var(--line,#2a2a3c); border-radius: 12px; padding: 16px 18px;
  color: var(--txt,#edeef5); font-size: 15px; }
.nag-dismiss-toast b { color: var(--accent,#ff2d95); }
.nag-toast-link { background: none; border: 0; color: var(--accent-2,#33e1ed); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: 14px; }
.nag-stage.is-dismissed .nag-clouds { backdrop-filter: none; background: rgba(6,6,12,.18); }

/* premium-suppressed note (state=premium) ---------------------------------- */
.nag-suppressed { position: relative; z-index: 2; width: min(520px, 100%); margin: 0 auto; text-align: center;
  background: var(--panel, #15151f); border: 1px dashed var(--accent-2, #33e1ed); border-radius: 14px; padding: 30px; }
.nag-suppressed h3 { font-size: 21px; margin: 0 0 6px; }
.nag-suppressed p { color: var(--dim, #a7a7bd); margin: 0; }

/* state-conditional copy (anon vs free) ------------------------------------ */
.only-anon, .only-free { display: none; }
.state-anon .only-anon { display: block; }
.state-free .only-free { display: block; }

/* config-notes annotation -------------------------------------------------- */
.nag-config { position: relative; z-index: 2; width: min(680px, 100%); margin: 22px auto 0;
  background: #0b0b14; border: 1px solid #22223400; border-top: 1px solid #23233a; border-radius: 12px;
  padding: 14px 16px; color: #9a9ab4; font-size: 12.5px; }
.nag-config b { color: #cdcde6; }
.nag-config code { background: #17172400; color: var(--accent, #ff2d95); font-weight: 700; }

/* ============================ CANDIDATE 1 — THE PAYDAY (hybrid) =========== */
.nag1 .nag-card { background: linear-gradient(180deg, #0e1a12, #0a1410); border-color: #235c39; }
.nag1 .nag-kicker { color: #57e08a; font-size: 13px; }
.nag1 .nag-h { font-size: 30px; }
.nag1 .nag-bigicon { color: #ffd23f; }
.nag1-figs { display: flex; align-items: stretch; gap: 12px; margin: 16px 0; }
.nag1-fig { flex: 1; border: 1px solid var(--line,#2a2a3c); border-radius: 12px; padding: 14px; background: #0b1a11; text-align: center; }
.nag1-fig .lbl { font-size: 13px; font-weight: 700; color: #cfe9d8; }
.nag1-fig .amt { font-size: 34px; font-weight: 900; margin-top: 4px; }
.nag1-fig.free .amt { color: #ff5a5a; }
.nag1-fig.prem .amt { color: #57e08a; }
.nag1 .nag-perks li { background: #0b1a10; border-color: #1c4a2e; }

/* ============================ CANDIDATE 2 — CASH-OUT COUNTER ============== */
.nag2 .nag-card { background: linear-gradient(180deg, #0c1512, #0a0f14); border-color: #1c3a2c; }
.nag2 .nag-kicker { color: #38c98e; }
.nag2-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.nag2-tile { border: 1px solid var(--line, #2a2a3c); border-radius: 12px; padding: 14px; background: #0b1116; }
.nag2-tile .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a9a92; }
.nag2-tile .big { font-size: 30px; font-weight: 900; margin-top: 4px; }
.nag2-tile.free .big { color: #ff6b6b; }
.nag2-tile.prem .big { color: #38c98e; }
.nag2-receipt { border: 1px dashed #2a4a3a; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #b9d3c7; background: #0a0f0c; }
.nag2-receipt div { display: flex; justify-content: space-between; padding: 3px 0; }
.nag2 .nag-cta { background: #38c98e; color: #05130c; }
.nag2 .nag-goal { text-align: center; font-size: 13px; color: #8fd7b6; margin-top: 8px; }

/* ============================ CANDIDATE 3 — THE STRAIGHT TALK (hybrid) ==== */
.nag3 .nag-card { background: var(--panel,#15151f); border-color: var(--line,#2a2a3c); }
.nag3 .nag-kicker { color: var(--accent-2,#33e1ed); font-size: 13px; }
.nag3 .nag-h { font-size: 30px; }
.nag3 .nag-bigicon { color: var(--accent,#ff2d95); }
.nag3-truth { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--txt,#edeef5);
  background: var(--panel-2,#1d1d2b); border: 1px solid var(--line,#2a2a3c); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.nag3-truth b { color: #ffd23f; }
.nag3 .nag-perks li { font-size: 15px; }

/* ============================ CANDIDATE 4 — THE WINNERS GET PAID (hybrid) = */
.nag4 .nag-card { background: linear-gradient(180deg, #1a0e12, #140a0c); border-color: #6a2436; }
.nag4 .nag-kicker { color: #ff6b6b; font-size: 13px; }
.nag4 .nag-h { font-size: 31px; line-height: 1.08; }
.nag4 .nag-h .paid { color: #ffd23f; }
.nag4 .nag-bigicon { color: #ffd23f; }
.nag4-fomo { font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--txt,#edeef5); margin: 12px 0; }
.nag4 .nag-perks li { background: #1c0e12; border-color: #4a1c26; }

/* ============================ CANDIDATE 5 — HONEST LATTE ================== */
.nag5 .nag-card { width: min(520px, 100%); background: var(--panel,#15151f); }
.nag5 .nag-pad { padding: 30px 30px 26px; }
.nag5 .nag-kicker { color: var(--dim,#a7a7bd); letter-spacing: .18em; }
.nag5 .nag-h { font-size: 30px; }
.nag5-latte { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.nag5-latte svg { width: 34px; height: 34px; color: var(--accent,#ff2d95); flex: none; }
.nag5-latte b { font-size: 17px; }
.nag5 .nag-perks li { background: transparent; border: 0; padding: 4px 0; }
.nag5 .nag-perks li::before { content: "—"; color: var(--accent,#ff2d95); font-weight: 900; }
.nag5 .nag-choice-body { background: var(--panel-2,#1d1d2b); border: 1px solid var(--line,#2a2a3c);
  border-radius: 12px; padding: 16px; font-size: 15px; }
.nag5 .nag-cta { background: var(--txt,#edeef5); color: var(--bg,#0a0118); }
.nag5 .nag-cta.alt { background: transparent; color: var(--txt,#edeef5); border: 1px solid var(--line,#2a2a3c); }

/* responsive --------------------------------------------------------------- */
@media (max-width: 560px) {
  .nag-h { font-size: 23px; }
  .nag2-readout { grid-template-columns: 1fr; }
  .nag1-figs { flex-direction: column; }
  .nag-back-but { font-size: 26px; }
  .nag-cta-gold { font-size: 16px; }
  .nag-rev-label { min-width: 0; }
}
