/* ManaSlips v3.31 — focused mobile research and readable player comparison.
   This file is included ONLY on /research/, after legacy styles. */

/* Make the research board feel like one workspace, not stacked dashboards. */
body.ss3-board .ss3-hero{padding-top:clamp(14px,2vw,26px);padding-bottom:clamp(14px,2vw,25px)}
body.ss3-board .ss3-hero .ss3-muted{max-width:48ch;line-height:1.45}
body.ss3-board .ss3-metrics{gap:9px;margin-top:12px;margin-bottom:13px}
body.ss3-board .ss3-metrics article{padding:12px 14px;border-radius:12px}
body.ss3-board .ss3-metrics strong{font-size:clamp(19px,2.5vw,28px)}
body.ss3-board .ss3-metrics article span{font-size:11px}
body.ss3-board .ss3-metrics article small{font-size:10px;opacity:.75}
body.ss3-board .ss3-filter-panel{padding:clamp(12px,2vw,18px);border-radius:14px}
body.ss3-board .ss3-games-section{margin-top:18px}
body.ss3-board .ss3-section-head{margin-bottom:12px}
body.ss3-board .ss3-section-head h2{line-height:1.14}
body.ss3-board #ms5511-sync-summary{
  margin:6px 0 0;padding:9px 11px;background:#19182a;border:1px solid #423858;
  border-radius:10px;color:#c9bbdc;font-size:12px;line-height:1.5
}
body.ss3-board #ms5511-upload-status{margin:3px 0 13px;padding:0 3px;font-size:11px;color:#968daa}
body.ss3-board #ms539-visibility-member{
  margin:10px 0!important;padding:12px!important;border:1px solid #463956!important;
  border-radius:13px!important;background:#19182c
}
body.ss3-board #ms539-visibility-member>strong{display:block;font-size:13px;color:#dfd3ed;margin-bottom:8px}
body.ss3-board #ms539-visibility-member>div:nth-child(2){display:flex;flex-wrap:wrap;gap:7px}
body.ss3-board #ms539-visibility-member button{
  cursor:pointer;margin:0!important;padding:9px 12px!important;min-height:37px;
  border:1px solid #62527e!important;border-radius:10px!important;
  color:#eadcf4!important;background:#28233e!important;font-size:12px;font-weight:700
}
body.ss3-board #ms539-visibility-member button[aria-pressed="true"]{
  background:#6734a3!important;border-color:#9a62dd!important;color:#fff!important
}
body.ss3-board #ms539-note{padding-top:8px!important;font-size:11px!important;line-height:1.5;color:#b9abc9}
body.ss3-board .top-six-grid .top-lean{padding:13px}
body.ss3-board .top-six-grid .top-market{line-height:1.45}

/* Player modal: give the captured line its own visual hierarchy. */
body.ss3-board .ss3-player-dialog{border-color:#624b82;border-radius:18px}
body.ss3-board .ss3-player-dialog .ms-modal-head{
  background:#211834;border-bottom-color:#49365f;padding:12px 17px;gap:10px
}
body.ss3-board .ss3-player-dialog .ms-modal-content{padding:clamp(12px,2.7vw,20px)}
body.ss3-board .ss3-player-hero{padding:3px 0 15px;margin:0 0 13px;gap:12px}
body.ss3-board .ss3-player-identity{min-width:0;gap:12px}
body.ss3-board .ss3-player-identity>div{min-width:0}
body.ss3-board .ss3-player-identity h2{font-size:clamp(20px,3.8vw,27px);line-height:1.12}
body.ss3-board .ss3-player-identity p{line-height:1.45}
body.ss3-board .ss3-chart-section{
  margin:10px 0 17px;padding:clamp(12px,2.5vw,18px);
  background:#18182d;border:1px solid #4a3c5e;border-radius:15px
}
body.ss3-board .ss3-chart-head{margin:0 0 7px;gap:12px}
body.ss3-board .ss3-chart-head h3{font-size:clamp(15px,2vw,18px)}
body.ss3-board .ss3-chart-head select{min-width:115px;max-width:160px;font-size:14px;border-radius:10px}
body.ss3-board .ss31-window-switch{margin:5px 0 10px}
body.ss3-board .ss31-window-switch button{padding:8px 13px;border-radius:9px;font-size:13px}
body.ss3-board .ss316-tier-box{
  padding:13px 14px;margin:11px 0 13px;border:1px solid #55436e;
  border-radius:13px;background:#201c35
}
body.ss3-board .ss316-tier-heading{gap:10px}
body.ss3-board .ss316-tier-heading>strong{font-size:12px;font-weight:800;letter-spacing:.02em;color:#cbbddb}
body.ss3-board .ss316-tier-buttons{border-radius:10px;padding:3px}
body.ss3-board .ss316-tier-buttons button{min-height:35px;padding:8px 12px}
body.ss3-board .ss316-tier-quote{margin-top:9px;min-height:44px}
body.ss3-board .ss316-quote-label{display:flex;align-items:center;gap:11px;line-height:1.4}
body.ss3-board .ss316-quote-label strong{font-size:clamp(28px,5vw,36px);line-height:1;color:#fff}
body.ss3-board .ss316-quote-label small{font-size:12px;color:#c5bbd5;max-width:40ch}

/* One row of three useful estimates. The line is already in its own card. */
body.ss3-board .ss3-player-dialog .ss331-metrics{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px;margin:11px 0 8px
}
body.ss3-board .ss331-metrics>div{padding:11px 12px;border-radius:11px;background:#232037;border:1px solid #3f3554;min-width:0}
body.ss3-board .ss331-metrics span{font-size:11px;color:#b9aecb;line-height:1.35}
body.ss3-board .ss331-metrics strong{font-size:clamp(20px,3.3vw,26px);line-height:1.3;font-variant-numeric:tabular-nums}
body.ss3-board .ss331-comparison{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 10px}
body.ss3-board .ss331-comparison span{padding:6px 9px;border-radius:8px;font-size:11px;line-height:1.3}
body.ss3-board .ss331-projection-gap{background:#2e2640;color:#e3cffa}
body.ss3-board .ss331-result-above{background:#18392f;color:#98efc0}
body.ss3-board .ss331-result-below{background:#3b2638;color:#f1b4cc}
body.ss3-board .ss331-result-push{background:#403724;color:#f2db99}

/* Explain the reference before the graph; the graph itself has a large
   contrasting labeled marker at the end of the mint horizontal rule. */
body.ss3-board .ss331-chart-legend{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;
  padding:9px 11px;margin:9px 0 6px;border:1px solid #285c5b;
  background:#122a30;border-radius:10px;color:#dcfff0
}
body.ss3-board .ss331-legend-swatch{width:22px;height:0;border-top:3px dashed #72f6d0;flex:none}
body.ss3-board .ss331-chart-legend strong{font-size:12px;font-weight:850}
body.ss3-board .ss331-chart-legend span:last-child:not(.ss331-legend-swatch){font-size:11px;color:#aad6cb}
body.ss3-board .ss331-legend-missing{font-size:12px;color:#c4b6d0}
body.ss3-board .ss331-graph{min-width:0}
body.ss3-board .ss331-graph .ss3-chart-svg{max-height:none;border:1px solid #29263d;border-radius:10px;background:#16172b}
body.ss3-board .ss3-chart-svg .ss331-reference-rule{stroke:#72f6d0!important}
body.ss3-board .ss3-chart-svg .ss331-reference-pill{fill:#143c43!important;stroke:#7af8da!important}
body.ss3-board .ss3-chart-svg .ss331-reference-text{
  fill:#f3fff9!important;font:850 13px ui-sans-serif,system-ui,sans-serif!important
}
body.ss3-board .ss3-player-dialog .ss3-chart-note{font-size:11px;color:#a99fba;margin:8px 0 0}
body.ss3-board .ss3-player-dialog .ss316-more-stats{margin-top:12px}

@media(max-width:640px){
 body.ss3-board .ss3-hero{padding-top:15px;padding-bottom:12px}
 body.ss3-board .ss3-hero h1{font-size:clamp(27px,6.4vw,34px);line-height:1.1}
 body.ss3-board .ss3-hero .ss3-muted{font-size:13px}
 body.ss3-board .ss3-hero-actions{gap:7px}
 body.ss3-board .ss3-metrics{gap:6px;margin-bottom:10px}
 body.ss3-board .ss3-metrics article{padding:10px 11px}
 body.ss3-board .ss3-filter-panel{padding:11px}
 body.ss3-board .ss3-section-head h2{font-size:clamp(20px,5.2vw,27px)}
 body.ss3-board .ss3-games-section{margin-top:13px}
 body.ss3-board #ms5511-sync-summary{font-size:11px;padding:9px}
 body.ss3-board .ss3-player-dialog .ms-modal-head{padding:11px 13px}
 body.ss3-board .ss3-player-dialog .ms-modal-content{padding:12px}
 body.ss3-board .ss3-chart-head h3{font-size:16px}
 body.ss3-board .ss3-chart-head select{max-width:146px;min-width:109px}
 body.ss3-board .ss316-tier-box{padding:11px}
 body.ss3-board .ss316-tier-buttons{width:100%;display:flex}
 body.ss3-board .ss316-tier-buttons button{flex:1;padding:9px 4px}
 body.ss3-board .ss316-quote-label{gap:9px}
 body.ss3-board .ss316-quote-label strong{font-size:30px}
 body.ss3-board .ss316-quote-label small{font-size:11px}
 body.ss3-board .ss331-metrics>div{padding:9px}
 body.ss3-board .ss331-metrics span{font-size:10px}
 body.ss3-board .ss331-metrics strong{font-size:21px}
 body.ss3-board .ss331-chart-legend{padding:9px}
 body.ss3-board .ss331-chart-legend strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 body.ss3-board .ss3-chart-svg *{animation:none!important;transition:none!important}
}
