/* Original assets are used without recolouring or reshaping their artwork. */
.dreamz-brand {
  --dreamz-brand-width: 208px;
  display: inline-flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--dreamz-brand-width);
  max-width: 100%;
  padding: 8px 10px;
  overflow: hidden;
  vertical-align: middle;
  border: 1px solid #debc7438;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 22px #0314222e, inset 0 1px 0 #fff1;
  line-height: 0;
}

.dreamz-brand__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
}

/* The 18-degree reflection and easing come from FEP's original logo treatment. */
.dreamz-brand::after {
  position: absolute;
  z-index: 1;
  content: '';
  pointer-events: none;
  inset: -50% auto -50% -60%;
  width: 44%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #fff3, transparent);
  transform: translateX(0) rotate(18deg);
  animation: dreamz-brand-shine 16s cubic-bezier(.2, .8, .2, 1) .7s infinite;
}

.dreamz-brand--small {
  --dreamz-brand-width: 150px;
  padding: 6px 8px;
  border-radius: 9px;
}

/* Optional oversized original logo, purely decorative and never over controls. */
.dreamz-brand--watermark {
  --dreamz-brand-width: min(64vw, 650px);
  position: absolute;
  right: -4%;
  bottom: 2%;
  z-index: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: .06;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(-8deg);
}

.dreamz-brand--watermark::after { content: none; }

/* A clipped parent keeps the artwork within the existing rounded silhouette. */
.dreamz-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background-color: #0a2c48;
}

.dreamz-backdrop--hero {
  background-image:
    linear-gradient(90deg, #0a2c48 0%, #0a2c48e8 36%, #0a2c4870 62%, #0a2c481a 100%),
    url('/brand/dreamz-ribbon-logo.webp');
  background-size: cover, auto 100%;
  background-position: center, right center;
  background-repeat: no-repeat;
}

.dreamz-backdrop--login {
  background-image:
    linear-gradient(115deg, #0a2c4890 0%, #0a2c4866 36%, #061b2d91 68%, #061b2dcc 100%),
    url('/brand/dreamz-ribbon.webp');
  background-size: cover;
  background-position: center, center;
}

.dreamz-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 83% 37%, #debc741a, transparent 47%);
  opacity: .6;
  animation: dreamz-ribbon-light 12s ease-in-out infinite alternate;
}

@keyframes dreamz-brand-shine {
  0% { opacity: 0; transform: translateX(0) rotate(18deg); }
  5% { opacity: .95; }
  20% { opacity: 0; transform: translateX(430%) rotate(18deg); }
  100% { opacity: 0; transform: translateX(430%) rotate(18deg); }
}

@keyframes dreamz-ribbon-light {
  from { opacity: .3; }
  to { opacity: .8; }
}

@media (max-width: 760px) {
  .dreamz-brand { --dreamz-brand-width: 178px; }
  .dreamz-brand--small { --dreamz-brand-width: 150px; }
  .dreamz-brand--watermark { --dreamz-brand-width: 90vw; right: -17%; bottom: 7%; }
  .dreamz-backdrop--hero {
    background-image:
      linear-gradient(110deg, #0a2c48ed, #0a2c48cc 65%, #0a2c489c),
      url('/brand/dreamz-ribbon.webp');
    background-size: cover;
    background-position: center, 66% center;
  }
  .dreamz-backdrop--login { background-position: center, 66% center; }
}

@media (prefers-reduced-motion: reduce) {
  .dreamz-brand::after, .dreamz-backdrop::after { animation: none; }
  .dreamz-brand::after { opacity: 0; }
}

@media print {
  .dreamz-backdrop, .dreamz-brand--watermark { display: none; }
  .dreamz-brand::after { content: none; }
}
