@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=IM+Fell+English:ital@0;1&display=swap");

:root {
  --accent: #d4af37;
  --accent-soft: #e6c96b;

  --text: #f5f1e8;
  --muted: rgba(245,241,232,.82);

  --card-bg: rgba(8, 8, 12, 0.72);
  --border: rgba(212,175,55,0.22);

  --glow: rgba(212,175,55,0.20);
  --glow-strong: rgba(212,175,55,0.32);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  padding: 34px;

  color: var(--text);
  font-family: "IM Fell English", ui-serif, Georgia, serif;

  /* Your KC background (second image) */
  background-image: url("/kc-background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 42%, rgba(0,0,0,0.20), rgba(0,0,0,0.78)),
    linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.70)),
    rgba(0,0,0,0.45);
  z-index: -1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* HEADER */

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tag {
  display: inline-block;
  font-size: .92rem;
  letter-spacing: .7px;
  opacity: .9;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.24);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
  margin-bottom: 8px;
}

.crest {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.30);
  background:
    radial-gradient(circle at 30% 25%, rgba(212,175,55,0.20), rgba(0,0,0,0.22)),
    rgba(0,0,0,0.22);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.75),
    0 0 28px var(--glow);
  backdrop-filter: blur(10px);
  position: relative;
}

.crest::after {
  content: "♛";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: rgba(230, 201, 107, 0.95);
  text-shadow: 0 0 18px rgba(212,175,55,0.35);
}

h1 {
  margin: 0;
  font-family: "Cinzel", ui-serif, Georgia, serif;
  font-size: 2.7rem;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(212,175,55,0.30);
}

.subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* NAV */

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CARDS */

.card {
  background: var(--card-bg);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow:
    0 18px 60px rgba(0,0,0,0.75),
    0 0 26px rgba(212,175,55,0.12);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 35% 25%, rgba(212,175,55,0.10), transparent 55%);
  transform: rotate(8deg);
  pointer-events: none;
}

.card-inner { margin-bottom: 0; }

h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", ui-serif, Georgia, serif;
  color: var(--accent-soft);
  letter-spacing: 0.6px;
}

h3 {
  margin: 0 0 8px;
  font-family: "Cinzel", ui-serif, Georgia, serif;
  color: var(--accent-soft);
}

.kicker {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.small {
  color: var(--muted);
  font-size: .98rem;
  margin: 0;
}

/* BUTTONS */

.pill {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.26);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .35px;
  text-decoration: none;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.55),
    0 0 18px rgba(212,175,55,0.10);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    opacity .15s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 201, 107, 0.55);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.65),
    0 0 26px rgba(212,175,55,0.18);
}

.pill[data-status="down"] {
  opacity: 0.55;
  pointer-events: none;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.actions { margin-top: 14px; }

/* SITE MAP TREE */

.tree {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.16);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}

.node {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.10);
  background: rgba(0,0,0,0.18);
  margin: 8px 0;
}

.indent { margin-left: 18px; }
.indent2 { margin-left: 36px; }

/* FOOTER */

.footer {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(212,175,55,0.14);
  color: rgba(245,241,232,0.72);
  font-size: .92rem;
}

/* RESPONSIVE */

@media (max-width: 860px) {
  body { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
}