@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&family=Special+Elite&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0a0805;
  --ink2: #120f0a;
  --parchment: #c9a96e;
  --parchment-light: #e8d5b0;
  --rust: #8b3a2a;
  --rust-dark: #5c2418;
  --teal-dark: #0f2525;
  --teal: #1a3a3a;
  --gold: #d4a843;
  --gold-bright: #f0c860;
  --fog: rgba(10, 8, 5, 0.92);
  --border: rgba(201, 169, 110, 0.3);
  --border-active: rgba(212, 168, 67, 0.7);
  --flag-size: 150px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--parchment-light);
  font-family: "IM Fell English", serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--rust);
  border-radius: 3px;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  z-index: 1;
}

#hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/world_2.png");
  background-size: cover;
  background-position: center center;
  opacity: 0.18;
  filter: sepia(0.5) contrast(1.2);
  z-index: 0;
}

#hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero-ornament {
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto;
  animation: fadeUp 1.5s ease-out 0.8s forwards;
  opacity: 0;
}

#hero-logo {
  width: 50%;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4));
  animation: fadeUp 1.5s ease-out 0.8s forwards;
  opacity: 0;
}

#hero-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  display: flex;
  max-width: 350px;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4));
  animation: fadeUp 1.5s ease-out 0.8s forwards;
  opacity: 0;
  font-weight: bold;
}

#hero-subtitle {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(201, 169, 110, 0.7);
  max-width: 400px;
  animation: fadeUp 1.5s ease-out 0.8s forwards;
  opacity: 0;
}

#hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1.5s ease-out 1.2s forwards;
  opacity: 0;
}
#hero-buttons .nav-link {
  padding: 0.6rem 1.4rem 0.4rem;
  font-size: 0.78rem;
  flex-direction: column;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(201, 169, 110, 0.4);
  font-family: "Special Elite", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(201, 169, 110, 0.4);
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  transform: rotate(45deg);
}

/* ===== NAV ===== */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 5, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-weight: bold;
  z-index: 10;
  transition: all 0.3s ease;
}
.nav-logo:hover {
  color: var(--parchment-light);
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4));
}

.nav-arcanadomine {
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin-top: -4px;
  width: 150px;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 7px 10px 10px;
}
.nav-arcanadomine:hover {
  background: rgba(212, 168, 67, 0.25);
  border-radius: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  color: var(--parchment);
  text-decoration: none;
  font-family: "Special Elite", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  background: transparent;
  cursor: pointer;
  min-width: 150px;
  justify-content: center;
}
.nav-link-bold {
  color: var(--parchment-light);
  background-color: var(--border);
}

.nav-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.07);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.2);
}

.nav-link i {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.nav-link.social-fb {
  border-color: rgba(24, 119, 242, 0.4);
}
.nav-link.social-ig {
  border-color: rgba(225, 48, 108, 0.4);
}
.nav-link.social-wa {
  border-color: rgba(37, 211, 102, 0.4);
}
.nav-link.social-fb:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.07);
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.2);
}
.nav-link.social-ig:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.07);
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.2);
}
.nav-link.social-wa:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.07);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.2);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.section-eyebrow {
  font-family: "Special Elite", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
}
.section-subtitle {
  font-family: "IM Fell English", serif;
  font-style: italic;
  color: rgba(201, 169, 110, 0.55);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0rem auto;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}
.divider-symbol {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.7;
}

.section {
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 1;
}

/* ===== ABOUT GRID ===== */
.about-card {
  position: relative;
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  gap: 1rem;
}

.about-card img {
  width: 350px;
  object-fit: cover;
  object-position: center left;
  display: block;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
  filter: sepia(0.2) contrast(1.05);
}
.about-description {
  font-size: 0.8rem;
  color: rgba(232, 213, 176, 0.8);
}

/* ===== KINGDOMS GRID ===== */
.links-card {
  position: relative;
  display: flex;
  max-width: 900px;
  margin: 0 auto 1rem auto;
  text-align: left;
  gap: 1rem;
  justify-content: center;
  flex-direction: row;
}
.links-card .nav-link {
  padding: 0.6rem 1.4rem 0.4rem;
}
.links-card .util {
  min-width: 190px;
}
.links-card .social {
  min-width: auto;
  padding: 0.6rem 0.88rem 0.4rem;
  gap: 0.2rem;
}

/* ===== KINGDOMS GRID ===== */
.kingdoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== KINGDOM CARD ===== */
.kingdom-card {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--teal-dark) 0%,
    rgba(15, 25, 25, 0.95) 100%
  );
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  outline: none;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.kingdom-card:hover,
.kingdom-card:focus-visible,
.kingdom-card.active {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(212, 168, 67, 0.12),
    inset 0 0 60px rgba(212, 168, 67, 0.04);
}

.kingdom-card.active {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.4),
    0 12px 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(212, 168, 67, 0.15),
    inset 0 0 80px rgba(212, 168, 67, 0.06);
}

.card-flag-wrap {
  position: relative;
  min-height: var(--flag-size);
  max-height: var(--flag-size);
  height: var(--flag-size);
  min-width: var(--flag-size);
  max-width: var(--flag-size);
  width: var(--flag-size);
  overflow: hidden;
  background: var(--ink);
}

.card-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
  filter: sepia(0.2) contrast(1.05);
}

.kingdom-card:hover .card-flag,
.kingdom-card.active .card-flag {
  transform: scale(1.05);
  filter: sepia(0) contrast(1.1) brightness(1.05);
}

.card-body {
  flex: 1;
  padding: 0 1rem;
  overflow: hidden;
}

.card-kingdom-name {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--parchment-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
  overflow: hidden;
}

.kingdom-card:hover .card-kingdom-name,
.kingdom-card.active .card-kingdom-name {
  color: var(--gold);
}

.card-motto {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(201, 169, 110, 0.65);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Special Elite", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  transition: all 0.3s ease;
}

.kingdom-card:hover .card-cta,
.kingdom-card.active .card-cta {
  color: var(--gold);
  gap: 0.75rem;
}

.cta-arrow {
  transition: transform 0.3s ease;
}
.kingdom-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* ===== KINGDOM PANEL (slide-in) ===== */
#kingdom-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: linear-gradient(160deg, #0c1a1a 0%, #0a0d0d 100%);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.8);
}

#kingdom-panel.open {
  transform: translateX(0);
}

#panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.75);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
}

#panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--parchment);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  z-index: 10;
  font-family: "Cinzel", serif;
  background: rgba(10, 13, 13, 0.6);
}
.panel-close:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(139, 58, 42, 0.1);
}

.panel-flag-header {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.panel-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.1);
}

.panel-flag-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 26, 26, 0.3) 0%,
    transparent 40%,
    rgba(10, 13, 13, 0.95) 100%
  );
}

.panel-title-block {
  position: absolute;
  bottom: 1.25rem;
  left: 1.75rem;
  right: 4rem;
}

.panel-kingdom-name {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(212, 168, 67, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.panel-motto {
  font-family: "IM Fell English", serif;
  font-style: italic;
  color: rgba(201, 169, 110, 0.7);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.panel-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.info-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.1);
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-family: "Special Elite", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(201, 169, 110, 0.4);
  line-height: 0.5rem;
  padding-top: 3px;
}

.info-value {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  color: var(--parchment);
  line-height: 1.3;
}

.panel-description {
  font-family: "IM Fell English", serif;
  font-size: 0.85rem;
  color: rgba(232, 213, 176, 0.8);
}

/* Characters section */
.panel-chars-title {
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment);
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.char-card {
  cursor: pointer;
  position: relative;
  background: var(--ink2);
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}

.char-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(212, 168, 67, 0.1);
}

.char-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.char-info {
  padding: 0.5rem 0.6rem 0.6rem;
  background: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.95) 0%,
    transparent 100%
  );
}

.char-name {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  color: var(--parchment);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.char-role {
  font-family: "Special Elite", monospace;
  font-size: 0.63rem;
  color: rgba(201, 169, 110, 0.45);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ===== CHARACTER MODAL ===== */
#char-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#char-modal.open {
  opacity: 1;
  pointer-events: all;
}

#char-modal-bg {
  position: absolute;
  inset: 0;
  background: var(--fog);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  background: linear-gradient(145deg, #0f1f1f 0%, #0a0d0d 100%);
  border: 1px solid var(--border-active);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.15),
    0 30px 100px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(212, 168, 67, 0.08);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

#char-modal.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  color: var(--parchment);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  z-index: 10;
  background: rgba(10, 13, 13, 0.6);
}
.modal-close:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.modal-portrait-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: sepia(0.15) contrast(1.05);
}
.modal-avatar {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: sepia(0.15) contrast(1.05);
  background: linear-gradient(145deg, #0f1f1f 0%, #0a0d0d 100%);
  border: 1px solid var(--border-active);
}

.modal-portrait-gradient {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 13, 13, 0.8);
}

.modal-header {
  position: relative;
  padding: 0 1.75rem 1.25rem;
  margin-top: -5.75rem;
  z-index: 2;
  display: flex;
  align-items: stretch;
  flex-direction: row;
  gap: 1rem;
}

.modal-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.modal-char-name {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  margin-top: 1.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.modal-char-role {
  font-family: "Special Elite", monospace;
  font-size: 0.75rem;
  color: rgba(201, 169, 110, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-char-year {
  font-family: "Special Elite", monospace;
  font-size: 0.6rem;
  color: rgba(201, 169, 110, 0.6);
  letter-spacing: 0.15em;
}

.modal-badge-spec {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  font-family: "Special Elite", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(201, 169, 110, 0.55);
  background: rgba(10, 13, 13, 0.6);
  align-self: flex-start;
}

.modal-body {
  padding: 0 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-section-label {
  font-family: "Special Elite", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.35);
  margin-bottom: 0.4rem;
}

.modal-description {
  font-family: "IM Fell English", serif;
  font-size: 0.92rem;
  color: rgba(232, 213, 176, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-quote {
  border-left: 2px solid var(--rust);
  padding: 0.5rem 1rem;
  background: rgba(139, 58, 42, 0.07);
  font-size: 0.8rem;
}

.modal-quote p {
  font-family: "IM Fell English", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(201, 169, 110, 0.75);
  line-height: 1.7;
}

.modal-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: "Special Elite", monospace;
  font-size: 0.65rem;
  color: rgba(201, 169, 110, 0.35);
  letter-spacing: 0.15em;
  font-style: normal;
}

.add-character {
  display: flex;
  align-items: center;
  border: 1px dashed var(--border);
  min-height: 200px;
}
.add-content {
  text-align: center;
  opacity: 0.8;
  margin: 0 1rem;
}
.add-content i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.add-content p {
  font-size: 0.6rem;
}

/* ===== FOOTER ===== */

footer {
  display: flex;
  position: relative;
  z-index: 1;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}
footer a {
  font-family: "Special Elite", monospace;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 2;
  color: rgba(201, 169, 110, 0.65);
}
footer a:hover {
  text-decoration: underline;
  color: var(--parchment);
  text-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #main-nav {
    padding: 0.6rem 1rem;
  }
  .nav-link {
    padding: 0.4rem;
  }
  #kingdoms {
    padding: 0 1rem 3rem;
  }
  .kingdoms-grid {
    grid-template-columns: 1fr;
  }
  #kingdom-panel {
    width: 100vw;
  }
  .chars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  #char-modal {
    padding: 0.5rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    flex-direction: column;
    margin: 0 1rem;
  }
  .about-card img {
    width: 100%;
    height: 180px;
    margin: 0 auto;
    object-position: bottom;
  }
  .links-card {
    flex-direction: column;
  }
  .links-card.social {
    flex-direction: row !important;
  }
  .links-card.social .social {
    flex: 1;
  }
  .links-card.social .social span {
    display: none;
  }
  .nav-arcanadomine {
    width: 120px;
  }
  .info-cell {
    flex-direction: row;
    align-items: center;
  }
  .add-character {
    min-height: 10rem;
  }
  footer {
    flex-direction: column;
  }
  footer p {
    font-size: 0.5rem;
  }
}
