.home-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1300px 680px at 10% -20%, rgba(92, 150, 214, 0.22), transparent 62%),
    radial-gradient(1200px 700px at 100% -15%, rgba(98, 176, 156, 0.2), transparent 60%),
    #f2f5f8;
  color: #1f2733;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.home-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px 8px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.home-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-brand-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  display: grid;
  justify-items: center;
  padding: 0 10px;
}

.home-brand-title {
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #17202d;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-brand-slogan {
  font-size: 12px;
  color: #5a6a80;
  letter-spacing: 0.02em;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-auth-btn {
  border: none;
  background: transparent;
  color: #20314b;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
}

.home-auth-btn:hover {
  text-decoration: underline;
}

.home-search-row {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 20px 10px;
  display: grid;
  grid-template-columns: 300px max-content;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
}

.home-search-wrap {
  position: relative;
  width: 300px;
  min-width: 0;
}

.home-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(26, 45, 73, 0.2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2733;
  outline: none;
}

.home-search-input:focus {
  border-color: #5f8fc7;
  box-shadow: 0 0 0 3px rgba(95, 143, 199, 0.18);
}

.home-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  border: 1px solid rgba(26, 45, 73, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 28px rgba(20, 39, 64, 0.13);
  overflow: hidden;
}

.home-search-suggestion-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(26, 45, 73, 0.1);
  background: transparent;
  color: #23324a;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-search-suggestion-item:last-child {
  border-bottom: none;
}

.home-search-suggestion-item:hover {
  background: rgba(95, 143, 199, 0.14);
}

.home-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #526176;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-sort-label {
  font-size: inherit;
  font-weight: inherit;
  color: #526176;
}

.home-sort-toggle {
  border: none;
  background: transparent;
  color: #7a889d;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 4px 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.home-sort-toggle:hover {
  color: #203a61;
}

.home-sort-toggle.active {
  color: #203a61;
  font-weight: 700;
}

.home-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4px 20px 36px;
  display: block;
  width: 100%;
  flex: 1 1 auto;
}

#model-container.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  justify-content: stretch;
}

.world-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 37, 62, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 39, 64, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.world-thumb-wrap {
  position: relative;
  background: linear-gradient(160deg, #ced8e6, #dbe3ec);
}

.world-thumb-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.world-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.world-enter-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 28, 44, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.world-thumb-link:hover .world-enter-overlay,
.world-thumb-link:focus-visible .world-enter-overlay {
  opacity: 1;
}

.world-enter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.9);
  color: #22344e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
}

.world-thumb-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74849a;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.world-content {
  padding: 12px 12px 13px;
  display: grid;
  gap: 8px;
}

.world-no {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0f5ff;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(18, 30, 46, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(5px);
}

.world-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  color: #1a2537;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.world-author {
  margin: 0;
  font-size: 13px;
  color: #36455a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-about {
  display: grid;
  gap: 5px;
}

.world-about-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
}

.world-about-key {
  color: #607089;
  white-space: nowrap;
}

.world-about-value {
  color: #2a394f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(30, 47, 72, 0.3);
  border-radius: 14px;
  color: #5f6f85;
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  text-align: center;
}

.home-page #sentinel {
  width: 100%;
  height: 1px;
  position: static;
  bottom: auto;
  visibility: visible;
}

.home-footer {
  padding: 18px 0 10px;
  display: flex;
  justify-content: center;
}

.home-footer-logo {
  width: 28px;
  height: 28px;
  opacity: 0.82;
}

@media (max-width: 1080px) {
  #model-container.world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-header {
    padding: 14px 14px 6px;
    min-height: 78px;
  }

  .home-brand-title {
    font-size: 19px;
  }

  .home-brand-slogan {
    font-size: 11px;
    max-width: 54vw;
  }

  .home-search-row,
  .home-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-search-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
    row-gap: 8px;
  }

  .home-sort-wrap {
    justify-content: flex-start;
  }

  .home-search-wrap {
    width: 100%;
  }

  #model-container.world-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
