/* =========================================================================
   R183 — Player Engagement System design board (/design/engagement).
   Namespaced .eg-*. Review-only pages (noindex); the winning treatments get
   lifted into live partials at build time. Palette matches the live gate
   (site.css .rs-*) + the nag round-2 direction: big icons, bold gold CTAs,
   FOMO, no muted small text.
   ========================================================================= */

.eg-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 18px 60px; }
.eg-kicker { color: #2fe6d8; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin: 0 0 6px; }
.eg-title { font-size: 30px; line-height: 1.1; margin: 0 0 10px; color: #fff; }
.eg-sub { color: #b9a9dd; font-size: 15px; line-height: 1.55; max-width: 78ch; }
.eg-sub b { color: #fff; }

/* ---- index cards ---- */
.eg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.eg-card { position: relative; background: #140a26; border: 1px solid #46307c; border-radius: 14px; padding: 18px 52px 18px 18px; display: flex; flex-direction: column; }
.eg-card h2, .eg-card p, .eg-card .eg-card-links { margin-right: -30px; }
.eg-card-num { position: absolute; top: 12px; right: 14px; color: #7b2dff; font-weight: 900; font-size: 20px; }
.eg-chip { display: inline-block; width: max-content; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2fe6d8; background: #0c0519; border: 1px solid #46307c; border-radius: 999px; padding: 3px 10px; }
.eg-card h2 { font-size: 18px; margin: 12px 0 6px; color: #fff; }
.eg-card p { color: #b9a9dd; font-size: 13.5px; line-height: 1.5; flex: 1; }
.eg-card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- live-changes ledger on the index ---- */
.eg-live { margin-top: 34px; background: #0e1f18; border: 1px solid #1f5c40; border-radius: 14px; padding: 18px; }
.eg-live h2 { margin: 0 0 8px; font-size: 18px; color: #4ade80; }
.eg-live li { color: #cfe9db; font-size: 13.5px; line-height: 1.6; }
.eg-live li b { color: #fff; }

/* ---- the mock game-page stage behind each modal ---- */
.eg-stage { position: relative; margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid #46307c; background: #06020f; min-height: 560px; }
.eg-stage-art { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(7px) brightness(.42) saturate(1.15); transform: scale(1.06); }
.eg-stage-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(6, 2, 15, .72); border-bottom: 1px solid rgba(70, 48, 124, .6); color: #b9a9dd; font-size: 12.5px; }
.eg-stage-bar b { color: #fff; }
.eg-stage-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff2d87; box-shadow: 0 0 8px #ff2d87; }

/* mock locked control buttons (modal #1 demo) */
.eg-mock-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 14px; background: rgba(6, 2, 15, .8); border-top: 1px solid rgba(70, 48, 124, .6); }
.eg-mock-btn { cursor: pointer; background: #140a26; color: #b9a9dd; border: 1px solid #46307c; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.eg-mock-btn .lock { color: #ffd24a; }
.eg-mock-btn:hover { border-color: #2fe6d8; color: #fff; }

/* ---- the modal overlay ---- */
.eg-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px 14px; background: rgba(6, 2, 16, .74); backdrop-filter: blur(4px); z-index: 5; overflow: auto; }
.eg-overlay[hidden] { display: none; }
/* R183b: the LIVE modals (partials/engagement-modals) ride the same system but
   cover the whole viewport, above the preroll/nag/gate stack. R183c: the z must
   also clear the MOBILE fullscreen takeover (.player-zone.rw-mobile-fs sits at
   z-index 2147483000 with its control bar at ...001) — at 1200 the modals were
   opening INVISIBLY underneath it, which read as "Save/Load don't trigger" on
   mobile (David live). */
.eg-overlay.eg-live { position: fixed; z-index: 2147483200; }
.eg-overlay.eg-live .eg-modal { margin: auto; }
.eg-modal { position: relative; width: 100%; max-width: 520px; background: linear-gradient(180deg, #1a0f30, #120823); border: 2px solid #7b2dff; border-radius: 18px; padding: 26px 24px 24px; text-align: center; color: #fff; box-shadow: 0 0 60px rgba(123, 45, 255, .45), 0 24px 70px rgba(0, 0, 0, .6); }
.eg-modal.gold { border-color: #ffd24a; box-shadow: 0 0 60px rgba(255, 210, 74, .35), 0 24px 70px rgba(0, 0, 0, .6); }
.eg-modal.wide { max-width: 640px; }
.eg-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #8f7fb8; font-size: 26px; line-height: 1; cursor: pointer; }
.eg-x:hover { color: #fff; }

.eg-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.eg-h { font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 27px; line-height: 1.12; margin: 0 0 10px; }
.eg-h .gold { color: #ffd24a; text-shadow: 0 0 18px rgba(255, 210, 74, .5); }
.eg-h .cyan { color: #2fe6d8; }
.eg-h .pink { color: #ff2d87; }
.eg-p { color: #d9cdf3; font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.eg-p b { color: #fff; }
.eg-shout { font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.3; color: #ffd24a; margin: 0 0 12px; }

/* CTAs */
.eg-cta { display: block; width: 100%; box-sizing: border-box; border: 0; cursor: pointer; text-decoration: none; background: linear-gradient(90deg, #ffd24a, #ff9d2e); color: #211302; font: inherit; font-weight: 900; font-size: 17px; letter-spacing: .02em; border-radius: 13px; padding: 16px; margin: 8px 0 0; box-shadow: 0 0 30px rgba(255, 176, 46, .5); transition: filter .15s; }
.eg-cta:hover { filter: brightness(1.08); }
.eg-cta.pink { background: linear-gradient(90deg, #ff2d87, #7b2dff); color: #fff; box-shadow: 0 0 30px rgba(255, 45, 135, .5); }
.eg-cta.cyan { background: linear-gradient(90deg, #2fe6d8, #1f9be6); color: #05222b; box-shadow: 0 0 30px rgba(47, 230, 216, .4); }
.eg-ghost { display: inline-block; margin-top: 12px; background: none; border: 0; color: #8f7fb8; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.eg-ghost:hover { color: #fff; }

/* feature chips (modal #1) */
.eg-feats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 14px; }
.eg-feat { font-size: 12.5px; font-weight: 700; color: #2fe6d8; background: #0c0519; border: 1px solid #2fe6d8; border-radius: 999px; padding: 6px 12px; }
.eg-feat.hot { color: #211302; background: #ffd24a; border-color: #ffd24a; }

/* premium strip inside a registration-first modal */
.eg-up { margin-top: 16px; padding: 13px 14px; border: 1px dashed #ffd24a; border-radius: 12px; background: rgba(255, 210, 74, .07); font-size: 13.5px; color: #ffe7ab; }
.eg-up a { color: #ffd24a; font-weight: 800; }

/* mini leaderboard (modal #2) */
.eg-board { margin: 0 0 6px; border: 1px solid #46307c; border-radius: 12px; overflow: hidden; }
.eg-board-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; background: #0c0519; }
.eg-board-row + .eg-board-row { border-top: 1px solid #241542; }
.eg-board-rank { color: #7b2dff; font-weight: 900; width: 22px; }
.eg-board-name { flex: 1; text-align: left; font-weight: 700; color: #fff; }
.eg-board-won { color: #4ade80; font-weight: 900; }

/* video frame (modal #3A) */
.eg-video { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #46307c; background: #000; margin: 0 0 12px; }
.eg-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.eg-video .eg-flag { position: absolute; top: 8px; left: 8px; }

/* LOUD placeholder flags */
.eg-flag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #1a0b00; background: #ff9d2e; border-radius: 7px; padding: 4px 9px; }

/* stat trio (modal #3B) */
.eg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.eg-stat { background: #0c0519; border: 1px solid #46307c; border-radius: 12px; padding: 12px 8px; }
.eg-stat b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 20px; color: #2fe6d8; }
.eg-stat span { font-size: 11.5px; color: #b9a9dd; font-weight: 700; }

/* ---- the prize wheel (modal #4) ---- */
.eg-picks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.eg-pick-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.eg-pick-label { width: 100%; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8f7fb8; }
.eg-pick { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #b9a9dd; background: #0c0519; border: 1px solid #46307c; border-radius: 999px; padding: 6px 12px; }
.eg-pick.on { color: #05222b; background: #2fe6d8; border-color: #2fe6d8; }
.eg-wheel-zone { position: relative; width: 300px; height: 300px; margin: 6px auto 14px; }
.eg-wheel { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 5px solid #7b2dff; box-shadow: 0 0 40px rgba(123, 45, 255, .55), inset 0 0 30px rgba(0, 0, 0, .7); transform: rotate(0deg); }
.eg-wheel.spinning { transition: transform 5s cubic-bezier(.12, .68, .16, 1); }
.eg-slice { position: absolute; inset: 0; background-size: cover; background-position: center; }
.eg-slice-label { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); max-width: 86px; font-size: 9px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffdf7e, #f5a201); border: 3px solid #fff3; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; color: #211302; z-index: 3; box-shadow: 0 0 22px rgba(255, 210, 74, .8); }
.eg-pointer { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 22px solid #ffd24a; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); z-index: 4; }
.eg-result { border: 1px solid #ffd24a; border-radius: 14px; overflow: hidden; margin: 0 0 12px; background: #0c0519; }
.eg-result img { display: block; width: 100%; height: 180px; object-fit: cover; }
.eg-result-name { font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 20px; color: #ffd24a; padding: 12px 14px 4px; }
.eg-result-sub { color: #b9a9dd; font-size: 13px; padding: 0 14px 12px; }
.eg-redirect { height: 6px; margin: 0 14px 14px; background: #241542; border-radius: 99px; overflow: hidden; }
.eg-redirect i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd24a, #ff9d2e); transition: width 3.4s linear; }

/* review box (modal #4A) */
.eg-review { width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical; background: #0c0519; border: 2px solid #46307c; border-radius: 12px; color: #fff; font: inherit; font-size: 14px; padding: 12px; margin: 0 0 6px; }
.eg-review:focus { outline: 0; border-color: #2fe6d8; }
.eg-points-note { font-size: 13px; color: #ffe7ab; margin: 0 0 12px; }
.eg-posted { border: 1px solid #1f5c40; background: #0e1f18; color: #cfe9db; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; text-align: left; }
.eg-posted b { color: #4ade80; }

/* tournament create (modal #5 premium) */
.eg-tourney { text-align: left; border: 1px solid #46307c; border-radius: 12px; background: #0c0519; padding: 14px; margin-bottom: 12px; }
.eg-tourney-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #b9a9dd; padding: 4px 0; }
.eg-tourney-row b { color: #fff; }
.eg-stakes { display: flex; gap: 8px; margin: 10px 0 4px; }
.eg-stake { flex: 1; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px; color: #b9a9dd; background: #140a26; border: 1px solid #46307c; border-radius: 10px; padding: 10px 6px; }
.eg-stake.on { color: #211302; background: #ffd24a; border-color: #ffd24a; }
.eg-shortfall { margin-top: 10px; border: 1px dashed #ff9d2e; background: rgba(255, 157, 46, .08); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #ffd9ad; }
.eg-shortfall b { color: #ff9d2e; }

/* did-you-know benefit rows (modal #6) */
.eg-bens { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; text-align: left; }
.eg-ben { display: flex; gap: 12px; align-items: center; background: #0c0519; border: 1px solid #46307c; border-radius: 12px; padding: 12px 14px; }
.eg-ben-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7b2dff, #ff2d87); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.eg-ben-txt { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.eg-fomo { font-family: 'Chakra Petch', sans-serif; font-weight: 800; font-size: 16px; color: #ff2d87; margin: 0 0 4px; }

/* free-controller (modal #7) */
.eg-pad-hero { position: relative; margin: 0 0 12px; border: 1px solid #46307c; border-radius: 14px; background: radial-gradient(circle at 50% 20%, #241542, #0c0519 70%); padding: 18px 12px 10px; }
.eg-pad-hero svg { display: block; width: 78%; max-width: 330px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .65)); }
.eg-pad-hero .eg-flag { position: absolute; top: 10px; left: 10px; }
.eg-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 4px; }
.eg-price b { font-family: 'Chakra Petch', sans-serif; font-size: 34px; color: #ffd24a; }
.eg-price span { color: #b9a9dd; font-size: 13.5px; }
.eg-strike { color: #8f7fb8; text-decoration: line-through; font-size: 15px; }
.eg-ship { text-align: left; }
.eg-ship label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8f7fb8; margin: 10px 0 4px; }
.eg-ship input { width: 100%; box-sizing: border-box; background: #0c0519; border: 2px solid #46307c; border-radius: 10px; color: #fff; font: inherit; font-size: 14px; padding: 11px 12px; }
.eg-ship input:focus { outline: 0; border-color: #2fe6d8; }
.eg-ship .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- #9 GOTD: "rate this game" star widget + screenshot ---- */
.eg-rate-shot { margin: 4px auto 12px; max-width: 320px; border-radius: 12px; overflow: hidden; border: 1px solid #46307c; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.eg-rate-shot img { display: block; width: 100%; height: auto; }
.eg-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 6px 0 2px; }
.eg-star { background: none; border: 0; padding: 3px; cursor: pointer; line-height: 0; border-radius: 8px; }
.eg-star svg { width: 26px; height: 26px; fill: #3a2b5e; transition: fill .08s ease, transform .08s ease; }
.eg-star:hover svg { transform: scale(1.12); }
.eg-star.on svg { fill: #ffd24a; }
.eg-star:focus-visible { outline: 2px solid #2fe6d8; outline-offset: 1px; }
.eg-stars-out { display: block; text-align: center; min-height: 1.1em; margin: 0 0 8px; font-family: 'Chakra Petch', sans-serif; font-weight: 800; color: #ffd24a; font-size: 15px; letter-spacing: .04em; }

/* ---- shared page chrome under the stage ---- */
.eg-rules { margin-top: 18px; background: #140a26; border: 1px solid #46307c; border-radius: 14px; padding: 16px 18px; }
.eg-rules h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #2fe6d8; }
.eg-rules p, .eg-rules li { color: #b9a9dd; font-size: 13.5px; line-height: 1.6; }
.eg-rules b { color: #fff; }
.eg-demobar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.eg-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: #140a26; border: 1px solid #46307c; border-radius: 10px; padding: 9px 14px; }
.eg-btn:hover { border-color: #2fe6d8; }
.eg-btn.on { background: #2fe6d8; color: #05222b; border-color: #2fe6d8; }
.eg-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .eg-title { font-size: 24px; }
  .eg-h { font-size: 22px; }
  .eg-stats { grid-template-columns: 1fr; }
  .eg-wheel-zone { width: 250px; height: 250px; }
  .eg-modal { padding: 20px 16px 18px; }
  .eg-star { padding: 2px; }
  .eg-star svg { width: 22px; height: 22px; }
}
