    .ams-constellation {
      --ams-black: #111111;
      --ams-cream: #f7f3eb;
      --ams-red: #ef3526;
      position: relative;
      width: 100%;
      /* Integrada directamente en la portada, sin iframe. */
      height: auto;
      min-height: 0; /* ALTURA TOTAL ESCRITORIO: ajustar aquí */
      overflow: hidden;
      box-sizing: border-box;
      background: var(--ams-black);
      color: var(--ams-cream);
      font-family: "IBM Plex Sans", Arial, sans-serif;
      isolation: isolate;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 0;
    }

    .ams-constellation *,
    .ams-constellation *::before,
    .ams-constellation *::after {
      box-sizing: border-box;
    }

    .ams-constellation__stage {
      position: relative;
      width: 100%;
      /* Altura del dibujo independiente de los controles. */
      height: 280px;
      flex: 0 0 auto;
      overflow: hidden;
    }

    .ams-constellation__canvas {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      cursor: crosshair;
      touch-action: none;
      outline: none;
    }

    .ams-constellation__canvas:focus-visible {
      box-shadow: inset 0 0 0 2px var(--ams-red);
    }

    .ams-constellation__controls {
      position: relative;
      margin-top: 0;
      padding: 16px 12px 8px;
      flex: 0 0 auto;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 9px;
      width: 100%;
      min-height: 66px;
    }

    .ams-constellation button {
      min-height: 44px;
      padding: 0 17px;
      border-radius: 999px;
      font: inherit;
      font-size: 14px;
      cursor: pointer;
      transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
    }

    .ams-constellation button:hover {
      transform: translateY(-1px);
    }

    .ams-constellation__start {
      border: 1px solid var(--ams-red);
      background: var(--ams-red);
      color: var(--ams-black);
      font-weight: 600;
    }

    .ams-constellation__start.is-active {
      border-color: rgba(247, 243, 235, 0.72);
      background: var(--ams-black);
      color: var(--ams-cream);
    }

    .ams-constellation__help {
      margin: 0;
      color: rgba(247, 243, 235, 0.58);
      font-size: 13px;
      text-align: center;
    }

    /* Adaptación al ancho disponible en móvil. */
    @media (max-width: 600px) {
      .ams-constellation {
        min-height: 0; /* ALTURA TOTAL MÓVIL: ajustar aquí */
        padding: 0;
      }

      .ams-constellation__stage {
        height: 190px; /* ALTURA DEL DIBUJO MÓVIL */
      }

      .ams-constellation__controls {
        padding-bottom: 4px;
        min-height: 68px;
      }

      .ams-constellation__help {
        padding: 0 12px;
      }
    }

    .ams-constellation [hidden] {
      display: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
      .ams-constellation button { transition: none; }
    }
