﻿@font-face {
  font-family: "VesroDisplay";
  src: url("VesroDisplay.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --gold: #e4c98a;
  --gold2: #f7e7c2;
  --bg: #0b0a08;
  --card: rgba(12, 10, 8, 0.48);
  --line: rgba(255, 226, 170, 0.28);
  --text: #fff6e8;
  --muted: #e8d9bb;
  --err: #ffb3b3;
  --ok: #b6e8a6;
  --glass: rgba(255, 255, 255, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Georgia, serif;
  color: var(--text);
  background: #070605;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.bg {
  position: fixed;
  inset: -40px;
  z-index: -2;
  background: url("bg.jpg") center center / cover no-repeat;
  filter: blur(18px) saturate(1.15) brightness(0.62);
  transform: scale(1.12);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 70% 20%, rgba(255, 190, 90, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(8,6,4,0.38) 0%, rgba(8,6,4,0.62) 100%);
}
main { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
header { text-align: center; margin-bottom: 28px; }
.kicker {
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  font-size: 11px; margin: 0 0 8px;
}
h1 {
  font-family: "VesroDisplay", Georgia, serif;
  font-size: 52px; margin: 0; color: var(--gold2);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65), 0 0 24px rgba(212, 179, 106, 0.28);
}
h1.brand-logo {
  margin: 0;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}
@keyframes vesro-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 12px rgba(186, 28, 22, 0.5))
      drop-shadow(0 8px 22px rgba(0,0,0,0.8));
  }
  50% {
    filter:
      drop-shadow(0 0 9px rgba(255, 255, 255, 0.62))
      drop-shadow(0 0 20px rgba(214, 42, 32, 0.72))
      drop-shadow(0 8px 22px rgba(0,0,0,0.8));
  }
}
h1.brand-logo img {
  display: block;
  margin: 0 auto;
  height: 118px;
  width: auto;
  max-width: min(560px, 94vw);
  transform: translateX(-16px);
  animation: vesro-glow 3.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  h1.brand-logo img { animation: none; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.8)); }
}
.sub { color: var(--muted); margin: 8px 0 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.16);
}
h2 { margin: 0 0 14px; font-size: 18px; color: var(--gold); }
ol { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
code, .ipbox strong {
  font-family: Consolas, monospace;
  color: var(--gold2);
}
.ipbox {
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
}
.ipbox span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 4, 0.45);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
input:focus { outline: 1px solid rgba(240, 217, 160, 0.7); }
button {
  margin-top: 6px; padding: 13px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 42%, rgba(230,200,140,0.22) 100%);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -12px 18px rgba(255,220,160,0.10),
    0 8px 22px rgba(0,0,0,0.28);
  text-shadow: 0 1px 2px rgba(0,0,0,0.40);
}
button:hover {
  filter: brightness(1.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.16) 48%, rgba(212,179,106,0.22) 100%);
}
.flash { padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; backdrop-filter: blur(10px); }
.flash p { margin: 0; }
.flash.err { background: rgba(180,40,40,0.28); color: var(--err); }
.flash.ok { background: rgba(50,120,40,0.28); color: var(--ok); }
footer {
  text-align: center; color: #d7c7a8; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.aegis-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid rgba(226, 245, 106, 0.32);
  background: rgba(12, 14, 8, 0.55);
  color: #cfc3a8; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.aegis-badge strong {
  color: #e2f56a; font-weight: 700;
  text-shadow: 0 0 10px rgba(226, 245, 106, 0.35);
}
.aegis-mark {
  width: 18px; height: 20px; flex: none;
  animation: aegis-pulse 3.2s ease-in-out infinite;
}
.aegis-mark path {
  fill: none; stroke: #e2f56a; stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round;
}
@keyframes aegis-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(226, 245, 106, 0.35)); }
  50% { filter: drop-shadow(0 0 8px rgba(226, 245, 106, 0.8)); }
}
@media (prefers-reduced-motion: reduce) {
  .aegis-mark { animation: none; }
}
.nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
  margin: 16px 0 0;
}
.nav a {
  color: var(--gold); text-decoration: none; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.nav a:hover { color: var(--gold2); background: rgba(255,255,255,0.18); }
main.wide { max-width: 760px; }
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px;
}
@media (min-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.06);
}
.stat span {
  display: block; color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.stat strong { display: block; margin-top: 6px; font-size: 20px; color: var(--gold2); }
table.chars { width: 100%; border-collapse: collapse; }
table.chars th, table.chars td { padding: 10px 8px; text-align: left; }
table.chars th {
  color: var(--muted); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
table.chars td { border-bottom: 1px solid rgba(255,226,170,0.16); }
table.chars td.num { text-align: right; font-family: Consolas, monospace; color: var(--gold2); }
table.chars th.num { text-align: right; }
.empty { color: var(--muted); margin: 0; }
.toprow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toprow a { color: var(--gold); font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.muted a { color: var(--gold); }
