* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, Roboto, sans-serif;
  background: #fef6e4;
  color: #2b2140;
}
.hidden {
  display: none !important;
}
.hub-header {
  padding: 16px;
  text-align: center;
}
.hub-header h1 {
  margin: 0 0 12px;
  font-size: 22px;
}
.hub-toolbar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: white;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.search-input {
  display: block;
  width: calc(100% - 32px);
  max-width: 320px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 2px solid #e0d5f5;
  font-size: 16px;
}
.waiting:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.waiting-icon {
  font-size: 56px;
}
.waiting p {
  font-size: 17px;
  color: #5b3fa0;
  font-weight: 600;
  margin: 0;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
}
.chip {
  flex: none;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #efe6fb;
  color: #5b3fa0;
  font-weight: 600;
  font-size: 14px;
}
.chip-active {
  background: #7c4dff;
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  padding: 8px 16px 24px;
}
.card {
  position: relative;
  background: white;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.card-emoji {
  font-size: 40px;
}
.card-title {
  font-weight: 700;
  margin-top: 6px;
  font-size: 15px;
}
.card-desc {
  font-size: 12px;
  color: #6b6178;
  margin-top: 4px;
}
.star {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 22px;
  color: #d8cdee;
  padding: 4px;
}
.star-active {
  color: #ffb400;
}
.empty {
  text-align: center;
  color: #8a7fa0;
}
