
/* Basic reset/box-sizing 
 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*/
/* Body styling */
.body {
  font-family: 'Lora', serif;
  background: #2b2b2b; /* Dark background for contrast */
  color: #333;
  padding: 2rem;
}

/* Card grid container */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* Character Card Container */
.character-card {
  width: 19%; 
  background: url('img/parchment-texture.webp') center/cover no-repeat, #f7f2e9;
  border: 2px solid #5e4630;      /* Dark brown border */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* justify-content: flex-start; */
}

/* Header Banner */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3c2e1e; /* Dark brown bar */
  padding: 0.5rem 0.75rem;
}

.char-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
}

.coin-icon {
  width: 32px;
  height: 32px;

}

/* Portrait Section */
.portrait-wrapper {
  text-align: right;
  margin-top: 0.5rem;
}

.portrait {
  width: 50%;
  height: auto;
  
  float: right;
  
}

/* Stats Section */
.stats {
  padding: 1px;
  font-size: 0.8rem;
  color: #2c1f0f;
}

.stat-line {
    text-align: left;
}


/* Responsive tweak: stack cards in a column on smaller screens */
@media (max-width: 780px) {
  .card-grid {
    flex-direction: column;
    align-items: center;
  }
.character-card {width: 250px;}
  
}
