.checkban-window {
  --checkban-header-top: #b33235;
  --checkban-header-bottom: #8a2420;
  --checkban-body-top: rgba(34, 13, 15, .985);
  --checkban-body-bottom: rgba(27, 10, 12, .99);
  --checkban-title: #f4e5df;
  --checkban-copy: #e73d46;

  position: relative;
  isolation: isolate;
  width: min(100%, 427px);
  aspect-ratio: 427 / 158;
  margin: 0 auto 18px;
  display: grid;
  grid-template-rows: 36.71% 63.29%;
  overflow: visible;
  container-type: inline-size;
  color: var(--checkban-copy);
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .48));
  transform-origin: 50% 50%;
}

.checkban-window__header,
.checkban-window__body {
  position: relative;
  z-index: 1;
  margin-inline: 5px 6px;
  overflow: hidden;
}

.checkban-window__header {
  margin-top: 5px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 110, 110, .15), transparent 22%),
    linear-gradient(180deg, var(--checkban-header-top), var(--checkban-header-bottom));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  box-shadow:
    inset 0 1px 0 rgba(239, 112, 112, .34),
    inset 0 -3px 0 rgba(79, 9, 12, .72);
}

.checkban-window__header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(239, 112, 112, .22);
}

.checkban-window__title {
  position: relative;
  z-index: 1;
  margin: -1px 0 0;
  color: var(--checkban-title);
  font-size: clamp(18px, 6.56cqw, 28px);
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 2px 1px rgba(61, 5, 7, .92),
    0 0 4px rgba(255, 222, 216, .16);
}

.checkban-window__body {
  margin-bottom: 5px;
  padding: 4.15cqw 2.8cqw 0;
  background:
    linear-gradient(180deg, rgba(125, 29, 29, .08), transparent 25%),
    linear-gradient(180deg, var(--checkban-body-top), var(--checkban-body-bottom));
  box-shadow:
    inset 0 1px 0 rgba(239, 112, 112, .14),
    inset 0 0 18px rgba(255, 0, 0, .035);
}

.checkban-window__reason,
.checkban-window__date {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  color: var(--checkban-copy);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 2px 1px rgba(5, 0, 1, .88),
    0 0 5px rgba(255, 0, 0, .2);
  white-space: nowrap;
}

.checkban-window__reason {
  margin-bottom: 1.65cqw;
  font-size: clamp(16px, 5.62cqw, 24px);
  line-height: 1.08;
}

.checkban-window__date {
  font-size: clamp(16px, 5.39cqw, 23px);
  line-height: 1.08;
}

.checkban-window__frame {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 3px rgba(255, 0, 0, .18));
}

.checkban-window:hover .checkban-window__frame {
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, .27));
}
