.incident-screen {
  min-height: 100vh;
  min-height: 100dvh;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 10px calc(76px + env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 10px;
  background: #17100d;
  color: #fff5d6;
}

.incident-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.incident-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 7vw, 2.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.incident-hero,
.incident-panel {
  border: 3px solid #17100d;
  border-radius: 8px;
  background: #fff5d6;
  color: #17100d;
  box-shadow: 0 6px 0 #080605;
}

.incident-hero {
  min-height: 132px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.incident-hero img,
.incident-hero__fallback {
  width: 112px;
  aspect-ratio: 1;
  object-fit: contain;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17100d;
  color: #f4c542;
  font-size: 3rem;
  font-weight: 1000;
}

.incident-hero strong,
.incident-panel h2 {
  margin: 0;
  text-transform: uppercase;
}

.incident-boss-label {
  display: block;
  margin-top: 6px;
}

.incident-showcase {
  border-color: #f4c542;
  background: #231712;
  color: #fff5d6;
}

.incident-showcase p {
  margin: 0;
  color: #fff5d6;
}

.incident-showcase__beats {
  display: grid;
  gap: 6px;
}

.incident-showcase__beats span,
.incident-stage-note {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 245, 214, 0.12);
  font-weight: 850;
}

.incident-stage-heading,
.incident-boss-panel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.incident-stage-heading img,
.incident-boss-panel img {
  width: 54px;
  aspect-ratio: 1;
  object-fit: contain;
}

.incident-boss-panel img {
  width: 72px;
}

.incident-boss-panel {
  grid-template-columns: 72px minmax(0, 1fr);
  background: #17100d;
  color: #fff5d6;
}

.incident-hero span,
.incident-panel p,
.incident-community-row span,
.incident-fuggler-tile span {
  font-weight: 850;
}

.incident-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.incident-meter {
  height: 16px;
  overflow: hidden;
  border: 3px solid #17100d;
  border-radius: 999px;
  background: #d4d0bd;
}

.incident-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f4c542, #48a868);
}

.incident-community-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid #17100d;
  border-radius: 8px;
  background: #fffdf0;
}

.incident-fuggler-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.incident-fuggler-tile {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border: 2px solid #17100d;
  border-radius: 8px;
  background: #fffdf0;
}

.incident-fuggler-tile img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.incident-fuggler-tile strong,
.incident-fuggler-tile span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.incident-fuggler-tile button,
.incident-panel .primary {
  min-height: 42px;
}

@media (max-width: 340px) {
  .incident-hero {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .incident-hero img,
  .incident-hero__fallback {
    width: 88px;
  }

  .incident-fuggler-grid {
    grid-template-columns: 1fr;
  }
}
