@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary: #8B1E2D;
  --primary-rgb: 139, 30, 45;
  --primary-hover: #A62435;
  --accent: #B38A3D;
  --accent-rgb: 179, 138, 61;
  --accent-hover: #CFA34C;
  --bg: #151515;
  --surface: #2A161A;
  --surface-rgb: 42, 22, 26;
  --text: #E7DFC9;
  --text-muted: rgba(231, 223, 201, 0.68);
  --text-dark: #151515;
  
  /* Status Colors */
  --success: #3E8C61;
  --warning: #D08A28;
  --danger: #B22222;
  --neutral: #6A6A6A;
  
  /* Fonts */
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Borders & Shadows */
  --border-panel: 1px solid rgba(179, 138, 61, 0.24);
  --border-glow: 0 0 15px rgba(179, 138, 61, 0.15);
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.65);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Layout */
  --container-width: 1100px;
}

/* Base resets & scrollbar */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 8%, rgba(139, 30, 45, 0.18), transparent 35%), 
    radial-gradient(circle at 85% 90%, rgba(179, 138, 61, 0.08), transparent 35%),
    linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Film-grain / dust overlay for gaslamp atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

header, main, footer {
  position: relative;
  z-index: 2;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border: 2px solid #111;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

::selection {
  background: var(--primary);
  color: var(--text);
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.8; }
  75% { opacity: 0.9; }
  25% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 30, 45, 0.3); }
  50% { box-shadow: 0 0 25px rgba(139, 30, 45, 0.6); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Utility Layouts */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}

.title-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--text);
}

.title-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.text-gold {
  color: var(--accent);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 138, 61, 0.15);
  transition: padding 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(139, 30, 45, 0.5);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(179, 138, 61, 0.3);
}

.btn-nav {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(179, 138, 61, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 80px 0;
  overflow: hidden;
  text-align: center;
}

.hero-flicker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(139, 30, 45, 0.15), transparent 60%);
  pointer-events: none;
  animation: flicker 6s infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -80px 80px -20px var(--bg), inset 0 0 160px rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: heroRise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 30, 45, 0.2);
  border: 1px solid var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: #ff334b;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff334b;
}

.hero-desc {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin: 24px auto 40px auto;
  max-width: 600px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cursor-follow gilt highlight (driven by --x/--y from app.js) */
.btn-primary, .btn-secondary, .btn-action {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary::after, .btn-secondary::after, .btn-action::after {
  content: '';
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(207, 163, 76, 0.35), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after, .btn-secondary:hover::after, .btn-action:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--primary);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: pulseGlow 4s infinite;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 30, 45, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(179, 138, 61, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(179, 138, 61, 0.2);
}

/* Pillars Section */
.pillars {
  padding: 80px 0;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pillar-card {
  background: rgba(42, 22, 26, 0.4);
  border: var(--border-panel);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  background: rgba(42, 22, 26, 0.65);
  box-shadow: var(--shadow-panel);
  border-color: rgba(179, 138, 61, 0.45);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 25%, rgba(179, 138, 61, 0.25), rgba(42, 22, 26, 0.6));
  border: 1px solid rgba(179, 138, 61, 0.35);
  box-shadow: inset 0 1px 1px rgba(231, 223, 201, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: inset 0 1px 1px rgba(231, 223, 201, 0.18), 0 0 18px rgba(179, 138, 61, 0.35);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  color: var(--text);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Interactive Manor Widget Section */
.manor-preview-section {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 50%, rgba(42, 22, 26, 0.3), transparent 70%);
}

.section-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Manor Preview Layout */
.manor-widget {
  background: rgba(21, 21, 21, 0.9);
  border: var(--border-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .manor-widget {
    grid-template-columns: 1fr;
  }
}

/* Roster Selector Sidebar */
.roster-sidebar {
  background: rgba(15, 15, 15, 0.95);
  border-right: 1px solid rgba(179, 138, 61, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .roster-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(179, 138, 61, 0.15);
    flex-direction: row;
    overflow-x: auto;
    padding: 16px;
    gap: 12px;
  }
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .sidebar-title {
    display: none;
  }
}

.roster-btn {
  background: rgba(42, 22, 26, 0.3);
  border: 1px solid rgba(179, 138, 61, 0.12);
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  width: 100%;
}

.roster-btn:hover {
  background: rgba(42, 22, 26, 0.6);
  border-color: rgba(179, 138, 61, 0.3);
  color: var(--text);
}

.roster-btn.active {
  background: rgba(139, 30, 45, 0.18);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 10px rgba(179, 138, 61, 0.1);
}

.roster-btn-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: var(--surface);
}

.roster-btn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-btn-info {
  display: flex;
  flex-direction: column;
}

.roster-btn-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.roster-btn-role {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Control Panel Area */
.control-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 30px;
}

@media (max-width: 576px) {
  .control-panel {
    padding: 20px;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(231, 223, 201, 0.1);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .panel-header {
    flex-direction: column;
    gap: 12px;
  }
}

.char-identity {
  display: flex;
  gap: 20px;
  align-items: center;
}

.char-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(179, 138, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}


.char-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-meta h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.03em;
}

.char-meta p {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 4px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.char-status-badge {
  background: rgba(139, 30, 45, 0.15);
  border: 1px solid rgba(139, 30, 45, 0.4);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.char-status-badge span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Dashboard Columns */
.panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .panel-body {
    grid-template-columns: 1fr;
  }
}

/* Stats Layout */
.char-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.stat-name {
  color: var(--text-muted);
}

.stat-val {
  color: var(--text);
  font-weight: 600;
}

.stat-bar-bg {
  height: 8px;
  background: rgba(231, 223, 201, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(231, 223, 201, 0.05);
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fill-stamina { background: var(--primary); }
.fill-morale { background: var(--success); }
.fill-lust { background: #b02660; }
.fill-loyalty { background: var(--accent); }

/* Description / Bio */
.char-bio-panel {
  background: rgba(42, 22, 26, 0.3);
  border: 1px solid rgba(179, 138, 61, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.char-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.char-relationship {
  border-top: 1px solid rgba(231, 223, 201, 0.08);
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Action Center */
.panel-footer {
  border-top: 1px solid rgba(231, 223, 201, 0.1);
  padding-top: 24px;
}

.actions-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px 0;
}

.actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.btn-action {
  background: rgba(42, 22, 26, 0.65);
  border: 1px solid rgba(179, 138, 61, 0.25);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 30, 45, 0.35);
  transform: translateY(-1px);
}

.btn-action:active {
  transform: translateY(0);
}

/* Log Panel */
.manor-log-panel {
  grid-column: span 2;
  background: #0f0f0f;
  border: 1px solid rgba(231, 223, 201, 0.08);
  border-radius: var(--radius-md);
  margin-top: 24px;
  padding: 16px 20px;
  min-height: 70px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.log-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 20px;
}

.log-content {
  margin-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.log-content.updated {
  animation: pulseGlowText 0.3s ease;
}

@keyframes pulseGlowText {
  0% { color: var(--accent); transform: translateX(2px); }
  100% { color: var(--text-muted); transform: translateX(0); }
}

/* Scroll-reveal for sections */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-content { animation: none; }
}

/* Lore & Atmosphere Grid */
.lore-section {
  padding: 80px 0;
  border-top: 1px solid rgba(179, 138, 61, 0.12);
  border-bottom: 1px solid rgba(179, 138, 61, 0.12);
}

.lore-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .lore-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.lore-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
}

.collage-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  border: var(--border-panel);
  overflow: hidden;
  position: relative;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.collage-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(231, 223, 201, 0.04) 0 2px, transparent 2px 9px),
    radial-gradient(circle at 70% 20%, rgba(179, 138, 61, 0.18), transparent 55%);
  transition: opacity 0.4s ease;
}

.collage-img:hover::before {
  opacity: 0.85;
}

.collage-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(185deg, transparent 40%, rgba(21, 21, 21, 0.9) 100%);
  transition: opacity 0.3s ease;
}

.collage-img:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-panel);
}

.collage-img:nth-child(even) {
  margin-top: 24px;
}

@media (max-width: 992px) {
  .collage-img:nth-child(even) {
    margin-top: 0;
  }
}

.collage-img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.lore-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lore-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 10px 0;
  line-height: 1.5;
}

/* Call to Action Banner */
.cta-banner {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box {
  background: rgba(42, 22, 26, 0.45);
  border: var(--border-panel);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 780px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-panel);
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Style */
footer {
  background: #0b0b0b;
  border-top: 1px solid rgba(179, 138, 61, 0.15);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 14px 0;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(231, 223, 201, 0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-warning {
  font-size: 0.78rem;
  background: rgba(139, 30, 45, 0.12);
  border: 1px solid rgba(139, 30, 45, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
}
