/* ========================================
   Enchantments
======================================== */

.sts2-grid-enchantments {
  display: block;
  column-count: 2;
  column-gap: 1.3em;
}

.enchantment-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1em;
  min-height: 6em;
  padding: 1.25em;
  break-inside: avoid;
  margin-bottom: 1.3em;
}

.enchantment-icon {
  position: relative;
  flex-shrink: 0;
  width: 4em;
  height: 4em;
  min-width: 4em;
  min-height: 4em;
}

.enchantment-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.15em 0.4em rgba(0, 0, 0, 0.75));
  transition: filter var(--sts2-duration-base) ease;
}

.enchantment-card:hover .enchantment-icon img {
  filter: drop-shadow(0 0.2em 0.6em rgba(0, 0, 0, 0.9)) brightness(1.1);
}

.enchantment-dev-id {
  position: absolute;
  bottom: -0.1em;
  right: 0;
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.enchantment-content {
  flex: 1;
  min-width: 0;
}

.enchantment-header h2 {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: var(--sts2-text-primary, #f0f0f0);
  line-height: 1.3;
}

.enchantment-body p {
  font-size: 0.9em;
  line-height: 1.55;
  color: var(--sts2-text-secondary, rgba(255, 255, 255, 0.8));
  margin: 0;
}

.enchantment-extra-text {
  font-size: 0.8em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.5em 0 0 !important;
  padding-top: 0.4em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ゲームテキストのマークアップ */
.keyword-gold {
  color: #ffd700;
  font-weight: 600;
}

.keyword-blue {
  color: #7cb8ff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sts2-grid-enchantments {
    column-count: 1;
  }
}
