/* Mashpit account UI — shared styles for the nav account widget + modal.
   Works on the dark arcade theme and the light Petty League theme. */

/* Nav slot */
#mashpit-account { display: inline-flex; align-items: center; }

.mnav-account {
  border: 1px solid #73747b; background: transparent; color: #f4f0df;
  padding: 10px 16px; border-radius: 5px; font-weight: 700; font-size: 12px;
  cursor: pointer;
}
.mnav-account:hover { border-color: #dcff68; color: #dcff68; }

.mnav-user { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.mnav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #dcff68; color: #171821; border: 0;
  font-weight: 800; font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.mnav-plus-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  background: #dcff68; color: #171821; border-radius: 3px; padding: 3px 6px;
}
.mnav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  min-width: 230px; background: #20212d; color: #f4f0df;
  border: 1px solid #ffffff2b; border-radius: 10px; padding: 10px;
  box-shadow: 0 16px 50px #000a;
}
.mnav-menu-email { font-size: 12px; font-weight: 700; padding: 6px 10px; word-break: break-all; }
.mnav-menu-plan { font-size: 11px; color: #a5a5ac; padding: 0 10px 8px; }
.mnav-menu a, .mnav-menu button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: #f4f0df;
  padding: 9px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.mnav-menu a:hover, .mnav-menu button:hover { background: #ffffff14; }

/* Sign-in modal */
.mnav-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 11, 19, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.mnav-modal {
  position: relative; width: 100%; max-width: 400px;
  background: #20212d; color: #f4f0df;
  border: 1px solid #ffffff2b; border-radius: 14px; padding: 28px;
  box-shadow: 0 24px 90px #000b;
}
.mnav-modal h2 { margin: 0 0 6px; font-size: 24px; }
.mnav-modal-sub { margin: 0 0 18px; font-size: 13px; color: #a5a5ac; }
.mnav-modal label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.mnav-modal input[type="email"] {
  width: 100%; box-sizing: border-box; padding: 12px;
  border: 1px solid #ffffff2b; border-radius: 8px;
  background: #171821; color: #f4f0df; font-size: 14px; margin-bottom: 14px;
}
.mnav-modal input[type="email"]:focus { outline: 2px solid #dcff68; outline-offset: 2px; }
.mnav-modal-go {
  width: 100%; padding: 13px; border: 0; border-radius: 8px;
  background: #dcff68; color: #171821; font-weight: 800; font-size: 14px; cursor: pointer;
}
.mnav-modal-go:hover { filter: brightness(1.06); }
.mnav-modal-msg { font-size: 12px; color: #a5a5ac; margin: 12px 0 0; line-height: 1.6; }
.mnav-modal-x {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; color: #f4f0df; font-size: 22px; cursor: pointer;
  padding: 4px 8px;
}

/* Upsell card (reused on game pages for Plus-gated features) */
.plus-upsell {
  border: 1px dashed #dcff6866; border-radius: 12px; padding: 22px;
  text-align: center; margin: 24px auto; max-width: 480px;
  background: #dcff6808;
}
.plus-upsell strong { display: block; font-size: 16px; margin-bottom: 8px; }
.plus-upsell p { font-size: 13px; color: #a5a5ac; margin: 0 0 14px; line-height: 1.6; }
.plus-upsell a {
  display: inline-block; background: #dcff68; color: #171821;
  font-weight: 800; padding: 11px 22px; border-radius: 8px; text-decoration: none;
}
/* Light-theme variant (Petty League page) */
#petty-wireframe .plus-upsell { background: #fff; border-color: #d8b93c; }
#petty-wireframe .plus-upsell p { color: #6b6f7a; }
#petty-wireframe .plus-upsell strong { color: #171821; }

@media (prefers-reduced-motion: reduce) {
  .mnav-modal-overlay { backdrop-filter: none; }
}

/* Petty League — private leagues section (light theme) */
#pl-leagues { max-width: 560px; margin: 8px auto 48px; padding: 0 20px; }
.pl-league-wrap h2 { font-size: 24px; letter-spacing: -0.5px; margin: 28px 0 4px; color: #171821; }
.pl-league-sub { font-size: 12px; color: #6b6f7a; margin: 0 0 14px; }
.pl-league-forms { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
@media (max-width: 480px) { .pl-league-forms { grid-template-columns: 1fr; } }
.pl-league-forms form { background: #fff; border: 1px solid #e3e1d8; border-radius: 12px; padding: 16px; }
.pl-league-forms h3 { margin: 0 0 10px; font-size: 15px; color: #171821; }
.pl-league-forms label { display: block; font-size: 12px; font-weight: 600; color: #3a3d47; margin-bottom: 10px; }
.pl-league-forms input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 10px; border: 1px solid #d8d5c9; border-radius: 8px; font-size: 14px; }
.pl-league-forms button[type="submit"] { width: 100%; padding: 11px; border: 0; border-radius: 8px; background: #171821; color: #f4f0df; font-weight: 700; font-size: 13px; cursor: pointer; }
.pl-form-msg { font-size: 12px; color: #6b6f7a; margin: 10px 0 0; line-height: 1.5; }
.pl-league-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pl-chip { border: 1px solid #d8d5c9; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: #3a3d47; }
.pl-chip.active { background: #171821; color: #f4f0df; border-color: #171821; }
.pl-detail { background: #fff; border: 1px solid #e3e1d8; border-radius: 12px; padding: 18px; margin-top: 14px; }
.pl-detail h3 { margin: 0 0 6px; font-size: 18px; color: #171821; }
.pl-trophy { font-size: 12px; font-weight: 600; color: #8a6d1a; background: #fdf3d7; border-radius: 6px; padding: 3px 8px; }
.pl-code { letter-spacing: 2px; font-family: monospace; }
.pl-detail h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #6b6f7a; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pl-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9a9da8; padding: 6px 8px; border-bottom: 1px solid #eee; }
.pl-table td { padding: 9px 8px; border-bottom: 1px solid #f3f1ea; color: #3a3d47; }
.pl-table tr.you td { font-weight: 800; color: #171821; background: #fdf6dd; }
.pl-week { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f3f1ea; color: #3a3d47; }

/* First-run sign-in prompt ("Keep your score — sign in free").
   Dark banner: legible on both the dark arcade theme and light Petty League. */
.mashpit-signin-prompt {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 400;
  display: flex; align-items: center; gap: 12px;
  background: #20212d; color: #f4f0df;
  border: 1px solid #dcff68; border-radius: 12px;
  padding: 12px 12px 12px 18px;
  box-shadow: 0 16px 50px #000a;
  font-size: 14px; max-width: calc(100vw - 36px);
}
.mashpit-signin-prompt .msp-text { white-space: nowrap; }
.mashpit-signin-prompt .msp-go {
  background: #dcff68; color: #171821; border: 0; border-radius: 8px;
  padding: 9px 16px; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.mashpit-signin-prompt .msp-go:hover { filter: brightness(1.06); }
.mashpit-signin-prompt .msp-x {
  background: transparent; border: 0; color: #a5a5ac;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 6px;
}
.mashpit-signin-prompt .msp-x:hover { color: #f4f0df; }
@media (max-width: 480px) {
  .mashpit-signin-prompt { gap: 8px; padding: 10px 10px 10px 14px; font-size: 13px; }
  .mashpit-signin-prompt .msp-text { white-space: normal; }
}
