.world-guide {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 4rem;
}

.world-guide-hero {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.world-guide-kicker,
.world-entry-modal-kicker {
  margin: 0;
  color: #eabf69;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.world-guide-hero h1 {
  margin: 0.25rem 0 0.75rem;
  color: #fff7e7;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(234, 191, 105, 0.18);
}

.world-guide-hero > p:last-child {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 247, 231, 0.76);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.world-guide-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(234, 191, 105, 0.24);
  border-radius: 1rem;
  background: rgba(19, 13, 18, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.world-guide-search label {
  display: block;
  margin: 0 0 0.45rem;
  color: rgba(255, 247, 231, 0.82);
  font-size: 0.83rem;
  font-weight: 700;
}

.world-guide-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(234, 191, 105, 0.26);
  border-radius: 0.75rem;
  background: rgba(5, 4, 6, 0.62);
}

.world-guide-search-box span {
  color: #eabf69;
  font-size: 1.35rem;
}

.world-guide-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff7e7;
}

.world-guide-search-box input::placeholder {
  color: rgba(255, 247, 231, 0.42);
}

.world-guide-search-box:focus-within {
  border-color: rgba(234, 191, 105, 0.78);
  box-shadow: 0 0 0 0.2rem rgba(234, 191, 105, 0.12);
}

.world-guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.world-guide-filters button,
.world-guide-empty button {
  border: 1px solid rgba(234, 191, 105, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 247, 231, 0.8);
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.world-guide-filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem 0.45rem 1rem;
}

.world-guide-filters button span {
  display: inline-grid;
  min-width: 1.7rem;
  min-height: 1.7rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.75rem;
}

.world-guide-filters button:hover,
.world-guide-filters button:focus-visible,
.world-guide-filters button.active,
.world-guide-empty button:hover,
.world-guide-empty button:focus-visible {
  border-color: #eabf69;
  background: #eabf69;
  color: #24170f;
  transform: translateY(-1px);
}

.world-guide-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.95rem 0;
  color: rgba(255, 247, 231, 0.56);
  font-size: 0.85rem;
}

.world-entry-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.world-entry-list > li[hidden] {
  display: none;
}

.world-entry-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(234, 191, 105, 0.2);
  border-radius: 0.9rem;
  background: linear-gradient(110deg, rgba(25, 17, 22, 0.92), rgba(13, 10, 13, 0.78));
  color: #fff7e7;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.world-entry-row:hover,
.world-entry-row:focus-visible {
  border-color: rgba(234, 191, 105, 0.72);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.world-entry-thumbnail {
  display: block;
  width: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(234, 191, 105, 0.28);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.28);
}

.world-entry-thumbnail img,
.world-entry-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-entry-summary {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.world-entry-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.world-entry-heading strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.world-entry-category,
.world-entry-detail-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.world-entry-category--bestiary {
  background: rgba(177, 83, 58, 0.18);
  color: #f4aa8f;
}

.world-entry-category--bloom {
  background: rgba(105, 151, 93, 0.19);
  color: #b9e1a5;
}

.world-entry-habitat {
  overflow: hidden;
  color: rgba(255, 247, 231, 0.67);
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-entry-habitat span {
  margin-right: 0.35rem;
  color: #eabf69;
  font-weight: 800;
  text-transform: uppercase;
}

.world-entry-habitat--pending,
.world-entry-detail-pending {
  color: rgba(255, 247, 231, 0.42);
  font-style: italic;
}

.world-entry-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 247, 231, 0.7);
  font-size: 0.93rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.world-entry-open {
  align-self: center;
  color: #eabf69;
  font-size: 0.83rem;
  font-weight: 800;
  white-space: nowrap;
}

.world-guide-empty {
  padding: 3rem 1rem;
  border: 1px dashed rgba(234, 191, 105, 0.3);
  border-radius: 1rem;
  color: rgba(255, 247, 231, 0.7);
  text-align: center;
}

.world-guide-empty button {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
}

.world-entry-modal .modal-dialog {
  width: min(1040px, calc(100% - 1rem));
  max-width: none;
}

.world-entry-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(234, 191, 105, 0.42);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(177, 83, 58, 0.09), transparent 22rem),
    #171015;
  color: #fff7e7;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58);
}

.world-entry-modal .modal-header {
  align-items: flex-start;
  padding: clamp(1rem, 2.5vw, 1.45rem) clamp(1rem, 3vw, 1.75rem);
  border-bottom-color: rgba(234, 191, 105, 0.18);
  background: rgba(8, 6, 8, 0.72);
}

.world-entry-modal-heading {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.world-entry-modal .modal-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1;
}

.world-entry-modal-category {
  margin: 0;
}

.world-entry-modal .btn-close {
  margin: 0;
  opacity: 0.72;
}

.world-entry-modal .btn-close:hover,
.world-entry-modal .btn-close:focus-visible {
  opacity: 1;
}

.world-entry-modal .modal-body {
  padding: 0;
}

.world-entry-detail {
  display: block;
}

.world-entry-detail-image {
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(234, 191, 105, 0.14);
  background:
    radial-gradient(circle at 50% 45%, rgba(234, 191, 105, 0.08), transparent 34rem),
    rgba(0, 0, 0, 0.24);
}

.world-entry-detail-image img {
  display: block;
  width: 100%;
  height: clamp(240px, 42vw, 480px);
  object-fit: contain;
  border: 1px solid rgba(234, 191, 105, 0.22);
  border-radius: 0.85rem;
  background: rgba(4, 3, 4, 0.46);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.26);
}

.world-entry-detail-content {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.world-entry-detail-content section {
  position: relative;
}

.world-entry-detail-content section + section {
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(234, 191, 105, 0.16);
}

.world-entry-detail-content h3 {
  margin: 0 0 0.65rem;
  color: #eabf69;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.world-entry-detail-content p,
.world-entry-detail-content li {
  color: rgba(255, 247, 231, 0.8);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.72;
}

.world-entry-detail-content p:last-child,
.world-entry-detail-content ul:last-child {
  margin-bottom: 0;
}

.world-entry-detail-content ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
}

.world-entry-detail-content li::marker {
  color: #eabf69;
}

@media (max-width: 850px) {
  .world-guide-controls {
    grid-template-columns: 1fr;
  }

  .world-entry-detail-image img {
    height: clamp(220px, 56vw, 400px);
  }
}

@media (max-width: 640px) {
  .world-guide {
    width: min(100% - 1rem, 1120px);
  }

  .world-guide-status {
    display: block;
  }

  .world-guide-status span {
    display: block;
  }

  .world-guide-status span + span {
    margin-top: 0.2rem;
  }

  .world-entry-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .world-entry-thumbnail {
    width: 78px;
  }

  .world-entry-open {
    display: none;
  }

  .world-entry-habitat {
    white-space: normal;
  }

  .world-entry-excerpt {
    -webkit-line-clamp: 3;
  }

  .world-entry-modal .modal-dialog {
    width: calc(100% - 0.5rem);
    margin: 0.25rem auto;
  }

  .world-entry-modal .modal-content {
    border-radius: 0.8rem;
  }

  .world-entry-modal .modal-header {
    padding: 0.95rem 1rem;
  }

  .world-entry-detail-image {
    padding: 0.6rem;
  }

  .world-entry-detail-image img {
    height: clamp(210px, 64vw, 320px);
    border-radius: 0.65rem;
  }

  .world-entry-detail-content {
    padding: 1.25rem 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-entry-row,
  .world-guide-filters button,
  .world-guide-empty button {
    transition: none;
  }
}
