/* Critical splash — identidad de la tarjeta "Tu credencial para checar" */
html,
body {
  margin: 0;
  min-height: 100%;
  background: #b51f24;
}

html {
  overflow-x: hidden;
}

#ch-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #ef3b41 0%, #e12930 45%, #b51f24 100%);
  opacity: 1;
  transition: opacity 180ms ease;
  pointer-events: none;
}

#ch-splash.ch-splash--done {
  opacity: 0;
}

.ch-splash__mark {
  position: absolute;
  top: -18px;
  right: -46px;
  width: min(58vw, 280px);
  opacity: 0.14;
  pointer-events: none;
  transform: rotate(-8deg);
  user-select: none;
}

.ch-splash__logo {
  position: relative;
  z-index: 1;
  width: min(46vw, 196px);
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
}

.ch-splash__pattern {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22px;
  background-image: url('/brand/pattern-strip.png');
  background-position: left center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
}

@media (min-width: 480px) {
  .ch-splash__mark {
    width: 320px;
  }

  .ch-splash__logo {
    width: 220px;
  }
}
