/* NerdZap game status board. Builds on test-lab.css (panels, stat tiles, pills). */

.st-ok    { --st: #4ade80; --st-bg: rgba(74, 222, 128, 0.10); }
.st-warn  { --st: #facc15; --st-bg: rgba(250, 204, 21, 0.10); }
.st-bad   { --st: #f87171; --st-bg: rgba(248, 113, 113, 0.10); }
.st-maint { --st: #60a5fa; --st-bg: rgba(96, 165, 250, 0.10); }
.st-unk   { --st: #94a3b8; --st-bg: rgba(148, 163, 184, 0.08); }

.st-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--st, #94a3b8); box-shadow: 0 0 0 4px var(--st-bg, transparent); flex: none; }

/* Fixed minimum height so the page doesn't jump (and ad slots don't shift) when the live panel fills in */
.st-live { min-height: 120px; } /* roughly the height of the status box, so there is no gap and little layout shift */
.st-hub { min-height: 220px; }
.st-loading { color: var(--text-muted); }

.st-banner { background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.4); color: #fde68a; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; }

.st-panel { background: var(--st-bg); border: 2px solid var(--st); border-radius: 12px; padding: 20px 22px; margin-bottom: 24px; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-state { font-size: 1.35rem; font-weight: 800; color: white; }
.st-checked { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); }
.st-lead { font-size: 1.08rem; line-height: 1.55; color: #e2e8f0; margin: 0 0 8px 0; }
.st-agree { font-size: 0.95rem; color: #cbd5e1; margin: 0 0 8px 0; }

.st-official { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.st-official-head { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.st-inc + .st-inc { margin-top: 14px; }
.st-inc-title { font-weight: 700; color: white; line-height: 1.5; }
.st-inc-title a { color: white; }
.st-affected { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.st-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #cbd5e1; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); vertical-align: middle; }
.st-tag-major, .st-tag-critical { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }
.st-tag-minor { color: #fde68a; border-color: rgba(250, 204, 21, 0.4); }
.st-update { margin-top: 8px; padding-left: 12px; border-left: 3px solid rgba(255, 255, 255, 0.18); }
.st-update-meta { font-size: 0.8rem; color: var(--text-muted); }
.st-update-body { margin: 2px 0 0 0; color: #e2e8f0; font-size: 0.95rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.st-official details { margin-top: 8px; }
.st-official summary { cursor: pointer; font-size: 0.85rem; color: var(--accent-primary); }

.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-checks li { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 14px; }
.st-checks .st-check-name { font-weight: 700; color: white; }
.st-checks .st-check-result { margin-left: auto; font-size: 0.9rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.st-r1 { --st: #4ade80; --st-bg: rgba(74, 222, 128, 0.12); }
.st-r0 { --st: #f87171; --st-bg: rgba(248, 113, 113, 0.12); }
.st-ru { --st: #94a3b8; --st-bg: rgba(148, 163, 184, 0.1); }

.st-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.st-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 6px 8px; }
.st-table td { padding: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; color: #e2e8f0; overflow-wrap: anywhere; }
.st-table a { color: var(--accent-primary); }
.st-note { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; margin: 12px 0 0 0; }
.st-note a { color: var(--accent-primary); }
.st-uptime { margin-top: 18px; }

/* Hub */
.st-hub-summary { font-size: 1.05rem; color: #e2e8f0; margin: 0 0 14px 0; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.st-card { display: flex; flex-direction: column; gap: 6px; background: var(--st-bg); border: 2px solid var(--st); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.st-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.st-card-top { display: flex; align-items: center; gap: 10px; }
.st-name { font-size: 1.15rem; font-weight: 800; color: white; }
.st-card-state { font-weight: 700; color: var(--st); }
.st-card-sub { font-size: 0.85rem; color: var(--text-muted); overflow-wrap: anywhere; }

/* Static page sections */
.st-steps { margin: 0; padding-left: 20px; color: #cbd5e1; line-height: 1.7; }
.st-steps li + li { margin-top: 6px; }
.st-faq details { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 0; }
.st-faq details:first-of-type { border-top: 0; }
.st-faq summary { cursor: pointer; font-weight: 700; color: white; }
.st-faq p { margin: 0; padding: 0 16px 16px; color: #cbd5e1; line-height: 1.6; }
.st-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
.st-links a { color: var(--accent-primary); }

@media (max-width: 600px) {
  .st-checked { margin-left: 0; width: 100%; }
  .st-state { font-size: 1.2rem; }
  .st-table th:nth-child(2), .st-table td:nth-child(2) { display: none; }
}

/* Hero (same look as the other NerdZap Lab tool pages) */
.st-hero { padding: 10px 20px 14px !important; text-align: center; }
.st-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: st-pulse 2s infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .st-pulse { animation: none; } }
.st-h1 { font-size: 2.6rem !important; letter-spacing: -1.5px; margin: 0 0 8px 0 !important; line-height: 1.1; }
.st-lede { font-size: 1.05rem; color: #cbd5e1; margin: 0 auto 10px auto; max-width: 760px; line-height: 1.5; }
/* Phones: compact header like the Tools pages, so the answer is on the first screen. The lede stays in the page
   (clamped to 3 lines for display) and the "checked every minute" badge is dropped (the status box says when it last checked). */
@media (max-width: 600px) {
  .st-hero { padding: 4px 16px 6px !important; }
  .st-hero-ico { margin-bottom: 6px; }
  .st-hero-ico .st-ico { width: 40px; height: 40px; }
  .st-hero-ico .st-ico-txt { width: 40px; height: 40px; min-width: 40px; font-size: 0.9rem; border-radius: 11px; }
  .st-badge { display: none; }
  .st-h1 { font-size: 1.65rem !important; letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 6px 0 !important; }
  .st-lede { font-size: 0.9rem; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .st-hero .tool-support { display: none; }
}

/* Spacing for the static panels under the live block (test-lab.css leaves .tl-muted tight) */
.st-live ~ .tl-panel, .st-hub ~ .tl-panel { margin-top: 0; margin-bottom: 20px; }
.st-hub { margin-bottom: 24px; }
.tl-panel .tl-muted { margin: 12px 0 0 0; line-height: 1.55; }

/* Long-running known issues (minor official incidents older than a week) */
.st-ongoing { margin-top: 0; }
.st-ongoing summary { cursor: pointer; font-weight: 700; color: white; }
.st-ongoing .st-inc { margin-top: 14px; }

.st-cat { font-size: 1.15rem; margin: 26px 0 10px 0; color: #e2e8f0; }
.st-hub .st-cat:first-of-type { margin-top: 14px; }
.st-fix dt { font-weight: 700; color: #e2e8f0; margin-top: 12px; }
.st-fix dd { margin: 4px 0 0 0; color: #cbd5e1; line-height: 1.6; }
.st-official-links { list-style: none; padding: 0; margin: 8px 0 0 0; }
.st-official-links li { margin: 6px 0; }

/* Split live parts and folded sections */
.st-live-part .tl-panel { margin-top: 0; margin-bottom: 20px; }
.st-live ~ .st-live-part[data-st-part="detail"] > .tl-panel:first-child { margin-top: 20px; }
.st-hub[data-st-mode="popular"], .st-hub[data-st-mode="games"], .st-hub[data-st-mode="services"] { min-height: 0; }
.st-hub[data-st-mode="summary"] { min-height: 0; margin-bottom: 8px; }
.st-section { font-size: 1.4rem; margin: 28px 0 8px 0; }
.st-wider { margin: 0 0 12px 0; font-weight: 700; }
.st-more { margin-top: 12px; }
.st-more summary { cursor: pointer; font-weight: 700; color: var(--accent-primary); font-size: 0.92rem; }
.st-more[open] > summary { margin-bottom: 4px; }
.st-more > :not(summary) { margin-left: 15px; margin-right: 15px; }
.st-more > :last-child { margin-bottom: 14px; }
.tl-panel details.st-more h3 { font-size: 1.05rem; }

/* Icons: a brand icon drawn from an SVG mask in the current status colour; initials when there is no icon */
.st-ico { display: inline-block; width: 24px; height: 24px; flex: none; background-color: var(--st, #cbd5e1); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.st-ico-txt { -webkit-mask: none; mask: none; background: var(--st-bg, rgba(148, 163, 184, 0.12)); border: 1.5px solid var(--st, #94a3b8); border-radius: 7px; color: var(--st, #cbd5e1); font-size: 0.68rem; font-weight: 800; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.st-card-top .st-name { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.st-card-top .st-dot { margin-left: auto; width: 10px; height: 10px; box-shadow: 0 0 0 3px var(--st-bg, transparent); }
.st-hero-ico { display: flex; justify-content: center; margin-bottom: 10px; }
.st-hero-ico .st-ico { width: 56px; height: 56px; background-color: #f1f5f9; }
.st-hero-ico .st-ico-txt { width: 56px; height: 56px; font-size: 1.15rem; border-radius: 14px; background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.5); color: #f1f5f9; }

/* Component groups ("What Activision reports"): name on the left, count then the site's +/- marker on the right.
   The site stylesheet turns every <summary> into an uppercase bar, so these reset it to sentence case. */
.st-sum, .st-more > summary, .st-faq summary, .st-official summary { text-transform: none; }
.st-sum { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.st-sum-name { font-weight: 700; color: #e2e8f0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-sum-count { margin-left: auto; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.st-sum-warn { color: #fde68a; }
.st-comps-panel details { background: rgba(0, 0, 0, 0.18); border-radius: 10px; margin-bottom: 10px; padding-bottom: 2px; }
.st-comps-panel details[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 10px; }
.st-comps-panel details > .st-checks { padding: 0 12px 12px; }
.st-comps-panel .st-checks li { padding: 9px 12px; }
@media (max-width: 600px) { .st-sum-warn { flex-basis: 100%; order: 3; text-align: left; margin-left: 0; } .st-sum { flex-wrap: wrap; gap: 2px 10px; } }

/* Polish: spacing inside panels, link colours, summary alignment */
.tl-panel h3 { margin: 20px 0 8px 0; }
.tl-panel > p + .st-steps, .tl-panel > p + .st-fix, .tl-panel > p + .st-links { margin-top: 12px; }
.tl-panel > .st-steps + .st-steps, .tl-panel > .st-steps + p { margin-top: 14px; }
.st-official-links a, .st-links a, .st-note a, .tl-muted a, .st-steps a { color: var(--accent-primary); }
.st-official-links a:hover, .st-links a:hover { text-decoration: underline; }
.st-more > summary, .st-faq summary, .st-sum { align-items: center; gap: 12px; }
.st-comps-panel > .st-note { margin-bottom: 14px; }
.st-faq summary { font-size: 0.95rem; line-height: 1.4; }
.st-fix dt:first-child { margin-top: 0; }

/* Long game names wrap beside the dot instead of pushing it onto its own line */
.st-head .st-state { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.st-ico-txt { min-width: 24px; padding: 0 4px; width: auto; }
.st-hero-ico .st-ico-txt { padding: 0 10px; min-width: 56px; }
