@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geistmono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --surface-2: #18181b;
    --line: #1f1f23;
    --line-strong: #2a2a2e;
    --text: #f4f4f5;
    --text-2: #a1a1aa;
    --text-3: #8b8b93;
    --accent: #e5484d;
    --ok: #4ade80;
    --radius: 12px;
    --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
p { margin: 0; }
a { color: var(--text); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); font-size: 14px; }
.fine { color: var(--text-3); font-size: 12px; margin-top: 10px; }
.error { color: var(--accent); font-size: 14px; }

.top { border-bottom: 1px solid var(--line); padding: 28px 0 22px; margin-bottom: 26px; }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { font-size: 12px; font-family: var(--mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }
.pill.good { color: var(--ok); }
.pill.bad { color: var(--accent); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.figure { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.label { color: var(--text-2); font-size: 13px; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-top: 18px; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.col { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.chart .bar { width: 100%; min-height: 2px; height: var(--v); background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.85; }
.day:hover .bar { opacity: 1; }
.tick { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
td { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:first-child td { border-top: 0; }
.name { color: var(--text); font-family: var(--mono); font-size: 13px; padding-right: 16px; white-space: nowrap; }
.count { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; padding-left: 16px; }
.track { width: 100%; }
.track .bar { height: 8px; width: var(--v); min-width: 3px; background: var(--accent); border-radius: 4px; opacity: 0.8; }
.crashes td a { font-family: var(--mono); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crashes td a:hover { border-bottom-color: var(--accent); }

.log { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0 0 30px; }

.centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.login label { font-size: 13px; color: var(--text-2); margin-top: 6px; }
input { font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: var(--accent); border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; margin-top: 8px; }
button:hover { filter: brightness(1.08); }
.ghost { font: inherit; font-size: 14px; color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 14px; cursor: pointer; margin: 0; text-decoration: none; display: inline-block; }
.ghost:hover { color: var(--text); border-color: var(--text-3); }

@media (max-width: 760px) {
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .figure { font-size: 24px; }
    .tick { display: none; }
    .row { flex-direction: column; }
}

.discord { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; font-weight: 500; color: #fff; background: #5865f2; border: 0; border-radius: 8px; padding: 11px 16px; text-decoration: none; margin-top: 4px; transition: filter 0.15s ease; }
.discord:hover { filter: brightness(1.1); }
.login form { display: flex; flex-direction: column; gap: 0; margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.avatar { display: inline-block; vertical-align: -5px; border-radius: 50%; margin-right: 7px; }
.search { display: flex; gap: 8px; margin-top: 14px; }
.search input { flex: 1; }
.search button { margin-top: 0; }
hr.or { border: 0; border-top: 1px solid var(--line); margin: 14px 0 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2 .card { margin-bottom: 0; }
.whoami { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.whoami form { margin: 0; }
.avatar.big { width: 28px; height: 28px; margin-right: 0; vertical-align: middle; }
.card { transition: border-color 0.2s ease; }
.card:hover { border-color: var(--line-strong); }
.breakdown tr, .crashes tr { transition: background 0.15s ease; }
.breakdown tr:hover td, .crashes tr:hover td { background: var(--surface-2); }
.top { background: linear-gradient(180deg, rgba(229, 72, 77, 0.05), transparent); }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0.55; }
.chart { padding-bottom: 2px; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .whoami { align-self: flex-start; }
}

.back-home { display: inline-block; font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.15s ease; }
.back-home:hover { color: var(--text); }
.top .back-home { margin-bottom: 6px; }
.login .back-home { margin-top: 12px; text-align: center; }

.gallery-item h2 { font-size: 15px; }
.ghost.on { color: var(--text); border-color: var(--accent); }
.search input[type="search"] { flex: 1; }

textarea.code { width: 100%; box-sizing: border-box; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; resize: vertical; word-break: break-all; }
textarea.code:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gallery-item form { margin-top: 10px; }

textarea.code.short { word-break: normal; white-space: nowrap; overflow-x: auto; }

.b0 { --v: 0%; }
.b2 { --v: 2%; }
.b4 { --v: 4%; }
.b6 { --v: 6%; }
.b8 { --v: 8%; }
.b10 { --v: 10%; }
.b12 { --v: 12%; }
.b14 { --v: 14%; }
.b16 { --v: 16%; }
.b18 { --v: 18%; }
.b20 { --v: 20%; }
.b22 { --v: 22%; }
.b24 { --v: 24%; }
.b26 { --v: 26%; }
.b28 { --v: 28%; }
.b30 { --v: 30%; }
.b32 { --v: 32%; }
.b34 { --v: 34%; }
.b36 { --v: 36%; }
.b38 { --v: 38%; }
.b40 { --v: 40%; }
.b42 { --v: 42%; }
.b44 { --v: 44%; }
.b46 { --v: 46%; }
.b48 { --v: 48%; }
.b50 { --v: 50%; }
.b52 { --v: 52%; }
.b54 { --v: 54%; }
.b56 { --v: 56%; }
.b58 { --v: 58%; }
.b60 { --v: 60%; }
.b62 { --v: 62%; }
.b64 { --v: 64%; }
.b66 { --v: 66%; }
.b68 { --v: 68%; }
.b70 { --v: 70%; }
.b72 { --v: 72%; }
.b74 { --v: 74%; }
.b76 { --v: 76%; }
.b78 { --v: 78%; }
.b80 { --v: 80%; }
.b82 { --v: 82%; }
.b84 { --v: 84%; }
.b86 { --v: 86%; }
.b88 { --v: 88%; }
.b90 { --v: 90%; }
.b92 { --v: 92%; }
.b94 { --v: 94%; }
.b96 { --v: 96%; }
.b98 { --v: 98%; }
.b100 { --v: 100%; }
