/* Spartans game day card (shared by the classic desktop dock, its phone flyout, and /next/ Today).
   Fixed Spartan green so it reads the same in every theme. Data: family-hub GET /api/msu (see msu-card.js). */
.msu-card {
  --msu-1: #1d5444; --msu-2: #173f35; --msu-3: #0e2a23; --msu-soft: #a9dcc0; --msu-line: rgba(255,255,255,.14);
  color: #fff; font: 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(165deg, var(--msu-1) 0%, var(--msu-2) 52%, var(--msu-3) 100%);
  border: 1px solid var(--msu-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(8,30,24,.38);
  -webkit-backdrop-filter: none; backdrop-filter: none; overflow: hidden;
}
.msu-card[hidden] { display: none; }
.msu-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 4px 14px; flex: none; }
.msu-head h2 { margin: 0 auto 0 0; font-size: 14px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.msu-open { color: var(--msu-soft); text-decoration: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; }
.msu-open:hover { background: rgba(255,255,255,.12); color: #fff; }
.msu-body { padding: 2px 14px 12px; overflow-y: auto; min-height: 0; }
.msu-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 12px; color: var(--msu-soft); }
.msu-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: rgba(255,255,255,.14); color: #fff; }
.msu-pill.live { background: #d93a3f; }
.msu-pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: msu-blink 1.4s ease-in-out infinite; }
.msu-pill.final { background: #fff; color: var(--msu-2); }
@keyframes msu-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .msu-pill.live::before { animation: none; } }
.msu-clock { font-weight: 700; color: #fff; font-size: 13px; }
.msu-teams { display: grid; gap: 4px; margin: 2px 0 6px; }
.msu-team { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 36px; }
.msu-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-sizing: border-box; }
.msu-name { min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msu-name small { font-size: 10.5px; font-weight: 600; color: var(--msu-soft); margin-left: 4px; }
.msu-score { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4ch; text-align: right; }
.msu-team.lost .msu-name, .msu-team.lost .msu-score { opacity: .6; }
.msu-team.won .msu-name::after { content: " ✓"; color: var(--msu-soft); }
.msu-pre { margin: 4px 0 8px; font-size: 13px; color: var(--msu-soft); }
.msu-line { width: 100%; border-collapse: collapse; margin: 0 0 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.msu-line th, .msu-line td { padding: 2px 0; text-align: center; font-weight: 500; }
.msu-line th { color: var(--msu-soft); font-size: 10.5px; font-weight: 700; border-bottom: 1px solid var(--msu-line); }
.msu-line th:first-child, .msu-line td:first-child { text-align: left; width: 38px; font-weight: 700; }
.msu-line th:last-child, .msu-line td:last-child { font-weight: 800; }
.msu-stats { display: grid; gap: 0; margin: 4px 0 2px; border-top: 1px solid var(--msu-line); padding-top: 4px; }
.msu-stat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 1.5px 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.msu-stat span { color: var(--msu-soft); font-size: 11.5px; text-align: center; }
.msu-stat b { font-weight: 700; }
.msu-stat b:last-child { text-align: right; }
.msu-perf { margin: 6px 0 0; font-size: 12px; color: var(--msu-soft); }
.msu-perf b { color: #fff; font-weight: 600; }
.msu-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.msu-btn { flex: 1 1 auto; text-align: center; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: #fff; background: rgba(255,255,255,.14); border: 1px solid var(--msu-line); min-height: 18px; }
.msu-btn:hover { background: rgba(255,255,255,.22); }
.msu-btn.primary { background: #fff; color: var(--msu-2); border-color: #fff; }
.msu-btn.primary:hover { background: #e6f4ec; }
.msu-tap { cursor: pointer; border-radius: 8px; }
.msu-tap:hover { background: rgba(255,255,255,.07); }
.msu-tap:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.msu-foot { margin: 6px 0 0; font-size: 10.5px; color: var(--msu-soft); opacity: .8; }
/* classic desktop: the card sits in the right-hand dock above My Day; a taskbar flyout on phones */
.msu-widget.tasks-widget { flex: none; }
.dock:has(#msu-widget:not([hidden])) .day-widget { max-height: 44%; }
@media (min-width: 901px) { .msu-widget .msu-foot { display: none; } }
@media (min-width: 901px) and (max-height: 820px) { .msu-widget .msu-stat:nth-child(n+3), .msu-widget .msu-pre { display: none; } }
@media (min-width: 901px) { #msu-btn { display: none; } }
#msu-btn { font-size: 18px; }
/* /next/ Today: full width above the day strip */
.msu-next { margin: 12px 0 12px; }
.msu-next .msu-body { padding-bottom: 14px; }
@media (min-width: 700px) { .msu-next { max-width: 560px; } }

/* live situation (football) */
.msu-ball { margin-left: 6px; font-size: 13px; }
.msu-sit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(0,0,0,.22); font-size: 12.5px; font-weight: 600; color: #fff; }
.msu-sit .msu-to { color: var(--msu-soft); font-weight: 500; font-size: 11.5px; margin-left: auto; }
.msu-rz { background: #d64545; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; }
.msu-sit .msu-last { flex-basis: 100%; font-weight: 500; color: var(--msu-soft); font-size: 12px; line-height: 1.3; }
