:root {
  --bg: #0c0808;
  --bg-panel: #120e0e;
  --bg-card: #1a1412;
  --text: #e8dfd0;
  --text-muted: #a89888;
  --horde-red: #c41e3a;
  --horde-red-glow: #ff4458;
  --horde-dark: #5c1018;
  --gold: #c9a227;
  --gold-light: #e8c55a;
  --green-br: #2d6a3e;
  --live: #9146ff;
  --border: #3d2c28;
  --border-gold: #6b5520;
  --font: "Segoe UI", system-ui, sans-serif;
  --header-h: 7.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 30, 58, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(45, 106, 62, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(201, 162, 39, 0.06), transparent);
  z-index: 0;
}

code {
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  color: var(--gold-light);
}

.highlight-gold {
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(12, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/branding/contentbra (1).png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 84px auto;
  opacity: 0.1;
  pointer-events: none;
}

.header-left,
.header-center,
.header-actions {
  display: flex;
  align-items: center;
}

.header-left,
.header-actions {
  flex: 0 1 auto;
}

.header-center {
  flex: 1 1 320px;
  justify-content: center;
  min-width: 240px;
}

.header-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.header-discord:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--gold-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.55));
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.spotify-player {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 auto;
}

.spotify-player-header {
  width: min(560px, 100%);
}

.spotify-player iframe {
  border-radius: 16px;
  min-height: 72px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.spotify-player-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.9;
}

main.scroll-root {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 1.5rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link,
.header-discord {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.header-link:hover,
.header-discord:hover {
  color: var(--gold-light);
}

.section-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.dot:hover {
  background: var(--horde-red);
}

.dot.is-active {
  background: var(--horde-red-glow);
  box-shadow: 0 0 10px var(--horde-red);
  transform: scale(1.25);
}

/* Scroll */
.scroll-root {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 2.5rem;
}

.panel-guild {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(196, 30, 58, 0.12) 0%, transparent 55%),
    var(--bg-panel);
}

.panel-mural {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    var(--bg);
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 2rem);
}

.panel-lives {
  background:
    radial-gradient(ellipse at 70% 60%, rgba(145, 70, 255, 0.08) 0%, transparent 45%),
    var(--bg-panel);
}

.panel-addon {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(92, 16, 24, 0.2) 0%, transparent 50%),
    var(--bg-panel);
}

.panel-addon .scroll-indicator {
  display: none;
}

.panel-inner {
  max-width: 640px;
  text-align: center;
}

.panel-inner-wide {
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

.panel-guild-inner {
  max-width: 520px;
}

.guild-hero-logo {
  width: min(100%, 380px);
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.guild-tag {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--horde-red-glow);
  margin: 0 0 1rem;
  font-weight: 700;
}

.guild-lead {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--horde-red-glow);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.panel h1,
.panel h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.lead-left {
  max-width: 52ch;
}

.guild-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.guild-pillars li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-horde {
  background: linear-gradient(180deg, var(--horde-red) 0%, var(--horde-dark) 100%);
  color: #fff;
  border: 1px solid var(--horde-red-glow);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
}

.btn-horde:hover {
  box-shadow: 0 6px 28px rgba(255, 68, 88, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.45;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Mural */
.mural-inner {
  max-height: none;
  overflow: visible;
  padding-bottom: 2rem;
}

.mural-status,
.mural-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mural-empty a {
  color: var(--gold-light);
}

.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.mural-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.mural-card:hover,
.mural-card:focus-within {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.mural-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}

.mural-card-img.placeholder {
  background: linear-gradient(135deg, var(--horde-dark), var(--bg));
  min-height: 120px;
}

.mural-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.mural-card-meta {
  font-size: 0.75rem;
  color: var(--horde-red-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.mural-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.mural-card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mural-card-author {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.mural-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 200;
}

.mural-modal[hidden] {
  display: none;
}

.mural-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.mural-modal-panel {
  position: relative;
  background: rgba(12, 8, 8, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  max-width: 900px;
  width: min(100%, 900px);
  max-height: min(100%, 90vh);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
}

.mural-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1.6rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.mural-modal-image-wrap {
  width: 100%;
  background: #000;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.mural-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 60vh;
  display: block;
}

.mural-modal-copy {
  padding: 1.3rem 1.4rem 1.6rem;
  overflow-y: auto;
}

.mural-modal-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-light);
}

.mural-modal-date {
  margin: 0 0 0.75rem;
  color: var(--horde-red-glow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.mural-modal-body {
  margin: 0 0 1rem;
  white-space: pre-line;
  color: var(--text-muted);
  line-height: 1.85;
}

.mural-modal-author {
  margin: 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Addon */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--gold-light);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.version {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Streams */
.streams-status,
.streams-empty,
.streams-error {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.streams-error {
  color: #e07a6a;
}

.streams-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.stream-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.stream-card:hover {
  border-color: var(--live);
  transform: translateY(-2px);
}

.stream-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.stream-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-live-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--horde-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.stream-viewers {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.stream-body {
  padding: 0.85rem 1rem;
}

.stream-channel {
  font-weight: 700;
  color: var(--live);
  margin: 0 0 0.25rem;
}

.stream-title {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.85rem 1rem;
    justify-content: center;
  }

  .header-left,
  .header-actions,
  .header-center {
    width: 100%;
    justify-content: center;
  }

  .header-center {
    order: 3;
    margin-top: 0.4rem;
  }

  .site-header::before {
    background-position: center top;
    background-size: 70px auto;
    opacity: 0.08;
  }

  .panel {
    padding: calc(var(--header-h) + 1rem) 1rem 1.8rem;
  }

  .mural-grid,
  .streams-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .panel h1,
  .panel h2 {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.7rem 0.9rem;
    gap: 0.75rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .spotify-player iframe {
    min-height: 64px;
  }

  .spotify-player-note {
    display: none;
  }

  .mural-card-body {
    padding: 0.95rem 1rem 1rem;
  }

  .panel {
    padding: calc(var(--header-h) + 1rem) 0.85rem 1.5rem;
  }

  .panel-inner,
  .panel-inner-wide {
    width: 100%;
  }

  .mural-card-title {
    font-size: 1.15rem;
  }

  .mural-card-text {
    -webkit-line-clamp: 5;
  }

  .stream-body {
    padding: 0.75rem 0.85rem;
  }

  .stream-title {
    font-size: 0.84rem;
  }
}
