.ssa-game-search {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid #2e5967;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 56, 72, 0.85), rgba(14, 34, 44, 0.9));
  color: #edf7f7;
}

.ssa-gs-title {
  margin: 0 0 0.75rem;
  color: #f8ffff;
}

.ssa-gs-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(150px, auto);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ssa-gs-input,
.ssa-gs-category,
.ssa-gs-tag {
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: rgba(2, 6, 23, 0.88);
  color: #f4fdff;
}

.ssa-gs-input::placeholder {
  color: #bfdbfe;
}

.ssa-gs-status {
  font-size: 0.9rem;
  color: #b7d1d2;
  margin-bottom: 0.6rem;
}

.ssa-gs-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.ssa-gs-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.65rem;
  border: 1px solid #2e5967;
  border-radius: 12px;
  background: rgba(10, 30, 40, 0.5);
  overflow: hidden;
  min-height: 118px;
}

.ssa-gs-thumb {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 1 / 1;
  background: rgba(2, 6, 23, 0.72);
}

.ssa-gs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssa-gs-item-no-thumb {
  grid-template-columns: 1fr;
}

.ssa-gs-body {
  min-width: 0;
  padding: 0.6rem 0.7rem 0.65rem 0;
}

.ssa-gs-item-no-thumb .ssa-gs-body {
  padding-left: 0.7rem;
}

.ssa-gs-body h4 {
  margin: 0 0 0.35rem;
  color: #f8ffff;
  font-size: 1rem;
  line-height: 1.2;
}

.ssa-gs-body p {
  display: -webkit-box;
  margin: 0.35rem 0 0.5rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.ssa-gs-body small {
  display: block;
  color: #b7d1d2;
  line-height: 1.3;
}

.ssa-gs-play,
.ssa-gs-loadmore,
.ssa-gs-favorite,
.ssa-gq-feedback button {
  display: inline-block;
  border: 1px solid #4f8a98;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: #1b4456;
  color: #eaf8f7;
  text-decoration: none;
  font-weight: 600;
}

.ssa-gs-play {
  padding: 0.38rem 0.68rem;
  font-size: 0.9rem;
}

.ssa-gs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ssa-gs-favorite {
  cursor: pointer;
  padding: 0.38rem 0.68rem;
  font-size: 0.9rem;
}

.ssa-gs-favorite.is-saved {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  border-color: rgba(45, 212, 191, 0.8);
  color: #031018;
}

.ssa-gs-why {
  border-left: 3px solid #2dd4bf;
  padding-left: 0.55rem;
  color: #dbeafe;
}

.ssa-gs-loadmore {
  margin-top: 0.75rem;
  cursor: pointer;
}

.ssa-gs-empty {
  margin: 0.25rem 0;
}

.ssa-game-quiz {
  margin: 1rem auto 1.5rem;
  max-width: 760px;
  padding: 1rem;
  border: 1px solid #2e5967;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 56, 72, 0.85), rgba(14, 34, 44, 0.9));
  color: #edf7f7;
}

.ssa-gq-title {
  margin: 0 0 0.75rem;
  color: #f8ffff;
}

.ssa-gq-progress {
  width: 100%;
  height: 8px;
  background: #22495b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.ssa-gq-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00d4b6, #7ce0a2);
  transition: width 0.2s ease;
}

.ssa-gq-stage {
  display: grid;
  gap: 0.55rem;
}

.ssa-gq-question {
  margin: 0.2rem 0 0.35rem;
  color: #f8ffff;
}

.ssa-gq-option {
  border: 1px solid #4f8a98;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  background: #1b4456;
  color: #eaf8f7;
  font-weight: 600;
}

.ssa-gq-feedback {
  margin-top: 0.8rem;
}

.ssa-gq-feedback label,
.ssa-gq-feedback span {
  display: block;
}

.ssa-gq-feedback textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.88);
  color: #f4fdff;
  resize: vertical;
}

.ssa-gq-feedback button {
  margin-top: 0.55rem;
  cursor: pointer;
}

.ssa-gq-feedback p,
.ssa-gq-feedback-status {
  margin: 0;
}

.ssa-gs-recommendations {
  max-width: 920px;
  margin: 1rem auto 1.5rem;
}

.ssa-gs-recommendations .ssa-aie-block,
.ssa-gs-recommendations .ssa-aie-products,
.ssa-gs-recommendations .ssa-aie-recommendations {
  border: 1px solid rgba(45, 212, 191, 0.34) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.98), rgba(3, 8, 18, 0.98)) !important;
  color: #dbeafe !important;
  padding: 18px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.ssa-gs-recommendations .ssa-aie-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 16px !important;
}

.ssa-gs-recommendations .ssa-aie-card,
.ssa-gs-recommendations .ssa-aie-product-card {
  border: 1px solid rgba(56, 189, 248, 0.42) !important;
  border-radius: 14px !important;
  background: rgba(2, 6, 23, 0.88) !important;
  color: #dbeafe !important;
  padding: 16px !important;
}

.ssa-gs-recommendations :is(h3, h4, strong) {
  color: #ffffff !important;
}

.ssa-gs-recommendations a {
  color: #67e8f9 !important;
}

@media (max-width: 680px) {
  .ssa-gs-controls {
    grid-template-columns: 1fr;
  }

  .ssa-gs-item {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 106px;
  }

  .ssa-gs-thumb {
    width: 86px;
    min-width: 86px;
  }

  .ssa-gs-body {
    padding-right: 0.65rem;
  }
}
