/* ============================================================
   WINMTR GUIDE - companion to the Performance page.
   Loads after performance.css and reuses its pf- pieces.
   Violet "connection" identity. Everything here is prefixed wm-.
   ============================================================ */
.rankpage.pf-page.wm-page {
  --rk-accent: #b18cff;
  --rk-accent-bright: #d5c2ff;
  --rk-accent-dim: rgba(177, 140, 255, 0.13);
  --rk-accent-line: rgba(177, 140, 255, 0.42);
  --rk-glow: rgba(177, 140, 255, 0.24);
  --wm-ok: #5fe39a; --wm-bad: #ff5c48; --wm-warn: #ffb347; --wm-mute: #8a93a6;
}
.wm-page .rk-title {
  font-size: clamp(2.6rem, 6.4vw, 4.2rem);
  background: linear-gradient(175deg, #faf6ff 20%, var(--rk-accent) 58%, #5b3aa8 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 55px rgba(177, 140, 255, 0.3);
}
.wm-page .rk-hero {
  background:
    radial-gradient(ellipse 900px 420px at 78% 10%, rgba(177, 140, 255, 0.13), transparent 65%),
    radial-gradient(ellipse 700px 380px at 15% 110%, rgba(56, 214, 232, 0.07), transparent 60%),
    linear-gradient(180deg, #0a0812 0%, #05070d 100%);
}
.wm-page .pf-trace path { stroke: var(--rk-accent); filter: drop-shadow(0 0 5px var(--rk-accent)); }
.wm-page .pf-btn { color: #120a24; }
.wm-page .pf-btn.is-ghost { color: var(--muted); }
.wm-page .pf-btn.is-ghost:hover { color: var(--rk-accent-bright); }
.wm-page .pp-hero-bg picture, .wm-page .pp-hero-bg img { opacity: 0.6; filter: saturate(1) brightness(0.95); }
.wm-page .rk-next-btn { color: #120a24; }
.wm-back { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.2rem; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rk-accent-bright); text-decoration: none; }
.wm-back:hover { text-decoration: underline; }
.wm-back svg { width: 15px; height: 15px; }

/* ---------- Hero crest: the route ---------- */
.wm-hop { animation: wm-hop 3.2s ease-in-out infinite; }
.wm-hop.h2 { animation-delay: 0.4s; } .wm-hop.h3 { animation-delay: 0.8s; } .wm-hop.h4 { animation-delay: 1.2s; } .wm-hop.h5 { animation-delay: 1.6s; }
@keyframes wm-hop { 0%, 100% { opacity: 0.35; } 18% { opacity: 1; } 40% { opacity: 0.35; } }
.wm-packet { offset-path: path("M46 170 L78 130 L100 150 L124 96 L154 70"); animation: wm-packet 3.2s linear infinite; }
@keyframes wm-packet { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ---------- Steps ---------- */
.wm-steps { display: grid; gap: 1rem; counter-reset: wm; }
.wm-step { position: relative; counter-increment: wm; display: grid; grid-template-columns: 74px 1fr; gap: 1.2rem; padding: 1.3rem 1.4rem; background: linear-gradient(180deg, var(--rk-panel-2), var(--rk-panel)); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.wm-step:hover { border-color: var(--rk-accent-line); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }
.wm-step-num { display: grid; place-items: center; width: 74px; height: 74px; font-family: "Cinzel", serif; font-weight: 800; font-size: 1.9rem; color: var(--rk-accent-bright); background: radial-gradient(circle at 35% 30%, #2d2742, #14121d); border: 1px solid var(--rk-accent-line); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.3), 0 0 26px var(--rk-accent-dim); }
.wm-step-num::before { content: counter(wm); }
.wm-step h3 { margin: 0 0 0.2rem; font-family: "Cinzel", serif; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.wm-step-time { display: inline-block; margin: 0 0 0.6rem; padding: 0.12rem 0.55rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rk-accent-bright); background: var(--rk-accent-dim); border: 1px solid var(--rk-accent-line); border-radius: 4px; }
.wm-step p { margin: 0 0 0.7rem; font-size: 0.97rem; color: var(--muted); line-height: 1.6; }
.wm-step p strong { color: var(--text); }
.wm-step > div > :last-child { margin-bottom: 0; }
.wm-step ol { margin: 0 0 0.7rem; padding-left: 1.25rem; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.wm-step ol li { margin-bottom: 0.3rem; }
.wm-step ol strong { color: var(--text); }
.wm-key { display: inline-block; padding: 0.05rem 0.5rem; font-family: Consolas, Menlo, monospace; font-size: 0.86rem; font-weight: 700; color: var(--text); background: linear-gradient(180deg, #2c3038, #1b1e26); border: 1px solid rgba(255, 255, 255, 0.16); border-bottom-width: 3px; border-radius: 6px; white-space: nowrap; }

/* server address cards */
.wm-servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.7rem; margin: 0 0 0.7rem; }
.wm-server { padding: 0.9rem 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-top: 2px solid var(--sv, var(--rk-accent)); border-radius: 10px; }
.wm-server b { display: block; margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--text); }
.wm-ip-row { display: flex; align-items: center; gap: 0.5rem; }
.wm-ip { flex: 1; padding: 0.5rem 0.7rem; font-family: Consolas, Menlo, monospace; font-size: 1rem; color: var(--rk-accent-bright); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 7px; user-select: all; }
.wm-copy { padding: 0.5rem 0.9rem; font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #120a24; cursor: pointer; background: linear-gradient(180deg, var(--rk-accent-bright), var(--rk-accent)); border: 1px solid var(--rk-accent); border-radius: 7px; transition: transform 0.15s ease; }
.wm-copy:hover { transform: translateY(-1px); }
.wm-copy.is-done { background: var(--wm-ok); border-color: var(--wm-ok); }

/* ---------- Report reader ---------- */
.wm-reader textarea { display: block; width: 100%; min-height: 210px; padding: 0.9rem 1rem; font-family: Consolas, Menlo, monospace; font-size: 0.8rem; line-height: 1.45; color: #e2d8ff; white-space: pre; overflow: auto; resize: vertical; background: #07090d; border: 1px solid var(--rk-accent-line); border-radius: 10px; outline: none; }
.wm-reader textarea:focus { border-color: var(--rk-accent); box-shadow: 0 0 0 3px var(--rk-accent-dim); }
.wm-reader textarea::placeholder { color: var(--muted); opacity: 0.6; }
.wm-reader-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.8rem 0 0; }
.wm-reader-bar span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.wm-ex { padding: 0.45rem 0.8rem; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; transition: all 0.15s ease; }
.wm-ex:hover { color: var(--rk-accent-bright); border-color: var(--rk-accent-line); }
.wm-out { margin: 1.2rem 0 0; }
.wm-out[hidden] { display: none; }
.wm-verdict { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem 1.3rem; margin: 0 0 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--v); border-radius: 14px; box-shadow: 0 0 40px color-mix(in srgb, var(--v) 14%, transparent); animation: pf-in 0.35s ease both; }
.wm-verdict.is-ok { --v: var(--wm-ok); } .wm-verdict.is-bad { --v: var(--wm-bad); } .wm-verdict.is-warn { --v: var(--wm-warn); }
.wm-verdict-badge { display: grid; place-items: center; width: 76px; height: 76px; color: var(--v); background: color-mix(in srgb, var(--v) 13%, transparent); border: 1px solid var(--v); border-radius: 50%; }
.wm-verdict-badge svg { width: 34px; height: 34px; }
.wm-verdict-kicker { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--v); }
.wm-verdict h3 { margin: 0 0 0.4rem; font-family: "Cinzel", serif; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: 0.03em; color: var(--text); }
.wm-verdict p { margin: 0 0 0.5rem; font-size: 0.96rem; color: var(--muted); line-height: 1.6; }
.wm-verdict p:last-child { margin-bottom: 0; }
.wm-verdict p strong { color: var(--text); }
.wm-notes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.4rem; }
.wm-notes li { padding: 0.6rem 0.9rem; font-size: 0.9rem; color: var(--muted); line-height: 1.5; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-left: 3px solid var(--wm-warn); border-radius: 8px; }
.wm-notes li.is-info { border-left-color: var(--wm-mute); }
.wm-notes li strong { color: var(--text); }
.wm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.wm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.wm-table th { padding: 0.55rem 0.8rem; text-align: right; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--rk-accent-line); white-space: nowrap; }
.wm-table th:nth-child(-n+2), .wm-table td:nth-child(-n+2) { text-align: left; }
.wm-table td { padding: 0.5rem 0.8rem; text-align: right; font-family: Consolas, Menlo, monospace; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.wm-table tr:last-child td { border-bottom: 0; }
.wm-table td:first-child { width: 1%; color: var(--text); font-weight: 700; border-left: 3px solid var(--r, transparent); }
.wm-table td.wm-host { color: var(--text); max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.wm-table tr.is-bad { --r: var(--wm-bad); background: rgba(255, 92, 72, 0.08); }
.wm-table tr.is-bad td.wm-loss { color: var(--wm-bad); font-weight: 700; }
.wm-table tr.is-skip { --r: var(--wm-mute); }
.wm-table tr.is-skip td.wm-loss { color: var(--wm-mute); text-decoration: line-through; }
.wm-table tr.is-ok { --r: var(--wm-ok); }
.wm-table tr.is-slow td.wm-avg { color: var(--wm-warn); font-weight: 700; }
.wm-table .wm-tag { display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.45rem; font-family: "Inter", sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--r); border: 1px solid var(--r); border-radius: 4px; vertical-align: 1px; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--muted); }
.wm-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 0.4rem; border-radius: 2px; background: var(--k); }

/* ---------- Columns explained ---------- */
.wm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.7rem; }
.wm-col { padding: 0.9rem 1rem; background: linear-gradient(180deg, var(--rk-panel-2), var(--rk-panel)); border: 1px solid var(--line); border-radius: 10px; }
.wm-col b { display: block; margin: 0 0 0.25rem; font-family: Consolas, Menlo, monospace; font-size: 1rem; color: var(--rk-accent-bright); }
.wm-col span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.wm-col span strong { color: var(--text); }

/* ---------- Who to send it to ---------- */
.wm-send { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wm-send-card { padding: 1.3rem 1.4rem; background: linear-gradient(180deg, var(--rk-panel-2), var(--rk-panel)); border: 1px solid var(--line); border-top: 2px solid var(--c); border-radius: 12px; }
.wm-send-card h3 { margin: 0 0 0.2rem; font-family: "Cinzel", serif; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); }
.wm-send-when { margin: 0 0 0.7rem; font-size: 0.88rem; color: var(--muted); }
.wm-send-card ul { margin: 0; padding-left: 1.2rem; font-size: 0.94rem; color: var(--muted); line-height: 1.6; }
.wm-send-card li { margin-bottom: 0.35rem; }
.wm-send-card strong { color: var(--text); }
.wm-send-card a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .wm-hop, .wm-packet, .wm-verdict { animation: none; }
  .wm-hop { opacity: 1; }
  .wm-packet { display: none; }
}
@media (max-width: 720px) {
  .wm-page .rk-title { font-size: clamp(2.2rem, 12vw, 3rem); }
  .wm-step { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.1rem; }
  .wm-step-num { width: 54px; height: 54px; font-size: 1.4rem; }
  .wm-send { grid-template-columns: 1fr; }
  .wm-verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wm-reader-bar span { margin-left: 0; width: 100%; order: -1; }
}
