/* blast! — components */
.bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bl-btn:active { transform: scale(0.97); }

.bl-btn--lime {
  background: var(--bl-lime);
  color: #0d0a14;
  box-shadow: 0 4px 20px rgba(163, 230, 53, 0.35);
}

.bl-btn--pink {
  background: var(--bl-pink);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 120, 0.35);
}

.bl-btn--ghost {
  background: var(--bl-bg-elevated);
  color: var(--bl-text);
  border: 1px solid var(--bl-border);
}

.bl-btn--block { width: 100%; }

.bl-btn--hex {
  width: 80px;
  height: 80px;
  padding: 0;
  flex-direction: column;
  gap: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--bl-glow-pink);
}

.bl-btn--play-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
}

/* Game cards */
.bl-card {
  flex: 0 0 auto;
  width: 130px;
  text-decoration: none;
  color: var(--bl-text);
}

.bl-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--bl-radius);
  overflow: hidden;
  background: var(--bl-bg-card);
  box-shadow: var(--bl-shadow);
  margin-bottom: 8px;
}

.bl-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-card__play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bl-pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.bl-card__name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card--grid { width: auto; }

/* Keep playing row */
.bl-keep-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--bl-radius);
  background: var(--bl-bg-card);
  box-shadow: var(--bl-shadow);
  text-decoration: none;
  color: var(--bl-text);
}

.bl-keep-row__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.bl-keep-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

.bl-keep-row__info { flex: 1; min-width: 0; }

.bl-keep-row__name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-keep-row__meta {
  margin: 0;
  font-size: 12px;
  color: var(--bl-text-muted);
}

.bl-keep-row__play {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bl-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Tags */
.bl-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bl-bg-elevated);
  color: var(--bl-text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* Detail blocks */
.bl-block {
  margin-bottom: 24px;
}

.bl-block__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.bl-block__body {
  color: var(--bl-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bl-block__body.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-read-more {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--bl-purple);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* FAQ */
.bl-faq { display: flex; flex-direction: column; gap: 10px; }

.bl-faq__item {
  border-radius: var(--bl-radius-sm);
  background: var(--bl-bg-card);
  overflow: hidden;
}

.bl-faq__q {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--bl-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bl-faq__a {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--bl-text-muted);
  line-height: 1.55;
  display: none;
}
.bl-faq__item.is-open .bl-faq__a { display: block; }

/* Search results */
.bl-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bl-border);
  text-decoration: none;
  color: var(--bl-text);
}

.bl-search-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.bl-search-item__name {
  font-weight: 600;
  font-size: 14px;
}

/* Fav list */
.bl-fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bl-border);
  text-decoration: none;
  color: var(--bl-text);
}

.bl-fav-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.bl-fav-empty {
  text-align: center;
  color: var(--bl-text-muted);
  padding: 32px 16px;
}

/* Contact form */
.bl-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

.bl-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bl-form input,
.bl-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-sm);
  background: var(--bl-bg-card);
  color: var(--bl-text);
  font: inherit;
  box-sizing: border-box;
}

.bl-form textarea { min-height: 120px; resize: vertical; }

/* Toast / loading */
.bl-loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--bl-text-muted);
}

.bl-card__rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.bl-tag--sheet {
  background: var(--bl-sheet-tag);
  color: #374151;
  border: 1px solid var(--bl-sheet-border);
}

.bl-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 0 20px;
  text-align: center;
}

.bl-detail-stat {
  padding: 12px 6px;
  border-radius: var(--bl-radius-sm);
  background: var(--bl-sheet-tag);
}

.bl-detail-stat__icon {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--bl-sheet-muted);
}

.bl-detail-stat__val {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bl-sheet-ink);
  margin-bottom: 2px;
}

.bl-detail-stat__lbl {
  font-size: 11px;
  color: var(--bl-sheet-muted);
}

.bl-detail-section {
  margin-bottom: 22px;
  padding: 0;
}

.bl-detail-section__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bl-sheet-ink);
}

.bl-detail-section__body {
  color: var(--bl-sheet-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bl-detail-sheet .bl-overview-viewport__fade {
  background: linear-gradient(to top, var(--bl-sheet), transparent);
}

.bl-detail-sheet .bl-overview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bl-pink);
}

.bl-detail-sheet .bl-overview-toggle svg {
  transition: transform 0.2s;
}

.bl-detail-sheet .bl-overview-viewport.is-expanded + .bl-overview-toggle svg,
.bl-detail-sheet .bl-overview-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.bl-detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--bl-sheet-muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}

.bl-detail-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bl-sheet-tag);
  color: var(--bl-sheet-ink);
  display: grid;
  place-items: center;
  border: 1px solid var(--bl-sheet-border);
}

.bl-detail-action__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bl-sheet-muted);
}

.bl-related {
  padding: 8px 0 0;
}

.bl-related__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bl-sheet-ink);
}

.bl-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
  overflow-x: clip;
}

.bl-related-grid .bl-card {
  width: auto;
  min-width: 0;
}

.bl-related-grid .bl-card__thumb {
  border-radius: var(--bl-radius-sm);
  margin-bottom: 6px;
}

.bl-related-grid .bl-card__rating {
  bottom: 4px;
  left: 4px;
  padding: 2px 5px;
  font-size: 9px;
}

.bl-related-grid .bl-card__play {
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.bl-related-grid .bl-card__play svg {
  width: 12px;
  height: 12px;
}

.bl-related-grid .bl-card__name {
  font-size: 11px;
  line-height: 1.25;
}

.bl-detail-sheet .bl-howto-list {
  gap: 10px;
}

.bl-detail-sheet .bl-howto-item {
  padding: 12px 14px;
  border-radius: var(--bl-radius-sm);
  background: var(--bl-sheet-tag);
  border: 1px solid var(--bl-sheet-border);
}

.bl-detail-sheet .bl-howto-item__icon {
  background: #1f2937;
  color: #fff;
  width: 40px;
  height: 40px;
}

.bl-detail-sheet .bl-howto-item__text {
  color: var(--bl-sheet-ink);
}

.bl-detail-sheet .bl-howto-item__text small {
  color: var(--bl-sheet-muted);
}

.bl-detail-sheet .bl-faq__item {
  background: var(--bl-sheet-tag);
  border: 1px solid var(--bl-sheet-border);
}

.bl-detail-sheet .bl-faq__q {
  color: var(--bl-sheet-ink);
}

.bl-detail-sheet .bl-faq__a {
  color: var(--bl-sheet-muted);
}

.bl-overview-viewport {
  position: relative;
  overflow: hidden;
  transition: max-height 0.25s;
}

.bl-overview-viewport.is-collapsed { max-height: 120px; }

.bl-overview-viewport__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, var(--bl-bg), transparent);
  pointer-events: none;
}

.bl-overview-toggle {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--bl-purple);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bl-cat-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bl-btn--sm { padding: 8px 14px; font-size: 12px; }

.bl-howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl-howto-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bl-howto-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bl-bg-card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}

.bl-howto-item__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--bl-text);
}

.bl-howto-item__text small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--bl-text-muted);
  line-height: 1.5;
}
