/* Reset some defaults */
body, h1, h2, h3, h4, p, nav, footer, section, main, div {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: #1a001f;
  color: gold;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Default link style for body content only */
main a {
  color: #ffdd66;
  text-decoration: underline;
  font-weight: bold;
}

/* Preserve neutral nav links */
a {
  color: gold;
  text-decoration: none;
}

a:hover {
  color: #ffdd66;
}

/* =======================
   NAVBAR + FOOTER STYLES
   ======================= */
header.main-header, .navbar {
  background-color: #2c003e;
  color: gold;
  padding: 0.75rem 1.5rem;
  position: relative;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
}

.nav-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.header-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.header-title h1 {
  font-size: 2rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.auth-section {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  text-align: center;
}

.user-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-icon {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  border: 3px solid gold;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.user-name {
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #2c003e;
  border: 1px solid #444;
  border-radius: 5px;
  flex-direction: column;
  padding: 10px;
  z-index: 10;
  min-width: 120px;
}

.user-dropdown.show {
  display: flex !important;
}

.user-dropdown a,
.user-dropdown button {
  color: gold;
  background-color: transparent;
  border: none;
  padding: 0.5rem;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  color: #2c003e;
  background-color: #ffdd66;
  border-radius: 4px;
}

/* Footer */
.footer-nav {
  background-color: #2c003e;
  color: gold;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  margin: 0 0.5rem;
}

.footer-separator {
  margin: 0 0.5rem;
}

.footer-copy {
  font-size: 0.9rem;
}

/* =======================
   PAGE & LAYOUT UTILITIES
   ======================= */
.hidden {
  display: none !important;
}

main {
  flex: 1;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.centered {
  text-align: center;
}

.centered-text {
  text-align: center;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.section {
  margin-bottom: 3rem;
}

/* =======================
   HOMEPAGE CARD STYLES
   ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #2c003e;
  color: gold;
  border-radius: 12px;
  padding: 2rem;
  width: 360px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.35);
}

.card h4 {
  font-size: 1.6rem;
  color: #ffdd66;
  text-align: center;
  margin: 0;
  position: relative;
  height: 4.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
}

.card h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  border-bottom: 2px solid #ffdd66;
}

.card p {
  font-size: 1.05rem;
  line-height: 1.4;
}

/* =======================
   TWITCH EMBED
   ======================= */
.twitch-embed {
  text-align: center;
  margin-top: 3rem;
}

.twitch-embed iframe {
  max-width: 100%;
  border-radius: 12px;
}

/* =======================
   GAMES PAGE STYLES
   ======================= */
.games-page {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: gold;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.game-card {
  background-color: #2c003e;
  color: gold;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.game-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffdd66;
  text-align: center;
}

.game-card p {
  margin: 0.25rem 0;
}

.game-card-info {
  text-align: left;
  margin-top: 1rem;
}

.button-container {
  text-align: center;
  margin-top: 1.5rem;
}

.apply-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #44005e;
  color: gold;
  border: 2px solid gold;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply-btn:hover {
  background-color: #550080;
  transform: translateY(-2px);
}

.loading-card {
  width: 100%;
  height: 250px;
  background-color: #2c003e;
  border-radius: 1rem;
  animation: pulse 1.6s infinite ease-in-out;
  opacity: 0.5;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 0.2; }
  100% { opacity: 0.5; }
}

.error-message {
  text-align: center;
  color: #ff6666;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.list-title {
  color: crimson;
  font-weight: bold;
}

.crimson {
  color: crimson;
  font-weight: bold;
  display: block;
  margin-top: 1.2rem;
}

/* =======================
   MOBILE NAVBAR FIXES
   ======================= */
@media (max-width: 600px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-section {
    position: static;
    order: -1;
    width: 100%;
    text-align: right;
    margin-bottom: 0.75rem;
    padding-right: 1rem;
  }

  .header-title h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .user-wrapper {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
  }

  .user-icon {
    width: 48px;
    height: 48px;
  }

  .user-name {
    font-size: 0.75rem;
  }
}

details {
  margin: 1rem 0;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #1e1e1e;
  padding: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

summary {
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  background-color: #2a2a2a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  list-style: none;
  color: #eee;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details > div {
  padding: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #333;
  color: #ddd;
}

/* Campfire Cooking Dropdown Button Styles */
details {
  margin-top: 1.5rem;
  border: 2px solid gold;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #2e003e; /* Deep Royal Purple */
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.5); /* Crimson glow */
}

summary {
  background-color: #2e003e;
  color: gold;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid gold;
}

summary:hover, summary:focus {
  outline: none;
  background-color: #4b005c; /* Lighter Royal Purple */
  text-shadow: 0 0 5px crimson;
}

details[open] summary {
  border-bottom: none;
}

details > div {
  background-color: #1a001f; /* Dark background for content */
  padding: 1rem 1.5rem;
  color: #f0e6ff; /* Light lavender text for contrast */
}

details p, details h3, details h4, details ul, details ol, details table {
  margin-bottom: 1rem;
}

details h3, details h4 {
  color: gold;
}

/* --- Profile Avatar Overlay --- */
#avatarContainer {
  position: relative;
  display: inline-block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border: 3px solid gold;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

#profileAvatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#avatarOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: gold;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: bold;
  font-size: 1.1rem;
  pointer-events: none;
}

#avatarContainer:hover #avatarOverlay {
  opacity: 1;
  pointer-events: auto;
}

/* --- Crop Modal Styling --- */
#cropperModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 0, 20, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}



.crop-actions {
  display: flex;
  gap: 16px;
}

.crop-actions button {
  padding: 10px 16px;
  font-size: 1rem;
  background-color: purple;
  color: gold;
  border: 2px solid gold;
  border-radius: 8px;
  cursor: pointer;
}

/* Fix avatar hover overlay alignment */
#avatarContainer {
  position: relative;
  display: inline-block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid gold;
  overflow: hidden;
  cursor: pointer;
}

#profileAvatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Translucent dark overlay with proper alignment */
#avatarOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: gold;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#avatarContainer:hover #avatarOverlay {
  opacity: 1;
  pointer-events: auto;
}

/* Cropper modal display */
#cropperModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 0, 20, 0.85); /* dark translucent background */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Cropper.js image area */


/* Button group under cropper */
.crop-actions {
  display: flex;
  gap: 1rem;
}

.cropper-controls {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.cropper-controls button {
  background-color: #800080;
  border: 2px solid gold;
  color: gold;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.cropper-controls button:hover {
  background-color: #660066;
}

.cropper-view-box,
.cropper-face {
  border-radius: 50% !important;
}

.user-icon {
  position: relative;
  cursor: pointer;
}

.user-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid gold;
}

.user-icon .dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 0;
  background: #1a001a;
  padding: 10px;
  border: 2px solid gold;
  z-index: 1000;
}

.user-icon:hover .dropdown-menu {
  display: block;
}


/* === Account Page Additions === */

/* Modal for Add Character */
#characterModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#characterModal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  background-color: #2c003e; /* Royal theme solid background */
  color: gold;
  border: 2px solid gold;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); /* subtle gold glow */
}
.modal-content h2 {
  color: crimson;
  margin-bottom: 1rem;
}
.modal-content label {
  display: block;
  margin-bottom: 1rem;
  color: #ffdd66;
}
.modal-content input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #cc99ff;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: crimson;
  cursor: pointer;
}

/* Royal Button Theme */
.btn-royal {
  background: #800080;
  color: gold;
  padding: 0.6rem 1.2rem;
  border: 2px solid gold;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-royal:hover {
  background: #660066;
}

/* Characters Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.character-card {
  background-color: #240024;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #550055;
  text-align: center;
  color: #ffddcc;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.character-avatar {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 2px solid #cc00cc;
  margin-bottom: 0.5rem;
}

.modal-content-box {
  background-color: #1a001f;
  padding: 2rem;
  border-radius: 12px;
  color: gold;
  box-shadow: 0 0 20px #800080;
  text-align: center;
}

.modal-panel {
  background: #1a001f;
  border: 3px solid gold;
  padding: 2rem;
  border-radius: 10px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 25px #800080;
}

/* ======================= */
/* MODAL + CROPPER STYLING */
/* ======================= */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* solid dark overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Modal Content */
.modal-content-wrapper {
  background-color: #1a001f;
  border: 2px solid gold;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 25px #800080;
  color: gold;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Cropper Box Handling */
.cropper-container,

/* Profile Container Hover Edit Button */
.profile-container {
  position: relative;
  display: inline-block;
}
.edit-icon {
  position: absolute;
  top: 0;
  right: 0;
  background: gold;
  color: #1a001f;
  border-radius: 50%;
  padding: 5px;
  display: none;
  cursor: pointer;
  z-index: 10001;
}
.profile-container:hover .edit-icon {
  display: block;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal.show {
  display: flex;
}

#characterModal {
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9000;
}  

#cropperModal {
  background-color: rgba(10, 0, 20, 0.85);
  z-index: 9999;
}

#characterCropperModal {
  background-color: rgba(10, 0, 20, 0.85);
  z-index: 9999;
}

/* Modal Content Container */
.modal-content-wrapper {
  position: relative;
  background: #1a001f;
  border: 2px solid gold;
  border-radius: 12px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  color: gold;
  box-shadow: 0 0 25px #800080;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Cropper Box Container */
.cropper-box {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 90vw;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cropper-box img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

/* Cropper Buttons */
.crop-buttons {
  margin-top: 10px;
  display: flex;
  gap: 1rem;
}

.crop-buttons button {
  padding: 10px 16px;
  background: #800080;
  color: gold;
  border: 2px solid gold;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.crop-buttons button:hover {
  background: #660066;
}

.add-character-box {
  background: #2c003e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  position: relative;
  z-index: auto;
}

.characters-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}

.character-card {
  flex: 0 0 auto;
  width: 220px;
  background: #240024;
  border: 2px solid #550055;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  color: gold;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.character-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.character-info {
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.5rem;
  column-gap: 0.5rem;
  font-size: 0.9rem;
}

.add-character-card {
  flex: 0 0 auto;
  width: 220px;
  height: 320px;
  background: #44005e;
  border: 2px dashed gold;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: gold;
  font-weight: bold;
  cursor: pointer;
}

.add-character-card:hover {
  background: #550080;
}

.contactus-section {
  background-color: #44005e; /* Royal Purple */
  color: #FFD700; /* Gold text */
  padding: 60px 20px;
  text-align: center;
}

.contactus-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contactus-section p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-embed-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #2b0030; /* deep plum or black purple */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* ------------------------------
   Star Wars Style Crawl + Starfield
------------------------------ */

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Behind the crawl */
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.theater {
  position: relative;
  width: 100%;
  height: 100vh;
  perspective: 400px;
  overflow: hidden;
  background: black; /* ✅ Guarantees black field behind the stars */
}

.scroll {
  position: absolute;
  bottom: -100px;
  width: 100%;
  transform-origin: 50% 100%;
  animation: crawl 180s linear infinite;
  z-index: 1;
}

.scroll2 {
  position: absolute;
  bottom: -100px;
  width: 100%;
  transform-origin: 50% 100%;
  animation: crawl 180s linear infinite;
  animation-delay: 90s;
  animation-fill-mode: backwards;
  z-index: 1;
  opacity: 0;
}

.crawl {
  font-family: Arial, sans-serif;
  color: #ffe81f;
  text-align: center;
  font-weight: bold;
  width: 80%;
  margin: 0 auto;
  font-size: 250%;
  text-shadow: 2px 2px 4px #000;
}

.crawl p, .crawl h1 {
  margin: 20px 0;
}

@keyframes crawl {
  0% {
    transform: rotateX(45deg) translateZ(150px) translateY(100%);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: rotateX(45deg) translateZ(-350px) translateY(-150%);
    opacity: 0;
  }
}

#audio-toggle {
  display: block;
  margin: 2rem auto 4rem auto; /* centered with spacing below crawl */
  font-size: 1.3rem;            /* slightly larger text */
  text-align: center;
}

.centered {
  text-align: center;
  margin-top: 4rem; /* extra top margin for more gap */
}

.character-card {
  background: #1a1a1a;
  border: 2px solid crimson;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 16px;
  margin: 12px;
  width: 220px;
  height: 320px;
  color: white;
}

.character-card img {
  width: 100%;
  border-radius: 0;
  border: 2px solid gold;
  height: auto;
  max-height: 120px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.character-card .character-info {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: gold;
  overflow-y: auto;
  font-size: 14px;
}

#characterList {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.character-card div {
  color: #ffd700; /* gold text */
}

.character-card h3 {
  color: gold;
  margin: 0;
}

.character-card:hover {
  box-shadow: 0 0 10px gold;
  transform: translateY(-3px);
  transition: all 0.2s ease-in-out;
}

.character-card .info-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.character-card .info-line span:first-child {
  width: fit-content;
  flex-shrink: 0;
}

.character-card .info-line span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; 
  text-align: right;
  word-break: break-word;
  min-width: 0;
}

.character-card .info-line span {
  color: gold;
  font-size: 12px;
}

.character-card .character-level {
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: solid gold;
  margin-bottom: 8px;
}

.character-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: #240024; /* match card bg or tweak if needed */
  border-bottom: 1px solid crimson;
}

.character-header .btn-royal {
  font-size: 10px;
  padding: 2px 6px;
  margin: 0;
  line-height: 1;
}

.character-level {
  font-weight: bold;
  font-size: 13px;
  color: gold;
}
