.crash-doc .header { height: var(--header); }

.crash-lead {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crash-lead h1 {
  margin: 0;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crash-lead h1 svg { width: 26px; height: 26px; color: var(--gold); }

.crash-chips {
  display: flex;
  gap: 10px;
  margin: 14px 0 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.crash-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #14120a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crash-chip.c-planes { background: #f5c518; }
.crash-chip.c-mines { background: #c084fc; }
.crash-chip.c-chicken { background: #4ade80; }
.crash-chip.c-towers { background: #67e8f9; }
.crash-chip.c-more { background: #fb7185; }
.crash-chip:hover,
.crash-chip:focus-visible { filter: brightness(1.08); }

.crash-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 2px;
}

.crash-sub span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crash-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #3a4252;
  background: #141820;
  color: #f4f6f8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.crash-sub a:hover,
.crash-sub a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.crash-block { margin-top: 8px; }

.crash-block h2 {
  margin: 22px 0 12px;
  font-size: 20px;
}

.crash-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.crash-tile {
  min-width: 0;
  max-width: 100%;
}

.crash-art {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #11151c;
  aspect-ratio: 8 / 5;
}

.crash-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crash-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
}

.crash-play,
.crash-demo {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crash-play { background: var(--green); color: #071208; }
.crash-demo { background: #fff; color: #16140c; }
.crash-play:hover,
.crash-play:focus-visible { background: #49d864; }
.crash-demo:hover,
.crash-demo:focus-visible { background: #ffe56a; }

.crash-name {
  margin: 6px 2px 0;
  font-size: 13px;
  font-weight: 700;
  color: #d5dbe4;
  line-height: 1.25;
}

@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .crash-actions {
    inset: 0;
    flex-direction: column;
    padding: 12px;
    background: rgba(6, 8, 12, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
  }

  .crash-tile:hover .crash-actions,
  .crash-tile:focus-within .crash-actions {
    opacity: 1;
    pointer-events: auto;
  }

  .crash-play,
  .crash-demo {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .crash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .crash-chips,
  .crash-grid,
  .crash-tile { max-width: 100%; }
}

@media (max-width: 860px) {
  .crash-art { overflow: hidden; }
  .crash-actions {
    left: 6px;
    right: 6px;
    bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }
  .crash-play,
  .crash-demo {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 8px 4px;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .crash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crash-lead h1 { font-size: 24px; }
  .crash-name { font-size: 12px; }
  .crash-sub a { min-height: 44px; }
}
