/* Tarnish Online — shared chrome (Velmora night + gold + cyan) */
:root {
  --bg: #05070d;
  --bg-mid: #080d19;
  --bg-deep: #03050a;
  --bg-alt: #0a1020;
  --bg-card: rgba(9, 15, 29, 0.86);
  --bg-card-solid: #0c1422;
  --iron: #3a4558;
  --iron-soft: #121a28;
  --patina: #c9a961;
  --patina-dim: #a88c4a;
  --gold: #c9a961;
  --gold-bright: #f0e3b4;
  --rust: #c45a3a;
  --rust-bright: #e07850;
  --spark: #63d9ff;
  --accent-cyan: #63d9ff;
  --accent-cyan-soft: rgba(99, 217, 255, 0.22);
  --line-gold: rgba(201, 169, 97, 0.42);
  --line-cyan: rgba(99, 217, 255, 0.28);
  --line-subtle: rgba(231, 228, 216, 0.12);
  --glow: rgba(201, 169, 97, 0.18);
  --bone: #e7e4d8;
  --bone-dim: #99a2b0;
  --text-on-gold: #151006;
  --ok: #8fdcc8;
  --err: #ff8d8d;
  --font-heading: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --container: min(1100px, calc(100% - 2rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tarnish-shell {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(36, 64, 108, 0.22) 0%, transparent 64%),
    radial-gradient(700px 460px at 82% 105%, rgba(92, 32, 28, 0.14) 0%, transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 52%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body.tarnish-shell::before,
body.tarnish-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.tarnish-shell::before {
  background: radial-gradient(ellipse at center, rgba(118, 219, 255, 0.07), transparent 67%);
  filter: blur(28px);
}

body.tarnish-shell::after {
  background-image:
    radial-gradient(circle at 12% 28%, rgba(109, 213, 255, 0.18) 0 2px, transparent 2px),
    radial-gradient(circle at 66% 72%, rgba(109, 213, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 88% 20%, rgba(190, 227, 255, 0.14) 0 1.5px, transparent 1.5px);
  opacity: 0.4;
}

body.tarnish-shell > * { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  background: rgba(5, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-cyan);
}
.topbar img { height: 34px; width: auto; }
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar nav a { color: var(--bone-dim); }
.topbar nav a:hover,
.topbar nav a[aria-current="page"] { color: var(--accent-cyan); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 217, 255, 0.44);
  background: rgba(9, 17, 27, 0.78);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-head {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(99, 217, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(30, 56, 77, 0.35), rgba(10, 18, 28, 0.45)),
    rgba(8, 15, 24, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(99, 217, 255, 0.08),
    0 0 20px rgba(99, 217, 255, 0.08);
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.section-head p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 0.92rem;
}

.panel,
.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 217, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(24, 47, 66, 0.42), rgba(9, 18, 28, 0.72)),
    var(--bg-card);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(99, 217, 255, 0.1),
    0 0 34px rgba(99, 217, 255, 0.07);
  padding: 1.15rem 1.25rem;
  overflow: hidden;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line-gold);
  border-radius: 0;
  background: rgba(201, 169, 97, 0.08);
  color: var(--gold-bright);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-bright);
  background: rgba(201, 169, 97, 0.16);
  box-shadow: 0 0 22px rgba(201, 169, 97, 0.18);
}
.btn-primary {
  background: linear-gradient(180deg, #e8d7a0 0%, #c9a961 55%, #a88c4a 100%);
  color: var(--text-on-gold);
  border-color: rgba(240, 227, 180, 0.65);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f0e3b4 0%, #d4b56e 55%, #b89a52 100%);
  color: var(--text-on-gold);
}
.btn-ghost {
  background: rgba(8, 16, 25, 0.55);
  border-color: var(--line-cyan);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--line-subtle);
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  margin-top: auto;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-bottom: 0.65rem;
}
.site-footer .footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.site-footer .footer-links a:hover { color: var(--accent-cyan); }
.site-footer p {
  font-size: 0.72rem;
  color: var(--iron);
  margin: 0;
}
