:root {
  --bg-deep: #0b0614;
  --bg-mid: #1a0f2e;
  --gold: #e8c56a;
  --gold-soft: #f0d78a;
  --gold-dim: #a8883a;
  --text: #f3e9d2;
  --muted: #b8a88c;
  --line: rgba(232, 197, 106, 0.28);
  --panel: rgba(18, 10, 32, 0.72);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 140, 40, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(90, 40, 140, 0.35), transparent 50%),
    linear-gradient(180deg, #140a22 0%, var(--bg-deep) 45%, #07040c 100%);
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.hero {
  position: relative;
  margin: 0 -16px 28px;
  isolation: isolate;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 35%;
  border-bottom: 1px solid var(--line);
  animation: rise 1.1s ease-out both;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 22px;
  background: linear-gradient(180deg, transparent, rgba(7, 4, 12, 0.92) 55%);
  text-align: center;
  animation: fadeUp 0.9s ease-out 0.25s both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 24px rgba(232, 197, 106, 0.35);
}

.tagline {
  margin: 6px 0 0;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.links {
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--gold);
  background: rgba(28, 16, 48, 0.88);
  transform: translateY(-1px);
  outline: none;
}

.link-list .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.link-list .desc {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.link-list .go {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  align-self: center;
}

.loading, .err {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.err { color: #ff8e8e; }

.add {
  margin-top: 28px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  animation: fadeUp 0.8s ease-out 0.55s both;
}

.add h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.add-form input {
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  background: rgba(7, 4, 12, 0.75);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
}

.add-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.add-form button {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1008;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-dim));
  border: none;
  border-radius: 2px;
  padding: 10px 20px;
  cursor: pointer;
}

.add-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.add-form button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
  .hero {
    margin: 24px 0 36px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  }

  .hero-art {
    max-height: 560px;
  }
}
