.stage.dead {
  margin-bottom: calc(246px + var(--sab));
  width: 210px;
  max-height: 262px;
}
#s-home .stage.dead {
  min-height: 72px;
  margin-bottom: calc(var(--death-panel-height, 330px) + 18px + var(--sab));
}
.death {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--sab));
  z-index: var(--layer-menu);
  border-radius: 24px;
  padding: 14px;
}
#s-home #death {
  border: 1px solid var(--paper-rule);
  border-radius: 0;
  padding: 8px 12px 9px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 4px 4px 0 var(--soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#death.is-issuing {
  animation: death-form-issue 0.34s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes death-form-issue {
  0% {
    transform: translateY(46px) rotate(-2.5deg);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}
.death-form-head {
  display: flex;
  flex-direction: column;
  padding: 0 0 3px;
  border-bottom: 2px solid var(--paper-ink);
  font-family: var(--f-typewriter);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.death-form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.death-form-row > .death-form-field:first-child {
  flex: 1;
  min-width: 0;
}
.death-form-field {
  margin-top: 4px;
  padding-bottom: 2px;
  border-bottom: 1px dotted var(--paper-ink);
}
.death-form-field > small,
.death-form-fee > small {
  display: block;
  font-family: var(--f-typewriter);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-rule);
}
#death .death-form-field h2 {
  margin: 0;
  overflow: hidden;
  font-family: var(--f-typewriter);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--paper-ink);
}
.death-form-age {
  flex: none;
  text-align: right;
}
.death-form-age > span {
  display: block;
  font-family: var(--f-typewriter);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
#death .death-cause {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper-ink);
}
#death .peepee-attributes {
  gap: 2px;
  margin-top: 2px;
}
#death .peepee-attributes .rar {
  padding: 1px 3px;
  border-radius: 0;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
#death .rar.rarity-factor {
  background: var(--paper);
  color: var(--paper-stamp);
  border-color: var(--paper-stamp);
}
.death-form-fee {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.death-form-fee > i {
  flex: 1;
  align-self: flex-end;
  margin-bottom: 3px;
  border-bottom: 1px dotted var(--paper-ink);
}
.death-form-fee-amount {
  position: relative;
  padding: 2px 7px;
  font-family: var(--f-typewriter);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-stamp);
  transform: rotate(-2deg);
}
.death-form-fee-amount rect + rect {
  display: none;
}
.death-form-fee-amount svg,
.death-form-stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#death .list {
  gap: 6px;
  margin-top: 6px;
}
#death .btn {
  border: 1px solid var(--paper-ink);
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.2;
  background: var(--accent);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--paper-ink);
}
#death .btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--paper-ink);
}
#death .btn.resurrection-button {
  padding: 4px 10px 5px;
}
#death .btn.resurrection-button small {
  font-size: 11px;
}
#death .btn.money {
  background: var(--green);
}
#death .btn.sec {
  background: var(--paper);
  color: var(--paper-ink);
}
#death .btn:disabled {
  opacity: 1;
  background: var(--paper);
  color: var(--paper-rule);
  border: 1px dashed var(--paper-rule);
  box-shadow: none;
}
#death .btn.resurrection-button:disabled em {
  color: var(--paper-stamp);
}
#death .death-footnote {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper-ink);
}
#death .text-link {
  color: var(--paper-ink);
}
.death-form-seal {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 34px;
  height: 34px;
  color: var(--paper-stamp);
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(9deg);
}
.death-form-seal svg {
  display: block;
  width: 100%;
  height: 100%;
}
.death-form-stamp {
  position: absolute;
  top: 7px;
  right: 26px;
  padding: 3px 9px;
  font-family: var(--f-typewriter);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-stamp);
  opacity: 0.8;
  pointer-events: none;
  transform: rotate(-8deg);
}
#death.is-issuing .death-form-field > :last-child,
#death.is-issuing .death-form-fee > small {
  animation: death-form-type 0.26s steps(14) both;
}
#death.is-issuing .death-form-row .death-form-field > :last-child {
  animation-delay: 0.3s;
}
#death.is-issuing .death-form-row + .death-form-field > :last-child {
  animation-delay: 0.52s;
}
#death.is-issuing .death-form-row + .death-form-field + .death-form-field > :last-child {
  animation-delay: 0.74s;
}
#death.is-issuing .death-form-fee > small {
  animation-delay: 0.96s;
}
@keyframes death-form-type {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 -4px 0 0);
  }
}
#death.is-issuing .death-form-seal {
  animation: death-form-seal-press 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s both;
}
#death.is-issuing .death-form-stamp {
  animation: death-form-stamp-press 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) 1.5s both;
}
#death.is-issuing .death-form-fee-amount {
  animation: death-form-fee-press 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) 1.85s both;
}
@keyframes death-form-seal-press {
  0% {
    opacity: 0;
    transform: rotate(9deg) scale(2.2);
  }
  100% {
    opacity: 0.55;
    transform: rotate(9deg) scale(1);
  }
}
@keyframes death-form-stamp-press {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(2.4);
  }
  100% {
    opacity: 0.8;
    transform: rotate(-8deg) scale(1);
  }
}
@keyframes death-form-fee-press {
  0% {
    opacity: 0;
    transform: rotate(-2deg) scale(2);
  }
  100% {
    opacity: 1;
    transform: rotate(-2deg) scale(1);
  }
}
#death.is-issuing .list {
  animation: death-form-settle 0.2s ease-out 1.5s both;
}
@keyframes death-form-settle {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #death.is-issuing,
  #death.is-issuing * {
    animation: none;
  }
}
