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

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:        #111010;
  --bg-deep:        #0a0808;
  --bg-card:        #0e0a0a;
  --bg-card-hover:  #130e0e;
  --border:         #2a1818;
  --border-accent:  #3a2020;
  --text-primary:   #e8d8c8;  /* was #d4c4b4 */
  --text-secondary: #d4c4b4;  /* was #b8a898 */
  --text-muted:     #9a8a7a;  /* was #6a5a4a */
  --text-dim:       #7a6a5a;  /* was #4a3a2a */
  --text-dimmer:    #6a5a4a;  /* was #3a2a1a */
  --accent:         #8b2020;
  --accent-dark:    #6b1a1a;
  --accent-border:  #8b2a2a;
  --live:           #50a060;
  --live-bg:        rgba(20, 60, 30, 0.2);
  --live-border:    #1a3020;
  --font-display:   'Cinzel Decorative', serif;
  --font-heading:   'Cinzel', serif;
  --font-body:      'IM Fell English', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── Damask Background ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/bg-damask.png');
  /*background-size: 200px 200px;*/
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Fallback SVG damask if PNG not present */
body.no-damask-img::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 5 C30 5 22 12 22 20 C22 28 28 33 28 40 C28 47 22 52 22 60 C22 68 30 75 40 75 C50 75 58 68 58 60 C58 52 52 47 52 40 C52 33 58 28 58 20 C58 12 50 5 40 5Z' fill='%23ffffff'/%3E%3Cpath d='M5 40 C5 30 12 22 20 22 C28 22 33 28 40 28 C47 28 52 22 60 22 C68 22 75 30 75 40 C75 50 68 58 60 58 C52 58 47 52 40 52 C33 52 28 58 20 58 C12 58 5 50 5 40Z' fill='%23ffffff' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.site-wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

/* ─── Nav ───────────────────────────────────────────────── */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 0.5px solid var(--border-accent);
  background: rgba(10, 8, 8, 0.97);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 1.3;
  text-decoration: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-brand span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 3px;
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-secondary); }

/* ─── Ornament Divider ──────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--border-accent);
  font-size: 16px;
  letter-spacing: 10px;
  padding: 8px 0;
}

/* ─── Live Bar ──────────────────────────────────────────── */
.live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
  background: var(--bg-deep);
  border-bottom: 0.5px solid var(--border);
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.live-bar-left { display: flex; align-items: center; gap: 12px; }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2s infinite;
}

.live-label { color: var(--live); letter-spacing: 2px; text-transform: uppercase; }
.live-game  { color: var(--text-dim); }
.live-viewers { color: var(--text-dimmer); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  border-bottom: 0.5px solid var(--border);
}

.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-right: 0.5px solid var(--border);
  background: rgba(8, 6, 6, 0.6);
}

.hero-logo-panel img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Drop the white bg if you export the logo as PNG with transparency */
  /* mix-blend-mode: screen; */
}

/* Placeholder shown when logo image is missing */
.hero-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 0.5px dashed var(--border-accent);
  border-radius: 2px;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content {
  padding: 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(6, 4, 4, 0.5);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0.5px solid var(--live-border);
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--live);
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  background: var(--live-bg);
  width: fit-content;
}

.status-pill.offline {
  color: var(--text-dim);
  border-color: var(--border);
  background: transparent;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill:not(.offline) .status-dot { animation: pulse 2s infinite; }

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-divider {
  width: 60px;
  height: 0.5px;
  background: var(--border-accent);
  margin: 16px 0;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.9;
  max-width: 380px;
  margin-bottom: 30px;
  font-style: italic;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  padding: 9px 22px;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-dark);
  color: #d4b4a4;
  border: 0.5px solid var(--accent-border);
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
}

.btn-ghost:hover { color: var(--text-secondary); border-color: var(--border-accent); }

.btn-discord {
  background: rgba(80, 30, 30, 0.4);
  color: #c4a090;
  border: 0.5px solid var(--border-accent);
  width: 100%;
  text-align: center;
}

.btn-discord:hover { background: rgba(100, 40, 40, 0.5); }

/* ─── Sections ──────────────────────────────────────────── */
.section {
  padding: 32px 40px;
  border-bottom: 0.5px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-rule { flex: 1; height: 0.5px; background: var(--border); }

/* ─── Game Cards ────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.game-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 2px;
  padding: 18px 12px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.game-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: #6b3030;
}

.game-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.game-note { font-size: 11px; color: var(--text-dim); font-style: italic; }

/* ─── Schedule ──────────────────────────────────────────── */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }

.schedule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--border-accent);
  border-radius: 2px;
  transition: background 0.2s;
}

.schedule-row:hover { background: var(--bg-card-hover); }

.sched-day {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--accent);
  width: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sched-time {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-dim);
  width: 90px;
  letter-spacing: 0.5px;
}

.sched-title { font-size: 13px; color: var(--text-secondary); flex: 1; font-style: italic; }

.sched-badge {
  font-size: 9px;
  color: var(--live);
  border: 0.5px solid var(--live-border);
  background: var(--live-bg);
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Two Column ────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.col-left {
  padding: 32px 40px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.col-right {
  padding: 32px 40px;
  border-bottom: 0.5px solid var(--border);
}

/* ─── Stat Cards ────────────────────────────────────────── */
.stat-row { display: flex; gap: 12px; margin-bottom: 20px; }

.stat-box {
  flex: 1;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 2px;
  padding: 14px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: #c4a090;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.about-text { font-size: 13px; color: var(--text-muted); line-height: 1.9; font-style: italic; }

/* ─── Discord Block ─────────────────────────────────────── */
.discord-block {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-top: 1px solid var(--border-accent);
  border-radius: 2px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discord-header { display: flex; align-items: center; gap: 12px; }

.discord-icon { font-size: 20px; color: #6b3030; }

.discord-title {
  font-size: 13px;
  color: #c4a090;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.discord-sub { font-size: 11px; color: var(--text-dim); font-style: italic; }

.discord-members { display: flex; gap: 24px; }

.member-stat { text-align: center; }

.member-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: #c4a090;
}

.member-lbl {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* ─── Footer ────────────────────────────────────────────── */
footer.site-footer {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--border);
  background: rgba(6, 4, 4, 0.8);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--border-accent);
  font-weight: 700;
}
.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.4;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 10px;
  color: var(--text-dimmer);
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

/* ─── Animations ────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero        { grid-template-columns: 1fr; }
  .hero-logo-panel { border-right: none; border-bottom: 0.5px solid var(--border); min-height: 240px; }
  .two-col     { grid-template-columns: 1fr; }
  .col-left    { border-right: none; }
  nav.site-nav { padding: 14px 20px; }
  .nav-links   { gap: 16px; }
  .section     { padding: 24px 20px; }
  .col-left, .col-right { padding: 24px 20px; }
  .live-bar    { padding: 8px 20px; }
  footer.site-footer { padding: 16px 20px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links   { display: none; }
  .games-grid  { grid-template-columns: repeat(2, 1fr); }
  .stat-row    { flex-direction: column; }
  .hero-content { padding: 28px 20px; }
}
