/* Coreplix Console: dark swirl-glass look, matching Groschen's pop-ups and download page. */
:root {
  --bg: #0d0c16;
  --text: #ffffff;
  --muted: #a9a7c2;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --accent: #5b5bd6;
  --accent-hover: #6e6ee8;
  --good: #86efac;
  --good-bg: rgba(34, 197, 94, 0.18);
  --warn: #fcd34d;
  --warn-bg: rgba(245, 158, 11, 0.18);
  --bad: #fca5a5;
  --bad-bg: rgba(239, 68, 68, 0.18);
  --info: #c7c7fa;
  --info-bg: rgba(91, 91, 214, 0.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--info); }

/* Swirl behind everything */
.swirl { position: fixed; inset: -20%; z-index: -2; filter: blur(80px); opacity: 0.6; pointer-events: none; }
.swirl span { position: absolute; border-radius: 50%; animation: drift 30s ease-in-out infinite alternate; }
.swirl span:nth-child(1) { width: 55vmax; height: 55vmax; left: 0; top: 5%; background: #4b2bd1; }
.swirl span:nth-child(2) { width: 45vmax; height: 45vmax; right: 0; top: 35%; background: #1f8a4c; animation-duration: 36s; }
.swirl span:nth-child(3) { width: 35vmax; height: 35vmax; left: 40%; bottom: 0; background: #7d2bb5; animation-duration: 26s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) rotate(40deg) scale(1.15); } }
.dim { position: fixed; inset: 0; z-index: -1; background: rgba(13, 12, 22, 0.72); pointer-events: none; }

/* Layout: sidebar + content */
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.28);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-weight: 600; font-size: 18px; }
.brand img { height: 26px; }
.side a.nav {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.side a.nav:hover { background: var(--glass); color: var(--text); }
.side a.nav.active { background: var(--accent); color: #fff; }
.side .spacer { flex: 1; }
.side .me { color: var(--muted); font-size: 13px; padding: 8px 12px; }
.side form { margin: 0; }
main { padding: 36px 40px 60px; max-width: 1180px; width: 100%; }
h1 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 32px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.lead { color: var(--muted); margin: 0 0 28px; }

/* Cards and tables */
.card {
  background: var(--glass); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 34px; font-weight: 600; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 0 12px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.sub { color: var(--muted); font-size: 13px; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }
.empty { color: var(--muted); padding: 8px 0; }

/* Chips */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.plain { background: var(--glass-strong); color: var(--muted); }

/* Forms and buttons */
label { display: block; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0, 0, 0, 0.3); color: var(--text);
  font: inherit;
}
input[type=date] { color-scheme: dark; }
/* Keys and webhooks: typed in a plain box (so browsers never fill in a saved password), but shown as dots */
.secret-input { -webkit-text-security: disc; text-security: disc; font-family: "Cascadia Mono", Consolas, monospace; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row .field { flex: 1 1 220px; margin-bottom: 0; }
button, .button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-hover); }
button.glass { background: var(--glass-strong); border-color: var(--border); font-weight: 500; }
button.glass:hover { background: rgba(255, 255, 255, 0.2); }
button.small { padding: 6px 12px; font-size: 13px; }
button.danger { background: rgba(239, 68, 68, 0.75); }
button.danger:hover { background: rgba(239, 68, 68, 0.9); }
button:focus-visible, .button:focus-visible, a.nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }

/* Messages */
.notice { border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; border: 1px solid var(--border); }
.notice.good { background: var(--good-bg); }
.notice.bad { background: var(--bad-bg); }
.notice h2 { margin-bottom: 8px; }
.bigcode { font-family: "Cascadia Mono", Consolas, monospace; font-size: 28px; font-weight: 600; letter-spacing: 0.08em; margin: 4px 0 12px; }
.copybox { position: relative; }
.copybox textarea { min-height: 210px; resize: vertical; font-size: 14px; line-height: 1.5; }
.copybox button { margin-top: 10px; }

/* Login page */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; }
.login .brand { justify-content: center; padding-bottom: 8px; }
.login h1 { text-align: center; font-size: 28px; }
.login .lead { text-align: center; }
.login button { width: 100%; justify-content: center; margin-top: 6px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid var(--border); padding: 12px; position: static; height: auto; }
  .brand { padding: 0 8px 0 4px; }
  .side .spacer, .side .me { display: none; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .swirl span { animation: none; } }
.stack { margin: 0 0 6px; }
.privacy { max-width: 760px; margin: 0 auto; }
.privacy .brand { padding: 0 0 18px; }
.privacy ul { padding-left: 20px; margin: 0; }
.privacy li + li { margin-top: 6px; }
.privacy p { margin: 0 0 8px; }

/* Authenticator setup and sign-in code */
.hidden { display: none; }
.center { text-align: center; }
.grow { flex: 1 1 320px; }
.setup { max-width: 640px; }
.login-wrap .setup { width: 100%; }
.steps { padding-left: 22px; margin: 0 0 18px; }
.steps li { margin-bottom: 18px; }
.qr { margin: 12px 0 8px; }
.qr img { border-radius: 12px; display: block; }
.codeinput { font-family: "Cascadia Mono", Consolas, monospace; font-size: 22px !important; letter-spacing: 0.2em; text-align: center; }
.codeform { margin-top: 10px; max-width: 360px; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 18px; margin: 10px 0 16px;
            background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; max-width: 420px; }
.login .sub.center { margin: 14px 0 0; }
.button.glass { background: var(--glass-strong); border-color: var(--border); font-weight: 500; }
.button.glass:hover { background: rgba(255, 255, 255, 0.2); }

/* Home screen: a tile per app, Coreplix underneath */
.home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 80px 16px 48px; }
.home-top { position: absolute; top: 18px; right: 22px; display: flex; align-items: center; gap: 12px; }
.home-top form { margin: 0; }
.home-apps { position: relative; display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
/* Frosted zone behind the app tiles: blurs the map there and fades out softly at the edges */
.home-apps::before {
  content: ""; position: absolute; inset: -90px -140px; z-index: -1; pointer-events: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(10, 10, 20, 0.28);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
}
.app-tile {
  width: 290px; padding: 30px 26px 26px; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(14, 14, 26, 0.62); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s, border-color 0.35s, background 0.35s;
  animation: rise 0.6s cubic-bezier(.2, .8, .2, 1) both;
}
.app-tile:nth-child(2) { animation-delay: 0.08s; }
.app-tile:nth-child(3) { animation-delay: 0.16s; }
.app-logo { width: 190px; height: 190px; object-fit: contain; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1), filter 0.35s; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)); }
.app-name { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 26px; font-weight: 600; margin-top: 6px; }
.app-line { color: var(--muted); font-size: 13px; }
a.app-tile:hover, a.app-tile:focus-visible {
  transform: translateY(-8px); background: rgba(30, 30, 48, 0.72); border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 60px rgba(124, 108, 255, 0.25);
}
/* Turns like the 3D coin on the apps' loading screens */
a.app-tile:hover .app-logo, a.app-tile:focus-visible .app-logo { transform: perspective(700px) rotateY(22deg) rotateX(6deg) scale(1.04); filter: drop-shadow(0 10px 26px rgba(255, 255, 255, 0.18)); }
a.app-tile:focus-visible, a.coreplix-tile:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.app-tile.soon { cursor: default; }
.app-tile.soon > * { opacity: 0.45; }
.app-tile.soon .app-logo { filter: grayscale(1) brightness(0.8); }
.coreplix-tile { margin-top: 15vh; }
.coreplix-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 34px 18px; border-radius: 22px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.35s, border-color 0.35s, box-shadow 0.35s;
  animation: rise 0.6s cubic-bezier(.2, .8, .2, 1) 0.26s both;
}
.coreplix-tile img { width: 250px; transition: filter 0.35s; }
.coreplix-tile:hover, .coreplix-tile:focus-visible {
  transform: translateY(-5px); background: var(--glass); border-color: var(--border);
  box-shadow: 0 0 60px rgba(255, 59, 31, 0.22);
}
.coreplix-tile:hover img { filter: drop-shadow(0 0 18px rgba(255, 59, 31, 0.45)); }
/* A division's page (/programs, /websites, /games): its name above its product tiles */
.division-head { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise 0.6s cubic-bezier(.2, .8, .2, 1) both; }
.division-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 34px; font-weight: 600; }
.division-head h1 img { width: 54px; height: 54px; }
.division-back { color: var(--muted); text-decoration: none; font-size: 13px; }
.division-back:hover, .division-back:focus-visible { color: var(--text); }
.empty-division .app-logo { width: 140px; height: 140px; }

/* VPS tabs: one address each (/coreplix/vps/security); a dot when something on that tab needs a look */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 22px; padding: 5px; border-radius: 14px; width: fit-content; max-width: 100%;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-weight: 500; transition: background 0.25s, color 0.25s, transform 0.25s; }
.tab:hover { color: var(--text); background: var(--glass); }
.tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 22px rgba(124, 108, 255, 0.35); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.tab-dot.warn { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.tab-dot.bad { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: hud-blink 1.4s steps(2, jump-none) infinite; }
.finding .grow { flex: 1; min-width: 0; }
.finding-link { flex: none; align-self: center; color: var(--muted); text-decoration: none; font-size: 13px; padding: 4px 10px; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.finding-link:hover, .finding-link:focus-visible { color: var(--text); background: var(--glass); }
@media (prefers-reduced-motion: reduce) { .tab-dot.bad { animation: none; } }

/* VPS › Security: the attack map (attack-map.js does the hover) */
.attack-map { position: relative; margin: 6px 0 14px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); }
.attack-map svg { display: block; width: 100%; height: auto; }
.attack-map .land { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.4; transition: fill 0.25s, stroke 0.25s; }
.attack-map .land.heat-1 { fill: rgba(255, 59, 31, 0.22); }
.attack-map .land.heat-2 { fill: rgba(255, 59, 31, 0.38); }
.attack-map .land.heat-3 { fill: rgba(255, 59, 31, 0.55); }
.attack-map .land.heat-4 { fill: rgba(255, 59, 31, 0.74); }
.attack-map .land.heat-5 { fill: rgba(255, 59, 31, 0.95); filter: drop-shadow(0 0 4px rgba(255, 59, 31, 0.6)); }
.attack-map .land:hover, .attack-map .land.active, .attack-map .land:focus-visible { stroke: #fff; stroke-width: 1; outline: none; }
.map-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap;
  background: rgba(14, 14, 26, 0.92); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.map-tip[hidden] { display: none; }
.map-legend { position: absolute; left: 18px; bottom: 14px; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.map-legend i { width: 18px; height: 8px; border-radius: 2px; }
.map-legend i.heat-1 { background: rgba(255, 59, 31, 0.22); }
.map-legend i.heat-2 { background: rgba(255, 59, 31, 0.38); }
.map-legend i.heat-3 { background: rgba(255, 59, 31, 0.55); }
.map-legend i.heat-4 { background: rgba(255, 59, 31, 0.74); }
.map-legend i.heat-5 { background: rgba(255, 59, 31, 0.95); }
.map-legend span { margin: 0 4px; }
.attack-table tr.active td { background: rgba(255, 59, 31, 0.1); }
.attack-table .meter { display: block; margin-top: 4px; max-width: 220px; }
.credit a { color: var(--muted); }

/* A game's bug reports */
.report-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.report-log {
  max-height: 520px; overflow: auto; margin: 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre; tab-size: 4;
}
.report-log:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.facts th { width: 160px; color: var(--muted); font-weight: 500; }

/* People: roles on Coreplix Core */
.role-pick { display: flex; gap: 6px; align-items: center; }
.role-pick select { width: auto; padding: 4px 8px; }
.games-pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.games-pick legend { color: var(--muted); font-size: 13px; padding: 0; margin-bottom: 8px; }
.games-pick label { display: inline-flex; gap: 6px; align-items: center; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

/* Sidebar: back to home, and an app's own logo */
.side a.home-link { color: var(--muted); text-decoration: none; font-size: 13px; padding: 0 8px 18px; }
.side a.home-link:hover { color: var(--text); }
.brand img { max-width: 150px; }
.brand.app-brand img { height: 34px; }
.brand.coreplix-brand img { height: 46px; max-width: none; }
.app-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.app-link img { height: 24px; }
.app-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .home { justify-content: flex-start; gap: 28px; }
  .coreplix-tile { margin-top: 4vh; }
  .home-apps { gap: 18px; }
  .app-tile { width: 100%; max-width: 320px; }
  .app-logo { width: 140px; height: 140px; }
  .side a.home-link { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-tile, .coreplix-tile { animation: none; transition: none; }
  a.app-tile:hover, .coreplix-tile:hover { transform: none; }
  a.app-tile:hover .app-logo { transform: none; }
}

/* Ops map behind the home and sign-in screens (hud.js): map panels over the swirl, plus a few readouts */
.hud { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hud canvas { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.54; }
/* Fine diagonal hatching over the map, and darker edges so the middle stays calm */
.hud::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px); }
.hud::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8, 9, 16, 0.35) 0%, transparent 45%, rgba(5, 6, 12, 0.7) 100%); }
.hud-block { position: absolute; z-index: 1; font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(170, 215, 225, 0.55); }
.hud-top { top: 22px; left: 26px; }
.hud-link { color: rgba(170, 215, 225, 0.6); letter-spacing: 0.16em; }
.hud-link.weak { color: rgba(255, 110, 90, 0.8); }
.hud-bottom { left: 26px; bottom: 22px; }
.hud-region { font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif; font-weight: 300; font-size: 18px; letter-spacing: 0.28em; color: rgba(225, 242, 246, 0.8); margin: 3px 0 1px; }
.hud-next { margin-top: 6px; color: rgba(255, 110, 90, 0.75); }
.hud-marker {
  position: absolute; left: 0; top: 0; z-index: 1; height: 12px; margin: -6px 0 0 -4px;
  display: flex; align-items: center; gap: 9px; opacity: 0; transition: opacity 0.6s; will-change: transform;
  font: 10px "Cascadia Mono", Consolas, monospace; letter-spacing: 0.18em; color: rgba(255, 130, 110, 0.9);
}
.hud-marker.on { opacity: 1; }
.hud-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 12px #ff3b1f; animation: hud-blink 1.4s steps(2, jump-none) infinite; }
.hud-dot::after { content: ""; position: absolute; inset: -3px; border: 1px solid rgba(255, 59, 31, 0.8); border-radius: 50%; animation: hud-ping 2.2s ease-out infinite; }
@keyframes hud-blink { 50% { opacity: 0.3; } }
@keyframes hud-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }
@media (max-width: 760px) {
  .hud-top { display: none; }
  .hud-region { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-dot, .hud-dot::after { animation: none; }
}

/* VPS page: health list, live meters, charts and the hosting tree */
.lead .checked { font-size: 13px; }
.findings ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finding { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); animation: rise 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.finding:nth-child(2) { animation-delay: 0.05s; }
.finding:nth-child(3) { animation-delay: 0.1s; }
.finding:nth-child(n+4) { animation-delay: 0.15s; }
.finding-title { font-weight: 600; }
.finding-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.finding.good .finding-dot { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.finding.info .finding-dot { background: #7c7cf0; box-shadow: 0 0 10px #7c7cf0; }
.finding.warn .finding-dot { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.finding.bad .finding-dot { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: hud-blink 1.4s steps(2, jump-none) infinite; }

.live-stats .stat { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: rise 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.live-stats .stat:nth-child(2) { animation-delay: 0.04s; }
.live-stats .stat:nth-child(3) { animation-delay: 0.08s; }
.live-stats .stat:nth-child(4) { animation-delay: 0.12s; }
.live-stats .stat:nth-child(5) { animation-delay: 0.16s; }
.live-stats .value, .live-stats .net { transition: color 0.6s; }
.live-stats.ticked .value, .live-stats.ticked .net { color: #dcdcff; }
.live-stats .net { font-size: 20px; font-weight: 600; margin-top: 6px; white-space: nowrap; }
.arrow.in { color: #34d399; }
.arrow.out { color: #60a5fa; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #22c55e; vertical-align: middle; animation: hud-blink 2s steps(2, jump-none) infinite; }
.meter { display: block; width: 100%; height: 6px; margin: 10px 0 8px; overflow: visible; }
.meter .track { fill: rgba(255, 255, 255, 0.1); }
.meter .fill { transition: width 0.8s cubic-bezier(.2, .8, .2, 1), fill 0.6s; }
.meter .fill.good { fill: #4ade80; }
.meter .fill.warn { fill: #fbbf24; }
.meter .fill.bad { fill: #f87171; }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.ranges { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); }
.range { padding: 5px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.25s, color 0.25s; }
.range:hover { color: var(--text); background: var(--glass); }
.range.active { background: var(--accent); color: #fff; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-title { font-weight: 600; }
.chart-summary { margin-left: auto; color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.legend .key::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; background: currentColor; }
.plot { position: relative; height: 150px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; cursor: crosshair; }
.plot svg { display: block; width: 100%; height: 100%; animation: reveal 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.plot .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; stroke-dasharray: 3 4; }
.plot .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.axis-max { position: absolute; top: 4px; left: 8px; z-index: 1; font-size: 11px; color: var(--muted); pointer-events: none; }
.axis-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }
.cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.45); pointer-events: none; }
.tip { position: absolute; top: 10px; transform: translateX(10px); z-index: 2; padding: 7px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; pointer-events: none;
       background: rgba(14, 14, 26, 0.88); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tip.flip { transform: translateX(calc(-100% - 10px)); }
.tip-time { color: var(--muted); margin-bottom: 2px; }
/* Series colours: CPU, memory, network in, network out, disk */
.line.s1 { stroke: #8b8bff; } .stop-top.s1 { stop-color: #8b8bff; stop-opacity: 0.35; } .stop-bottom.s1 { stop-color: #8b8bff; stop-opacity: 0; }
.line.s2 { stroke: #c084fc; } .stop-top.s2 { stop-color: #c084fc; stop-opacity: 0.35; } .stop-bottom.s2 { stop-color: #c084fc; stop-opacity: 0; }
.line.s3 { stroke: #34d399; } .stop-top.s3 { stop-color: #34d399; stop-opacity: 0.25; } .stop-bottom.s3 { stop-color: #34d399; stop-opacity: 0; }
.line.s4 { stroke: #60a5fa; } .stop-top.s4 { stop-color: #60a5fa; stop-opacity: 0.2; } .stop-bottom.s4 { stop-color: #60a5fa; stop-opacity: 0; }
.line.s5 { stroke: #fbbf24; } .stop-top.s5 { stop-color: #fbbf24; stop-opacity: 0.3; } .stop-bottom.s5 { stop-color: #fbbf24; stop-opacity: 0; }
.key.s3 { color: #34d399; } .key.s4 { color: #60a5fa; }

/* Hosting tree: lines join each item to its parent */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 14px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.tree li { position: relative; padding: 6px 0; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 20px; width: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.node { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 7px 12px; border-radius: 10px; transition: background 0.25s; }
.node:hover { background: var(--glass); }
.node-name { font-weight: 600; }
.versions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 0; }
dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 12px 20px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
dl.facts dd { margin: 0; }

@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
  .tree ul { margin-left: 6px; padding-left: 12px; }
  .tree ul > li::before { left: -12px; width: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .finding, .live-stats .stat, .plot svg, .pulse, .finding.bad .finding-dot { animation: none; }
  .meter .fill { transition: none; }
}

/* VPS page: fail2ban */
.toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.mini-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 14px 0; }
.mini-stats > div { display: flex; flex-direction: column; }
.mini-value { font-size: 26px; font-weight: 600; }
.versions.blocked { padding: 0 0 14px; }
.log { max-height: 380px; overflow-y: auto; border-radius: 12px; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.07); padding: 6px 0; margin-bottom: 8px; }
.log-line { display: grid; grid-template-columns: 150px 100px 1fr; gap: 10px; align-items: center; padding: 5px 14px; font-size: 13px; }
.log-line:hover { background: var(--glass); }
.log-line .chip { justify-self: start; }
.log-time { color: var(--muted); white-space: nowrap; }
.log-text { font-size: 12px; overflow-wrap: anywhere; color: #d8d8ee; }
.log-line.found { display: none; }
.log.show-found .log-line.found { display: grid; }
.log-line.found .log-text { color: var(--muted); }
@media (max-width: 760px) {
  .log-line { grid-template-columns: 1fr auto; }
  .log-text { grid-column: 1 / -1; }
}

/* Website analytics (Apps/Index for the website) */
.meter .fill.info { fill: #8b8bff; }
td .meter { max-width: 260px; margin: 8px 0 0; }
.log-line.activity { grid-template-columns: 150px minmax(120px, 200px) 1fr; }
.log-line.activity b { color: var(--text); font-weight: 600; }
.card > .chart { margin-bottom: 12px; }
.key.s1 { color: #8b8bff; }
.stack-top { margin: 14px 0 8px; }

/* Website: overview extras and the Messages page */
a.stat-link { color: inherit; text-decoration: none; transition: border-color .25s, background .25s; }
a.stat-link:hover { border-color: rgba(255, 255, 255, 0.34); background: var(--glass-strong); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 22px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.bars li .meter { grid-column: 1 / -1; margin: 2px 0 0; }
h2.spaced { margin-top: 24px; }
.side .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #ff3b1f; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.message.unread { border-color: rgba(139, 139, 255, 0.55); box-shadow: 0 0 0 1px rgba(139, 139, 255, 0.25); }
.message-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.message-from { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.message-from a { color: var(--text); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.button.small { padding: 6px 12px; font-size: 13px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Website overview: press kits */
.kit-block + .kit-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.kit-block h3 { margin: 0 0 4px; font-size: 16px; }
.kit-block .bars { margin-top: 6px; }
.bars .mono { font-size: 13px; overflow-wrap: anywhere; }

/* A game's coverage (Pages/Games/Coverage) */
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.find { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.18);
  border: 1px solid transparent; transition: border-color 0.25s, background 0.25s; scroll-margin-top: 20px; }
.find:hover { border-color: var(--border); }
.find.new { border-left: 3px solid #f59e0b; }
.find.ignored { opacity: 0.6; }
.find-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.find-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.find-title { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.find-title:hover, .find-title:focus-visible { text-decoration: underline; }
.find-snippet { margin: 0; overflow-wrap: anywhere; }
.find-actions { flex: none; display: flex; gap: 6px; align-items: center; }
.find-actions form { margin: 0; }
.card-head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .find { flex-direction: column; } }
/* The list scrolls inside its card, so the page stays short however much is found */
.finds { max-height: min(70vh, 760px); overflow-y: auto; padding-right: 6px; overscroll-behavior: contain; }
.finds::-webkit-scrollbar { width: 8px; }
.finds::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 8px; }
.tidy { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: -4px 0 12px; }
.archive-link { width: fit-content; text-decoration: none; }
.archive-link:hover, .archive-link:focus-visible { color: var(--text); text-decoration: underline; }
.find-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }

/* A game's sidebar: its logo (no name), which opens a list of the other games */
.brand.game-brand { padding: 4px 8px 22px; }
.brand.game-brand img, .game-switch summary img { height: auto; max-height: 64px; max-width: 170px; object-fit: contain; }
.game-switch { position: relative; margin: 0 0 18px; }
.game-switch summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.game-switch summary::-webkit-details-marker { display: none; }
.game-switch summary:hover, .game-switch[open] summary { background: var(--glass); border-color: var(--border); }
.game-switch summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.switch-caret { margin-left: auto; color: var(--muted); font-size: 16px; line-height: 1; transition: transform 0.25s, color 0.25s; }
.game-switch summary:hover .switch-caret { color: var(--text); }
.game-switch[open] .switch-caret { transform: rotate(180deg); }
.switch-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; border-radius: 14px; display: grid; gap: 2px;
  background: rgba(14, 14, 26, 0.94); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: rise 0.25s cubic-bezier(.2, .8, .2, 1) both; }
.switch-label { color: var(--muted); font-size: 12px; padding: 4px 10px 6px; }
.switch-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.switch-menu a:hover, .switch-menu a:focus-visible { background: var(--glass); outline: none; }
.switch-menu a img { width: 64px; height: 32px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .switch-menu { animation: none; } .switch-caret { transition: none; } }

/* Bottom of the sidebar: My account and Sign out side by side */
.me-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.me-actions form { margin: 0; }
.me-actions .button.current { border-color: rgba(255, 255, 255, 0.4); color: var(--text); }



/* The ops map behind the home and sign-in screens can be clicked (hud.js): a crosshair over empty background only */
.home, .home-apps, .division-head, .login-wrap { cursor: crosshair; }
.home .app-tile, .home .coreplix-tile, .home-top, .division-head h1, .division-head a, .login { cursor: auto; }
.home a, .home button, .login a, .login button { cursor: pointer; }
.app-tile.soon { cursor: default; }
