.blessings-group-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.blessing-card {
  --blessing-card-glow: rgba(123, 231, 255, 0.14);
  --blessing-card-border: rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--blessing-card-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% -18%, var(--blessing-card-glow), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--card);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.blessing-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 44%, rgba(255, 255, 255, 0.05) 50%, transparent 56%);
  background-repeat: no-repeat;
  background-size: 240% 100%;
  background-position: -160% 0;
  opacity: 0;
}

.blessing-card.rarity-rare {
  --blessing-card-glow: rgba(67, 203, 253, 0.14);
  --blessing-card-border: rgba(67, 203, 253, 0.36);
}

.blessing-card.rarity-epic {
  --blessing-card-glow: rgba(140, 104, 228, 0.16);
  --blessing-card-border: rgba(140, 104, 228, 0.38);
}

.blessing-card.rarity-legendary {
  --blessing-card-glow: rgba(248, 162, 25, 0.16);
  --blessing-card-border: rgba(248, 162, 25, 0.4);
}

.blessing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.12);
  z-index: 1002;
}

.blessing-card:focus-visible,
.blessing-card:focus-within {
  z-index: 1002;
}

.blessing-card:hover::after,
.blessing-card:focus-visible::after {
  opacity: .28;
  animation: blessingCardShine 1s ease-out;
}

.blessing-art {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: rgba(10, 12, 18, 0.55);
  border: 0;
  clip-path: polygon(50% 0%, 85% 15%, 85% 85%, 50% 100%, 15% 85%, 15% 15%);
  transform: scale(0.97);
  transform-origin: center;
  position: relative;
  z-index: 2;
}

.blessing-art-frame {
  width: 133px;
  height: 146px;
  padding: 1px;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 auto;
  clip-path: polygon(50% 0%, 85% 15%, 85% 85%, 50% 100%, 15% 85%, 15% 15%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.blessing-art-frame-lg {
  width: 160px;
  height: 176px;
  padding: 1px;
}

.blessing-art-lg {
  transform: scale(0.98);
}

.blessing-level-feed {
  display: grid;
  gap: 8px;
}

.blessing-detail-head {
  --blessing-glow-rgb: 123, 231, 255;
  --blessing-glow-soft-rgb: 140, 104, 228;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
}

.blessing-detail-head.rarity-rare,
.blessing-levels-wrap.rarity-rare {
  --blessing-glow-rgb: 67, 203, 253;
  --blessing-glow-soft-rgb: 84, 188, 255;
}

.blessing-detail-head.rarity-epic,
.blessing-levels-wrap.rarity-epic {
  --blessing-glow-rgb: 140, 104, 228;
  --blessing-glow-soft-rgb: 179, 126, 255;
}

.blessing-detail-head.rarity-legendary,
.blessing-levels-wrap.rarity-legendary {
  --blessing-glow-rgb: 248, 162, 25;
  --blessing-glow-soft-rgb: 255, 198, 92;
}

.blessing-detail-main-col {
  min-width: 0;
}

.blessing-detail-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.blessing-detail-meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blessing-star-row {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blessing-rate-star {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: transparent;
  -webkit-text-stroke: 0.8px #ff452b;
  text-stroke: 0.8px #ff452b;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.blessing-rate-star.is-active {
  color: #ff452b;
  -webkit-text-stroke: 0.8px #ff452b;
  text-stroke: 0.8px #ff452b;
}

.blessing-preview-col {
  min-width: 0;
}

.blessing-preview-card {
  border: 1px solid rgba(var(--blessing-glow-rgb), 0.38);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% -20%, rgba(var(--blessing-glow-soft-rgb), 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 10px;
  display: grid;
  gap: 10px;
  position: relative;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(var(--blessing-glow-rgb), 0.15);
}

.blessing-preview-block {
  display: grid;
  gap: 6px;
}

.blessing-preview-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.blessing-preview-stars-icon {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  background: transparent;
  position: absolute;
  bottom: 8px;
  right: 8px;
  margin: 0;
  z-index: 2;
}

.blessing-preview-star {
  color: transparent;
  -webkit-text-stroke: 0.8px #ff452b;
  text-stroke: 0.8px #ff452b;
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
}

.blessing-preview-star.is-active {
  color: #ff452b;
  -webkit-text-stroke: 0.8px #ff452b;
  text-stroke: 0.8px #ff452b;
}

.blessing-preview-star.is-pling {
  animation: blessingStarPling .24s ease-out;
}

@keyframes blessingStarPling {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 69, 43, 0));
  }
  45% {
    transform: scale(1.28);
    filter: drop-shadow(0 0 5px rgba(255, 69, 43, 0.55));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 69, 43, 0));
  }
}

.blessing-preview-effect {
  white-space: pre-wrap;
  line-height: 1.35;
  color: rgba(231, 236, 255, 0.95);
}

.blessing-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted);
}

.blessing-preview-stats strong {
  color: rgba(231, 236, 255, 0.95);
}

.blessing-level-item {
  border: 1px solid rgba(var(--blessing-glow-rgb), 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% -25%, rgba(var(--blessing-glow-rgb), 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 10px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(var(--blessing-glow-rgb), 0.12);
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.blessing-level-item:hover {
  border-color: rgba(var(--blessing-glow-rgb), 0.45);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(var(--blessing-glow-rgb), 0.2);
  transform: translateY(-1px);
}

.blessing-level-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.blessing-level-number {
  font-weight: 700;
  color: rgba(231, 236, 255, 0.92);
}

.blessing-level-star {
  color: #ff4b4b;
  font-size: 14px;
  line-height: 1;
  transform: translateY(1px);
}

.blessing-level-effect {
  white-space: pre-wrap;
  line-height: 1.35;
}

.blessing-level-stats {
  margin-top: 8px;
  padding-left: 28px;
  display: grid;
  gap: 3px;
}

.blessing-level-stat-line {
  color: var(--muted);
  line-height: 1.25;
}

.blessing-art-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.blessing-art-frame.rarity-legendary { background: var(--rarity-legendary); box-shadow: 0 0 0 1px rgba(248, 162, 25, 0.45) inset; }
.blessing-art-frame.rarity-epic { background: var(--rarity-epic); box-shadow: 0 0 0 1px rgba(140, 104, 228, 0.45) inset; }
.blessing-art-frame.rarity-rare { background: var(--rarity-rare); box-shadow: 0 0 0 1px rgba(67, 203, 253, 0.45) inset; }

.blessing-meta {
  min-width: 0;
  flex: 1;
}

.blessing-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blessing-title-row strong {
  line-height: 1.2;
}

.blessing-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.blessing-icon--plain {
  background: transparent;
}

.blessing-desc {
  margin-top: 10px;
  line-height: 1.4;
}

.blessing-card-title-fixed {
  width: 100%;
  min-height: 2.6em;
  max-height: 2.6em;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blessing-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: min(320px, 82vw);
  border-radius: 12px;
  border: 1px solid rgba(123, 231, 255, 0.42);
  background:
    radial-gradient(circle at 12% -10%, rgba(140, 104, 228, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(7, 11, 22, 0.98));
  box-shadow: none;
  padding: 11px 12px;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  backdrop-filter: blur(2px);
}

.blessing-card.is-tooltip-below .blessing-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}

@keyframes blessingCardShine {
  0% {
    background-position: -160% 0;
  }
  100% {
    background-position: 160% 0;
  }
}

.blessing-card:hover .blessing-tooltip,
.blessing-card:focus-visible .blessing-tooltip,
.blessing-card:focus-within .blessing-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.blessing-tooltip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.blessing-tooltip-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.blessing-tooltip-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffd166;
}

.blessing-tooltip-group {
  color: rgba(231, 236, 255, 0.65);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.blessing-tooltip-type {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(231, 236, 255, 0.65);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.blessing-tooltip-desc {
  margin-top: 8px;
  line-height: 1.45;
  font-size: 13px;
  color: rgba(231, 236, 255, 0.93);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1280px) {
  .blessings-group-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .blessing-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .blessing-preview-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .blessings-group-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .blessings-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blessings-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
