/* Patch 0.10.25a16c – jednotný pravý emblémový panel hlavních sekcí */

.section-emblem {
  position: relative;
  z-index: 3;
  width: 216px;
  min-width: 216px;
  min-height: 216px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(236, 205, 142, .34);
  border-radius: 24px;
  color: var(--k-text, #f4e7c9);
  background:
    radial-gradient(circle at 50% 26%, rgba(214, 168, 79, .15), transparent 52%),
    linear-gradient(155deg, rgba(40, 30, 20, .76), rgba(8, 9, 10, .84));
  box-shadow:
    inset 0 0 0 7px rgba(0, 0, 0, .18),
    0 18px 38px rgba(0, 0, 0, .42);
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.section-emblem::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(236, 205, 142, .11);
  border-radius: 17px;
  pointer-events: none;
}

.section-emblem__icon {
  position: relative;
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 9px 13px rgba(0, 0, 0, .56));
}

.section-emblem strong,
.section-emblem small,
.section-emblem em {
  position: relative;
  display: block;
  max-width: 184px;
}

.section-emblem strong {
  margin-top: 3px;
  color: var(--k-gold-2, #f1c96d);
  font-size: .98rem;
  line-height: 1.25;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.section-emblem small {
  color: var(--k-muted, #a99d87);
  font-size: .78rem;
  line-height: 1.42;
}

.section-emblem em {
  color: var(--k-gold, #d6a84f);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-emblem--status .section-emblem__icon {
  width: 82px;
  height: 82px;
}

.section-emblem__state-icon {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(236, 205, 142, .28);
  border-radius: 50%;
  background: rgba(6, 7, 8, .82);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .45);
  font-size: 1rem;
}

.section-emblem--status[data-state='open'] {
  border-color: rgba(119, 184, 91, .45);
  background:
    radial-gradient(circle at 50% 26%, rgba(119, 184, 91, .15), transparent 52%),
    linear-gradient(155deg, rgba(25, 43, 23, .78), rgba(8, 9, 10, .86));
}

.section-emblem--status[data-state='open'] strong { color: #a9da86; }
.section-emblem--status[data-state='closed'] { border-color: rgba(143, 44, 37, .42); }
.section-emblem--status[data-state='closed'] strong { color: #e5a59f; }

/* Všechny hlavní sekční bannery používají stejný pravý sloupec. */
.chronicles-hero,
.profile-hero,
.bestiary-hero,
.world-hero,
.classes-hero,
.items-hero,
.achievements-hero,
.chronicle-hero,
.hall-hero,
.bosses-hero,
.quest-hero {
  grid-template-columns: minmax(0, 1fr) 216px;
}

.arena-hero {
  grid-template-columns: minmax(320px, 1.35fr) minmax(320px, .9fr) 216px;
}

@media (max-width: 1120px) {
  .section-emblem { display: none; }

  .chronicles-hero,
  .profile-hero,
  .bestiary-hero,
  .world-hero,
  .classes-hero,
  .items-hero,
  .achievements-hero,
  .chronicle-hero,
  .hall-hero,
  .bosses-hero,
  .quest-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .arena-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .arena-hero { grid-template-columns: minmax(0, 1fr); }
}
