/* Mari Sunny Website Runtime 3.0.9 — design-preserved public layer.
 * The active theme remains the visual source of truth. These rules are scoped
 * only to the new Minecraft About content and replacement Server Activity card.
 */

.mari-v3-mc,
.mari-v3-activity{
  --mari-v3-panel:#1a0d2e;
  --mari-v3-panel-2:#21113a;
  --mari-v3-border:#6e4893;
  --mari-v3-border-strong:#9a6bc4;
  --mari-v3-text:#f8f2ff;
  --mari-v3-muted:#cbbddb;
  --mari-v3-soft:#a999ba;
  --mari-v3-cyan:#00eeee;
  --mari-v3-pink:#ff537d;
  --mari-v3-amber:#ffbd68;
  box-sizing:border-box;
  font-family:inherit;
  color:var(--mari-v3-text);
}
.mari-v3-mc *, .mari-v3-activity *{box-sizing:border-box}
.mari-v3-mc :where(h1,h2,h3,p){margin-top:0}

/* Suppress only conventional theme-generated page-title wrappers on the managed
 * Minecraft page. The Mari v3 content owns its visible heading, while the
 * active theme still owns the global header, quickbar and footer. */
body.mari-v3-minecraft-page :where(.entry-header,.page-header) > :where(.entry-title,.page-title){display:none!important}


/* 3.0.9: ONLINE is lime green everywhere, including after About -> Status
 * navigation. The old cyan border is only the neutral/checking state. */
.server-quickbar.mari-qol-server-online,
.server-quickbar.mari-v3-server-online{
  border:2px solid rgba(120,255,0,.92)!important;
  background:linear-gradient(180deg,rgba(120,255,0,.026),rgba(120,255,0,.008))!important;
  box-shadow:inset 0 0 0 1px rgba(120,255,0,.045),0 0 20px rgba(120,255,0,.055)!important;
  transition:background-color .18s ease,box-shadow .18s ease!important;
}

.server-quickbar.mari-v3-server-offline{border-color:rgba(255,78,105,.88)!important}
.server-quickbar.mari-v3-server-online .server-player-count,
.server-quickbar.mari-qol-server-online .server-player-count{color:#78ff00!important}

/* Keep the existing site geometry. No full-page background or header rewrite. */
.mari-v3-mc{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 76px;
  display:grid;
  gap:22px;
}
.mari-v3-mc-intro{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);
  gap:24px;
  align-items:stretch;
}
.mari-v3-mc-copy,
.mari-v3-live,
.mari-v3-section,
.mari-v3-support-callout{
  border:1px solid var(--mari-v3-border);
  background:rgba(27,13,48,.94);
  border-radius:22px;
  box-shadow:0 8px 0 rgba(0,0,0,.14);
}
.mari-v3-mc-copy{padding:38px 40px}
.mari-v3-eyebrow{
  margin:0 0 10px!important;
  color:var(--mari-v3-cyan);
  font-size:12px;
  font-weight:900;
  letter-spacing:.075em;
  line-height:1.25;
}
.mari-v3-mc h1{
  margin:0!important;
  max-width:760px;
  color:#fff;
  font-size:clamp(44px,4.8vw,68px);
  line-height:1.04;
  letter-spacing:-.025em;
}
.mari-v3-lead{
  max-width:780px;
  margin:20px 0 0!important;
  color:var(--mari-v3-muted);
  font-size:18px;
  font-weight:650;
  line-height:1.58;
}
.mari-v3-actions,.mari-v3-card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.mari-v3-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 17px;
  border:1px solid #79539e;
  border-radius:12px;
  background:#271440;
  color:#fff!important;
  font:inherit;
  font-size:15px;
  font-weight:850;
  line-height:1;
  text-decoration:none!important;
  cursor:pointer;
  transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}
.mari-v3-btn:hover{background:#30194e;border-color:#a071cb}
.mari-v3-btn:focus-visible{outline:3px solid rgba(0,238,238,.32);outline-offset:2px}
.mari-v3-btn-cyan{background:var(--mari-v3-cyan);border-color:#1affff;color:#120820!important;box-shadow:0 5px 0 #09384c}
.mari-v3-btn-cyan:hover{background:#39f6f6}

.mari-v3-live{padding:26px 26px 24px;display:flex;flex-direction:column;min-height:100%}
.mari-v3-live-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mari-v3-live-top>span{color:var(--mari-v3-cyan);font-size:11px;font-weight:900;letter-spacing:.06em}
.mari-v3-state{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #75509b;border-radius:999px;color:#ddd0eb;font-size:12px;font-weight:900;letter-spacing:.05em}
.mari-v3-state.is-online{border-color:rgba(0,238,238,.72);color:#5af8f8;background:rgba(0,238,238,.08)}
.mari-v3-state.is-offline{border-color:rgba(255,83,125,.75);color:#ff7597;background:rgba(255,83,125,.08)}
.mari-v3-live-count{display:flex;align-items:baseline;gap:12px;margin-top:auto;padding-top:32px}
.mari-v3-live-count strong{font-size:clamp(58px,5vw,74px);line-height:.9;color:#fff}
.mari-v3-live-count span{color:#d8cae5;font-size:16px;font-weight:800}
.mari-v3-live>p{margin:18px 0 0!important;color:var(--mari-v3-soft);font-size:14px;line-height:1.5}

.mari-v3-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--mari-v3-border);border-radius:18px;background:rgba(30,15,52,.93);overflow:hidden;box-shadow:0 7px 0 rgba(0,0,0,.12)}
.mari-v3-summary>div{padding:20px 22px;min-width:0}
.mari-v3-summary>div+div{border-left:1px solid rgba(119,79,157,.6)}
.mari-v3-summary span,.mari-v3-card-label{display:block;color:var(--mari-v3-cyan);font-size:11px;font-weight:900;letter-spacing:.06em;line-height:1.2}
.mari-v3-summary strong{display:block;margin-top:7px;color:#fff;font-size:19px;line-height:1.2}
.mari-v3-summary p{margin:7px 0 0!important;color:#b8a8c9;font-size:14px;line-height:1.45}

.mari-v3-section{padding:30px}
.mari-v3-section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.55fr);column-gap:28px;align-items:end;margin-bottom:20px}
.mari-v3-section-head .mari-v3-eyebrow{grid-column:1/-1}
.mari-v3-section-head h2{margin:0!important;color:#fff;font-size:clamp(30px,3vw,42px);line-height:1.08}
.mari-v3-section-head>p:last-child{margin:0!important;color:#baaaca;font-size:15px;line-height:1.5}
.mari-v3-join-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mari-v3-card{min-width:0;padding:22px;border:1px solid #68458b;border-radius:16px;background:#160b28}
.mari-v3-card h3{margin:10px 0 8px!important;color:#fff;font-size:clamp(19px,1.7vw,24px);line-height:1.3;overflow-wrap:anywhere}
.mari-v3-card p{margin:0!important;color:#b9a9c8;font-size:14.5px;line-height:1.5}
.mari-v3-card p strong{display:inline-block;color:var(--mari-v3-cyan);background:#2d1747;padding:5px 8px;border-radius:6px}

.mari-v3-support-callout{padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.mari-v3-support-callout h2{margin:0!important;color:#fff;font-size:26px;line-height:1.15}
.mari-v3-support-callout>div>p:last-child{max-width:760px;margin:9px 0 0!important;color:#bbacca;font-size:14.5px;line-height:1.5}

/* Replacement Server Activity card, deliberately matching the existing site's
 * panel/border vocabulary instead of introducing a new visual system. */
.mari-v3-activity{
  width:min(1180px,calc(100% - 48px));
  margin:18px auto 24px;
  padding:22px 24px 18px;
  border:1px solid var(--mari-v3-border);
  border-radius:20px;
  background:rgba(30,15,52,.96);
  box-shadow:0 8px 0 rgba(0,0,0,.14);
}
.mari-v3-activity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
.mari-v3-activity-copy{display:grid;gap:4px;min-width:0}
.mari-v3-activity-kicker{color:var(--mari-v3-cyan);font-size:11px;font-weight:900;letter-spacing:.07em}
.mari-v3-activity-answer{color:#fff;font-size:clamp(22px,2.1vw,30px);font-weight:900;line-height:1.1}
.mari-v3-activity-sub{color:#b8a9c8;font-size:13.5px;font-weight:700;line-height:1.45}
.mari-v3-activity-badge{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #76519a;border-radius:999px;color:#d8cbe6;font-size:12px;font-weight:900}
.mari-v3-activity-badge.is-online{border-color:rgba(0,238,238,.7);color:#62f7f7;background:rgba(0,238,238,.08)}
.mari-v3-activity-badge.is-offline{border-color:rgba(255,83,125,.74);color:#ff7d9c;background:rgba(255,83,125,.08)}
.mari-v3-chart-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 2px 8px;color:#c9bcd8;font-size:12px;font-weight:800}
.mari-v3-chart-legend span{display:inline-flex;align-items:center;gap:7px}
.mari-v3-key-line{width:23px;height:4px;border-radius:999px;background:var(--mari-v3-cyan)}
.mari-v3-key-outage{width:23px;height:7px;border-radius:999px;background:var(--mari-v3-pink)}
.mari-v3-chart-wrap{position:relative;width:100%;border-radius:14px;background:rgba(12,5,24,.38);overflow:hidden;outline:none;touch-action:pan-y}
.mari-v3-chart-wrap:focus-visible{box-shadow:inset 0 0 0 2px rgba(0,238,238,.55)}
.mari-v3-chart{display:block;width:100%;height:clamp(235px,30vw,350px)}
.mari-v3-chart-grid{stroke:rgba(180,151,212,.14);stroke-width:1}
.mari-v3-chart-label{fill:#a899b8;font-size:12px;font-weight:800}
.mari-v3-chart-area{fill:url(#mariV3Area);opacity:.34}
.mari-v3-chart-line{fill:none;stroke:var(--mari-v3-cyan);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.mari-v3-chart-outage{fill:var(--mari-v3-pink);opacity:.9}
.mari-v3-chart-crosshair{stroke:rgba(255,255,255,.5);stroke-width:1.2;stroke-dasharray:5 5}
.mari-v3-chart-focus{fill:var(--mari-v3-cyan);stroke:#fff;stroke-width:3}
.mari-v3-chart-tooltip{position:absolute;z-index:5;width:min(270px,calc(100% - 16px));padding:10px 12px;border:1px solid #7952a1;border-radius:12px;background:rgba(8,4,17,.97);box-shadow:0 10px 26px rgba(0,0,0,.32);pointer-events:none;overflow-wrap:anywhere}
.mari-v3-chart-tooltip[hidden]{display:none!important}
.mari-v3-chart-tooltip time{display:block;color:#ad9dbc;font-size:10.5px;font-weight:900;letter-spacing:.05em}
.mari-v3-chart-tooltip strong{display:block;margin-top:2px;color:#fff;font-size:17px;line-height:1.2}
.mari-v3-chart-tooltip span{display:block;margin-top:4px;color:#c9bad8;font-size:11.5px;line-height:1.4}
.mari-v3-activity-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px;border:1px solid rgba(111,74,147,.7);border-radius:13px;overflow:hidden;background:rgba(42,21,70,.65)}
.mari-v3-activity-stat{padding:11px 13px;border-right:1px solid rgba(111,74,147,.45)}
.mari-v3-activity-stat:last-child{border-right:0}
.mari-v3-activity-stat span{display:block;color:var(--mari-v3-cyan);font-size:10px;font-weight:900;letter-spacing:.05em}
.mari-v3-activity-stat strong{display:block;margin-top:5px;color:#fff;font-size:15px;font-weight:900}
.mari-v3-activity-note{margin-top:9px;color:#a99ab8;font-size:11px;line-height:1.45}

/* Old status chart signatures are hidden only on the status page after v3 owns it. */
body.mari-v3-status-page [data-mari-mc-activity-v2758="1"],
body.mari-v3-status-page [data-mari-mc-activity-v2836="1"],
body.mari-v3-status-page .mari-mc-activity-v2758,
body.mari-v3-status-page .mari-activity-2836,
body.mari-v3-status-page .mari-mc-legacy-hidden{display:none!important}

@media(max-width:900px){
  .mari-v3-mc{width:min(100% - 24px,1180px);padding-top:22px}
  .mari-v3-mc-intro{grid-template-columns:1fr}
  .mari-v3-mc-copy{padding:30px 28px}
  .mari-v3-live{min-height:230px}
  .mari-v3-summary{grid-template-columns:1fr}
  .mari-v3-summary>div+div{border-left:0;border-top:1px solid rgba(119,79,157,.6)}
  .mari-v3-section-head{grid-template-columns:1fr;gap:8px}
  .mari-v3-join-grid{grid-template-columns:1fr}
  .mari-v3-activity{padding:18px 15px 15px}
  .mari-v3-activity-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mari-v3-activity-stat:nth-child(2n){border-right:0}
  .mari-v3-activity-stat:nth-child(-n+2){border-bottom:1px solid rgba(111,74,147,.45)}
}
@media(max-width:620px){
  .mari-v3-mc{width:min(100% - 18px,1180px);padding-bottom:54px;gap:16px}
  .mari-v3-mc-copy,.mari-v3-live,.mari-v3-section,.mari-v3-support-callout{border-radius:17px}
  .mari-v3-mc-copy{padding:25px 18px}
  .mari-v3-mc h1{font-size:clamp(38px,11vw,48px)}
  .mari-v3-lead{font-size:16.5px}
  .mari-v3-actions,.mari-v3-card-actions{display:grid;grid-template-columns:1fr}
  .mari-v3-btn{width:100%}
  .mari-v3-live{padding:21px 18px;min-height:210px}
  .mari-v3-live-count strong{font-size:58px}
  .mari-v3-summary>div{padding:17px 18px}
  .mari-v3-section{padding:23px 17px}
  .mari-v3-section-head h2{font-size:31px}
  .mari-v3-card{padding:19px 16px}
  .mari-v3-support-callout{padding:20px 17px;align-items:flex-start;flex-direction:column}
  .mari-v3-activity{width:min(100% - 30px,1180px);padding:15px 11px 12px;border-radius:16px}
  .mari-v3-activity-head{display:grid;grid-template-columns:1fr}
  .mari-v3-activity-badge{justify-self:start}
}
/* Inside the theme's history shell, use its existing alignment and gutters. */
.mari-v3-activity.mari-v3-activity-in-shell{width:100%;margin-inline:0}
.server-history[data-mari-v3-history-owner="1"] [data-history-summary]{display:none}
/* The retired monitor can insert its separate summary after the chart mounts. */
.server-history[data-mari-v3-history-owner="1"] .mari-independent-details,
.server-history[data-mari-v3-history-owner="1"] [data-mari-independent-details]{display:none!important}
@media(prefers-reduced-motion:reduce){
  .mari-v3-mc *, .mari-v3-activity *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
