.death-feed {
  position: fixed;
  z-index: 1455;
  inset: max(66px, env(safe-area-inset-top)) auto auto 50%;
  width: min(390px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.death-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 12px;
  border: 1px solid #cb91ef;
  border-radius: 12px;
  background: linear-gradient(140deg, #342046, #1a1328 72%);
  box-shadow: 0 0 0 2px #1a1025, 0 5px 16px #0e0716d4;
  color: #fff3ff;
  overflow-wrap: anywhere;
  animation: death-notice-enter 190ms ease-out both;
}

.death-notice-skull {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ce8cf0;
  border-radius: 7px;
  background: #472650;
  color: #f9d6ff;
  font: 800 24px/1 system-ui, sans-serif;
}

.death-notice-content {
  display: grid;
  gap: 3px;
}

.death-notice-title {
  font: 800 15px/1.18 system-ui, sans-serif;
}

.death-notice-cause {
  color: #e6bedf;
  font: 600 11px/1.2 system-ui, sans-serif;
}

.death-notice-prize {
  color: #e1ccbd;
  font: 600 12px/1.2 system-ui, sans-serif;
}

.death-notice-prize[data-transferred="true"] {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid #b995533d;
  color: #ffdd87;
}

.death-notice-prize img {
  width: 19px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #ffcf69);
}

.death-notice-prize small, .death-notice-prize strong {
  display: block;
}

.death-notice-prize small {
  color: #edd4a1;
  font-size: 10px;
}

.death-notice-prize strong {
  font-size: 13px;
}

.death-seat-mark, .death-prize-arrival {
  position: absolute;
  z-index: 7;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
}

.death-seat-mark {
  border: 2px dashed #e2b2ff;
  background: linear-gradient(122deg, #b451ff30, transparent 70%);
  box-shadow: 0 0 0 2px #3a2258, 0 0 11px #b33effc4;
  animation: death-mark-enter 260ms ease-out var(--death-mark-delay, 0ms) both;
}

.death-seat-mark::before {
  content: '☠';
  position: absolute;
  inset: 5px auto auto 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #ebc2ff;
  border-radius: 6px;
  background: #32174a;
  color: #f9dfff;
  box-shadow: 0 2px 6px #170e25;
  font: 800 19px/1 system-ui, sans-serif;
}

#prize-supply.is-death-prize-target {
  position: relative;
}

.death-prize-arrival {
  border: 2px solid #ffe199;
  animation: death-prize-arrive 650ms ease-out var(--death-prize-delay, 0ms) both;
}

.death-visuals {
  position: fixed;
  z-index: 1445;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.death-prize-flight {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: clamp(36px, 5vw, 46px);
  height: clamp(46px, 6vw, 56px);
  border: 2px solid #ffeea4;
  border-radius: 42% 42% 39% 39%;
  background: radial-gradient(ellipse at 42% 35%, #fff8cc, #de8e22 68%, #603814);
  box-shadow: 0 0 9px #fff3a7, 0 0 23px #ffb638, 0 3px 4px #3422159c;
}

.death-prize-flight img {
  display: block;
  width: 78%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #4e291e);
}

@keyframes death-notice-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes death-mark-enter {
  from { opacity: .3; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes death-prize-arrive {
  from { opacity: 0; box-shadow: 0 0 0 2px #ffdf71, 0 0 17px #ffc742; }
  32% { opacity: 1; box-shadow: 0 0 0 2px #ffdf71, 0 0 17px #ffc742; }
  to { opacity: 1; box-shadow: 0 0 8px #f4ac52a8; }
}

@media (max-width: 700px) {
  .death-feed {
    inset-block-start: max(8px, calc(env(safe-area-inset-top) + 2px));
    width: min(345px, calc(100vw - 16px));
  }
  .death-notice { padding: 7px 9px; gap: 8px; }
  .death-notice-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .death-notice, .death-seat-mark, .death-prize-arrival { animation: none; }
  .death-prize-arrival { box-shadow: 0 0 8px #f4ac52a8; }
  .death-prize-flight { display: none; }
}
