:root {
  --bg: #0e0d12;
  --panel: #17151e;
  --panel-2: #1e1b27;
  --line: #2b2736;
  --text: #efeaf6;
  --muted: #9a93a8;
  --faint: #5e586b;
  --total: #7ee0c3;
  --tulip: #f0609e;
  --furry: #a57cff;
  --sunflower: #ffc21a;
  --latestsmp: #2fe6d8;
  --blurple: #8b9bff;
  --ok: #4ade80;
  --bad: #f87171;
  --tip-bg: #000000cc;
  --md-text: #d8d2e2;
  --radius: 14px;
  --rainbow: linear-gradient(90deg, #ff6b6b, #ffa94d, #ffd43b, #69db7c, #4dabf7, #9775fa, #f783ac);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fff0f6;
  --panel: #ffffff;
  --panel-2: #ffe6f0;
  --line: #f6cadb;
  --text: #3b1d2c;
  --muted: #86566b;
  --faint: #b58a9c;
  --total: #13977a;
  --tulip: #d52f78;
  --furry: #7a4ae0;
  --sunflower: #b07400;
  --latestsmp: #0a8f89;
  --blurple: #5865f2;
  --ok: #16a34a;
  --bad: #dc2626;
  --tip-bg: #fffffff2;
  --md-text: #4a2a3a;
  --rainbow: linear-gradient(90deg, #e03131, #e8590c, #d9a300, #2f9e44, #1c7ed6, #7048e8, #d6336c);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Space Grotesk", system-ui, sans-serif;
  transition: background-color .2s ease, color .2s ease;
}

.theme-toggle {
  margin-left: 18px; width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  display: inline-grid; place-items: center; vertical-align: middle; padding: 0;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.flag {
  display: inline-block; vertical-align: middle; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); flex: none;
}
.flag svg { display: block; width: 100%; height: 100%; }
.brand .flag { width: 22px; height: 14px; margin-left: 8px; }
.hero h1 .flag { width: 0.95em; height: 0.6em; margin-left: 0.25em; border-radius: 6px; }
a { color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand .head { width: 28px; height: 28px; margin-right: 10px; border-radius: 4px; image-rendering: pixelated; flex: none; }
.tld, .brand .tld {
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.hero { padding: 56px 0 28px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { color: var(--muted); margin: 0; max-width: 560px; }


.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.section-head .note { color: var(--faint); font-size: 13px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.total { padding: 22px 22px 14px; }
.total-row { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.eyebrow { font-size: 15px; color: var(--muted); }
.big { font-size: clamp(48px, 9vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--total); font-variant-numeric: tabular-nums; }
.big small { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip b { font-variant-numeric: tabular-nums; }
.share { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 18px 0 4px; background: var(--panel-2); }
.share div { transition: width .6s ease; }
.share div + div { border-left: 2px solid var(--panel); }

.stats { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 10px; }
.stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.chart { position: relative; margin-top: 12px; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { fill: var(--faint); font: 11px "JetBrains Mono", monospace; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .empty { fill: var(--faint); font: 13px "Space Grotesk", sans-serif; }
.tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--tip-bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  padding: 5px 9px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.tip b { font-size: 14px; }

.unique { padding: 22px; margin-bottom: 24px; }
.unique .big { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.unique-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.unique-head > div { position: relative; }
.unique-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.unique-24h { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.plus-one {
  position: fixed; z-index: 50; pointer-events: none; font-weight: 700; font-size: 48px; line-height: 1;
  text-shadow: 0 2px 10px rgb(0 0 0 / .25);
  animation: plus-fly 2.4s cubic-bezier(.25, .6, .35, 1) forwards;
}
@keyframes plus-fly {
  0% { transform: translate(0, 10px) scale(.5); opacity: 0; }
  10% { transform: translate(calc(var(--dx) * .1), -10px) scale(1.15) rotate(0deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--fly)) scale(1) rotate(var(--rot)); opacity: 0; }
}
.unique { cursor: pointer; }
.unique:hover, .unique:focus-visible { border-color: var(--muted); outline: none; }
.unique-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.unique-toggle { color: var(--muted); font-size: 13px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.unique-toggle i { display: inline-block; font-style: normal; transition: transform .2s; }
.unique[aria-expanded="true"] .unique-toggle i { transform: rotate(180deg); }
.unique-growth { cursor: default; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.growth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .lg i { display: inline-block; width: 16px; border-radius: 2px; }
.chart .direct { fill: var(--muted); }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { padding: 20px; display: flex; flex-direction: column; border-top: 3px solid var(--c); position: relative; }
.card > .soon-pill { position: absolute; top: 6px; right: 8px; margin: 0; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.logo { width: 56px; height: 56px; border-radius: 12px; image-rendering: pixelated; flex: none; background: var(--panel-2); }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.tag { font-size: 13px; color: var(--muted); }
.visit {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  width: 100%; color: inherit; font-family: inherit; text-align: left; cursor: pointer;
}
.visit + .visit { margin-top: 8px; }
.card-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 10px; }
.links { padding: 12px; align-self: start; }
.links .visit:first-child { margin-top: 0; }
.visit span { font-variant-numeric: tabular-nums; }
.visit .mono { font-size: 14px; }
.visit:hover { border-color: var(--c); }
.visit-none, .visit-none:hover { color: var(--faint); border-style: dashed; border-color: var(--line); cursor: default; }
.visit span { color: var(--c); }
.visit-none span { color: var(--faint); }
.soon-pill {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .03em; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); vertical-align: 1px;
}
.now { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.count { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.count small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.on i { background: var(--ok); box-shadow: 0 0 0 3px #4ade8026; }
.status.off i { background: var(--bad); }
.card .stats { gap: 14px; }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 11px; font: 13px "JetBrains Mono", monospace; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--c, var(--muted)); }

.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.dc {
  display: flex; gap: 12px; align-items: center; text-decoration: none;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c);
  border-radius: 10px; padding: 12px 14px;
}
.dc:hover { border-color: var(--c); }
.dc img { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--line); }
.dc-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-nums { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dc-nums b { color: var(--text); font-size: 18px; font-weight: 700; margin-right: 2px; }
.dc-nums .on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin: 0 5px 1px 10px; }
.dc > div { min-width: 0; }

.site-foot { margin-top: 64px; padding: 36px 0 32px; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.foot-made { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--text); }
.foot-me { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.foot-me img { border-radius: 6px; image-rendering: pixelated; }
.foot-me:hover { color: var(--tulip); }
.foot-links { display: flex; gap: 20px; font-size: 15px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-small { margin-top: 18px; font-size: 13px; color: var(--faint); }
.foot-small a { color: var(--muted); }

@media (max-width: 560px) {
  header.top .wrap { height: auto; flex-wrap: wrap; row-gap: 8px; padding-top: 12px; padding-bottom: 10px; }
  nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; width: 100%; }
  nav a { margin-left: 0; font-size: 13.5px; white-space: nowrap; }
  .theme-toggle { margin-left: auto; }
  .hero { padding-right: 68px; }
}
